trwnh.com/unified.test.hugo/assets/styles/components/table-of-contents.scss

29 lines
No EOL
581 B
SCSS

.table-of-contents {
&__title {
margin-block-start: 1em;
margin-block-end: 0.5em;
font-weight: 900;
text-transform: uppercase;
font-size: 1rem;
&:before {
content: '' !important; // if autonumbering is enabled, remove it from the heading
counter-reset: h2 // and don't increment the count for the rest of the content
}
}
ul, ol {
list-style: none;
margin: 0;
padding: 0;
}
li {
margin-block: 0.5em;
margin-inline: 0;
line-height: 1.5;
}
a {
display: inline;
}
li > ul, li > ol { /* indent subheadings */
margin-inline-start: 1em;
}
}