From 5429d5c21bfb6f4f9cbc6c1ef69fb484844661fa Mon Sep 17 00:00:00 2001 From: Ptitlouis6012 <169227848+Ptitlouis6012@users.noreply.github.com> Date: Wed, 16 Sep 2026 17:49:05 +0200 Subject: [PATCH] fix: stop the sidebar TOC highlight from getting stuck on click Our custom scroll-margin-top on h2/h3 stacked with Starlight's own scroll-padding-top on , landing anchor-scroll targets ~168px from the top of the viewport -- below the TOC's IntersectionObserver active band (roughly 96-149px), so clicking a heading in the sidebar never marked it current. Removed the redundant rule; Starlight's own scroll-padding-top already accounts for the sticky header. --- src/styles/tigersystem.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/styles/tigersystem.css b/src/styles/tigersystem.css index 15d5703..35d8a6e 100644 --- a/src/styles/tigersystem.css +++ b/src/styles/tigersystem.css @@ -544,10 +544,6 @@ max-width: 100%; } -.sl-markdown-content :is(h2, h3) { - scroll-margin-top: 5rem; -} - /* The "Related:" line each source page ends with, turned into a quiet footer. */ .sl-markdown-content > p:last-child > strong:first-child:only-child { color: var(--sl-color-gray-3);