add number for mobile toc, fix order for nested titles (#555)

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
This commit is contained in:
loikein 2024-10-04 13:32:07 +00:00 committed by GitHub
parent d008a21049
commit 15c85acfcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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