feat: support non-singleton table of contents

This commit is contained in:
Jacky Zhao
2025-03-09 15:06:36 -07:00
parent 5480269d38
commit 1cd8e7f0d5
4 changed files with 14 additions and 16 deletions

View File

@ -6,18 +6,18 @@
overflow-y: hidden;
flex: 0 1 auto;
&:has(button#toc.collapsed) {
&:has(button.toc-header.collapsed) {
flex: 0 1 1.2rem;
}
}
@media all and not ($mobile) {
.toc {
.toc-header {
display: flex;
}
}
button#toc {
button.toc-header {
background-color: transparent;
border: none;
text-align: left;
@ -44,7 +44,7 @@ button#toc {
}
}
#toc-content {
.toc-content {
list-style: none;
position: relative;