feat(toc): ✨ add folding TOC elements for more compact TOC table
This commit is contained in:
parent
da25a786d1
commit
9870967093
3 changed files with 77 additions and 14 deletions
|
@ -37,7 +37,7 @@
|
|||
color: var(--toc-fg) !important;
|
||||
}
|
||||
|
||||
& .active {
|
||||
& .active > a {
|
||||
background-color: var(--toc-bg);
|
||||
border-bottom: 1px solid var(--highlight_1);
|
||||
|
||||
|
@ -57,4 +57,11 @@
|
|||
margin-bottom: 0.2em;
|
||||
transition: all 1s;
|
||||
}
|
||||
|
||||
& .toc_collapsing {
|
||||
display: none;
|
||||
}
|
||||
& li:is(:has(.active),.active) > ol > .toc_collapsing {
|
||||
display: block;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue