add number for mobile toc, fix order for nested titles

This commit is contained in:
loikein 2023-08-27 17:52:47 +01:00
parent 3f1bcccbfb
commit d6900fcb03

View file

@ -19,14 +19,13 @@ $endLevel: 6;
} }
} }
.book-toc nav ul { .book-toc nav ul,
#TableOfContents ul {
counter-reset: item;
li { li {
counter-increment: item; counter-increment: item;
&:first-child {
counter-reset: item;
}
&:before { &:before {
content: counters(item, ".") ". "; content: counters(item, ".") ". ";
float: left; float: left;