hugo-theme-termlite/assets/css/099_table_of_contents.css
Eryn Wells 4d303b984e Add a table of contents to the single template
Pages can show the table of contents by setting the renderTableOfContents parameter.
2024-07-23 08:57:21 -07:00

34 lines
531 B
CSS

details:has(#TableOfContents) {
grid-column: main-start / main-end;
summary {
font-family: var(--font-family-heading);
font-size: var(--text-m);
&::before {
content: "+ ";
font-weight: bold;
}
&::-webkit-details-marker {
display: none;
}
}
&[open] {
summary::before {
content: "- ";
}
}
#TableOfContents {
> ul {
padding-inline-start: 2ch; /*var(--space-m);*/
margin-block: 0;
}
ul {
list-style-type: none;
}
}
}