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 {
counter-increment: item;
&:first-child {
counter-reset: item;
}
&:before {
content: counters(item, ".") ". ";
float: left;