From 917548b072268f8b67b57e3bdd8446b5a3e48c05 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 15 Aug 2018 09:34:45 -0400 Subject: [PATCH] Allow heading levels 1-6 in table of contents Adjust minimum and maximum levels to allow all headings and fix CSS to style indentation and nested lists properly in jekyll-toc and Kramdown generated table of contents. Fixes #1782 --- _layouts/single.html | 2 +- _sass/minimal-mistakes/_navigation.scss | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/_layouts/single.html b/_layouts/single.html index 6af753e..29637ac 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -38,7 +38,7 @@ layout: default {% endif %} diff --git a/_sass/minimal-mistakes/_navigation.scss b/_sass/minimal-mistakes/_navigation.scss index 2d1a2d1..7edb62c 100644 --- a/_sass/minimal-mistakes/_navigation.scss +++ b/_sass/minimal-mistakes/_navigation.scss @@ -540,16 +540,23 @@ } li ul > li a { - padding-left: 1.75rem; + padding-left: 1.5rem; font-weight: normal; } - /* hide sub sub links on small screens*/ - li > ul li { - display: none; + li ul li ul > li a { + padding-left: 2rem; + } - @include breakpoint($medium) { - display: block; - } + li ul li ul li ul > li a { + padding-left: 2.5rem; + } + + li ul li ul li ul li ul > li a { + padding-left: 3rem; + } + + li ul li ul li ul li ul li ul > li a { + padding-left: 3.5rem } } -- 2.45.2