From 5c6f1f5581c86a9caac756f5b0f8741449a94f6c Mon Sep 17 00:00:00 2001 From: Chrissy Wainwright Date: Mon, 25 Nov 2024 19:49:40 -0600 Subject: [PATCH] fix mobile TOC and remove extra scrollbar (#50) * fix mobile TOC and remove extra scrollbar * remove extra space when TOC is collapsed * remove extra scrollbar from content area * display TOC as static when it needs to be --- boostlook.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/boostlook.css b/boostlook.css index 1f39113..cb6aec2 100644 --- a/boostlook.css +++ b/boostlook.css @@ -459,7 +459,6 @@ p, h1, h2, h3, h4, h5, h6 { .boostlook #content { padding-top: 1.25rem; - overflow-y: auto; } .boostlook #footer { @@ -552,9 +551,13 @@ p, h1, h2, h3, h4, h5, h6 { overflow-y: auto; } -.boostlook #toc.toc2 { +.boostlook #toc.toc2, +#boost-legacy-docs-wrapper:not(:has(article.doc)) #toc.toc2.is-active { position: static; } +#boost-legacy-docs-wrapper:not(:has(article.doc)) #toc.toc2 { + position: fixed; +} .boostlook #toc.toc2 > ul { padding-bottom: 2rem; @@ -764,6 +767,10 @@ p, h1, h2, h3, h4, h5, h6 { position: fixed; } +.boostlook #toc.toc2.nav-container.is-active { + position: static; +} + .boostlook #header .nav-container.is-active { padding: 1rem; }