mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 00:34:37 +00:00
feat: support non-singleton table of contents
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
details#toc {
|
||||
details.toc {
|
||||
& summary {
|
||||
cursor: pointer;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user