From 4596f08e323ce7ddb67d86705387115bc7e03045 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 23 Oct 2019 21:31:58 +0200 Subject: Rename ToC level styles, reorganize example content --- assets/_main.scss | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'assets') diff --git a/assets/_main.scss b/assets/_main.scss index 0bf7fca..c6098c3 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -69,6 +69,16 @@ aside nav ul { } } +// Classes to hide nested levels of ToC/Menu +.levels-1 ul ul, +.levels-2 ul ul ul, +.levels-3 ul ul ul ul, +.levels-4 ul ul ul ul ul, +.levels-5 ul ul ul ul ul ul, +.levels-6 ul ul ul ul ul ul ul { + display: none; +} + ul.pagination { display: flex; justify-content: center; @@ -198,16 +208,6 @@ ul.pagination { nav > ul > li:first-child { margin-top: 0; } - - // Classes to hide nested levels of ToC (can be replaced by @for, but it's more clear like this) - &.level-1 ul ul, - &.level-2 ul ul ul, - &.level-3 ul ul ul ul, - &.level-4 ul ul ul ul ul, - &.level-5 ul ul ul ul ul ul, - &.level-6 ul ul ul ul ul ul ul { - display: none; - } } .book-footer { -- cgit v1.2.3