Skip to content

Commit

Permalink
add number for mobile toc, fix order for nested titles (#555)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Shpak <[email protected]>
  • Loading branch information
loikein and alex-shpak authored Oct 4, 2024
1 parent d008a21 commit 15c85ac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions assets/plugins/_numbered.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15c85ac

Please sign in to comment.