Skip to content

Commit

Permalink
add number for mobile toc, fix order for nested titles (alex-shpak#555)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Shpak <[email protected]>
  • Loading branch information
2 people authored and Hanekihyouka committed Oct 11, 2024
1 parent 4e50188 commit 4631de0
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 4631de0

Please sign in to comment.