mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 04:43:04 +00:00
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 {
|
||||
counter-reset: item;
|
||||
|
||||
li {
|
||||
counter-increment: item;
|
||||
|
||||
&:first-child {
|
||||
counter-reset: item;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: counters(item, ".") ". ";
|
||||
float: left;
|
||||
|
Loading…
Reference in New Issue
Block a user