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:
parent
d008a21049
commit
15c85acfcd
|
@ -20,13 +20,11 @@ $endLevel: 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-toc nav#TableOfContents ul {
|
.book-toc nav#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