feat(toc): add folding TOC elements for more compact TOC table

This commit is contained in:
David Bailey 2025-02-13 10:45:32 +01:00
parent da25a786d1
commit 9870967093
3 changed files with 77 additions and 14 deletions

View file

@ -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;
}
}