modern toc tweaks

This commit is contained in:
Jacky Zhao
2023-06-16 19:41:59 -07:00
parent f44111114f
commit 95cb3efe33
17 changed files with 318 additions and 58 deletions

View File

@ -0,0 +1,27 @@
details.toc {
& summary {
cursor: pointer;
&::marker {
color: var(--dark);
}
& > * {
padding-left: 0.25rem;
display: inline-block;
margin: 0;
}
}
& ul {
list-style: none;
margin: 0.5rem 1.25rem;
padding: 0;
}
@for $i from 1 through 6 {
& .depth-#{$i} {
padding-left: calc(1rem * #{$i});
}
}
}