mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-16 03:31:23 +00:00
add number for mobile toc, fix order for nested titles
This commit is contained in:
parent
3f1bcccbfb
commit
d6900fcb03
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user