From a253356186571335554b4803a40ef71dfaa59f1f Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Tue, 19 May 2026 14:11:03 -0500 Subject: [PATCH] style: Lighten previous TOC entries when scrolling --- assets/css/custom.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/css/custom.css b/assets/css/custom.css index 27c05425a..2a55ff8f6 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -271,6 +271,10 @@ html.light { } } } + nav.hextra-toc li:has(~ li a.hextra-toc-active) > a { + color: var(--hx-color-gray-400); + opacity: 0.85; + } } html.dark { @@ -293,6 +297,10 @@ html.dark { } } } + nav.hextra-toc li:has(~ li a.hextra-toc-active) > a { + color: var(--hx-color-gray-500); + opacity: 0.9; + } } .content :where(a):not(:where([class~=not-prose],