diff options
| author | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
| commit | 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch) | |
| tree | 62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /assets/css/components/_toc.scss | |
| parent | 3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff) | |
chore: move templates out of site repo
Diffstat (limited to 'assets/css/components/_toc.scss')
| -rw-r--r-- | assets/css/components/_toc.scss | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/assets/css/components/_toc.scss b/assets/css/components/_toc.scss deleted file mode 100644 index e8486557..00000000 --- a/assets/css/components/_toc.scss +++ /dev/null @@ -1,53 +0,0 @@ -#toc { - ul { - margin-block-start: 0; - margin-block-end: 0; - padding-inline-start: 1rem; - - overflow: hidden; - position: relative; - li { - list-style: none; - - & > a { - color: var(--secondary-text-color); - text-decoration: none; - transition: color .3s; - display: inline-flex; - align-items: center; - gap: .5rem; - text-overflow: ellipsis; - white-space: nowrap; - &::before { - content: ''; - display: inline-block; - width: 1rem; - height: .3rem; - background-color: var(--block-background-color); - border-radius: .2rem; - transition: background .3s; - flex-shrink: 0; - } - } - - /* nested list */ - ul { - max-height: 25rem; - overflow-y: auto - } - - /* active styles */ - &:not(.active) ul { - max-height: 0 - } - a:hover, - &.active > a { - color: var(--text-color); - } - - &.active > a::before { - background-color: var(--secondary-text-color); - } - } - } -} |
