From 1476bd2384b24316fd70467780e474f470aacd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar?= Date: Sat, 17 Jan 2026 13:23:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20improve=20ToC=20UX=20(#613)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_quick_navigation_buttons.scss | 17 ++--------------- templates/partials/extra_features.html | 1 - 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/sass/parts/_quick_navigation_buttons.scss b/sass/parts/_quick_navigation_buttons.scss index 768592fa..ea9d8b35 100644 --- a/sass/parts/_quick_navigation_buttons.scss +++ b/sass/parts/_quick_navigation_buttons.scss @@ -87,29 +87,16 @@ &:checked { - + .overlay, - + .overlay + #toc-button + .toc-content { + + #toc-button + .toc-content { display: block; } - + .overlay + #toc-button svg { + + #toc-button svg { fill: var(--primary-color); // Show the ToC icon as toggled. } } } - .overlay { - display: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - opacity: 40%; - z-index: 1; // Lower than the Table of Contents - background: var(--background-color); - } - } } diff --git a/templates/partials/extra_features.html b/templates/partials/extra_features.html index d24457c0..6a085c08 100644 --- a/templates/partials/extra_features.html +++ b/templates/partials/extra_features.html @@ -11,7 +11,6 @@ {% if page_or_section.toc %}
-