From d6900fcb030346706e0caf6b468247ebfae51f20 Mon Sep 17 00:00:00 2001 From: loikein Date: Sun, 27 Aug 2023 17:52:47 +0100 Subject: [PATCH] add number for mobile toc, fix order for nested titles --- assets/plugins/_numbered.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/plugins/_numbered.scss b/assets/plugins/_numbered.scss index 56cda5a..fadf723 100644 --- a/assets/plugins/_numbered.scss +++ b/assets/plugins/_numbered.scss @@ -19,14 +19,13 @@ $endLevel: 6; } } -.book-toc nav ul { +.book-toc nav ul, +#TableOfContents ul { + counter-reset: item; + li { counter-increment: item; - &:first-child { - counter-reset: item; - } - &:before { content: counters(item, ".") ". "; float: left;