From 353202665c3d728e721caab7b21d38cc5deb123c Mon Sep 17 00:00:00 2001 From: interlope Date: Fri, 29 May 2026 17:55:59 +0200 Subject: [PATCH] made left sidebar sticky and higlight current chapter --- css/style.css | 5 +++-- index.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index ab24263..c4a5622 100644 --- a/css/style.css +++ b/css/style.css @@ -1033,8 +1033,9 @@ footer.footer-modern a:hover { .toc-sidebar { margin-top: var(--space-xl); position: sticky; - top: var(--space-lg); - max-height: calc(100vh - var(--space-xl)); + /* 56px = fixed navbar height; extra gap so the ToC doesn't hug it */ + top: calc(56px + var(--space-sm)); + max-height: calc(100vh - 56px - var(--space-md)); overflow-y: auto; font-size: var(--font-size-sm); } diff --git a/index.php b/index.php index 14ee245..20d4113 100644 --- a/index.php +++ b/index.php @@ -106,8 +106,9 @@ - -
+ +