add number for mobile toc, fix order for nested titles
This commit is contained in:
parent
3f1bcccbfb
commit
d6900fcb03
1 changed files with 4 additions and 5 deletions
|
@ -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 a new issue