From 705a1c4c7916d85be8cd8ef69380f3a678392063 Mon Sep 17 00:00:00 2001 From: Bjoern Kalkbrenner Date: Sun, 29 Nov 2026 20:55:38 +0100 Subject: [PATCH] Sidebar: no color transition on nav links Bootstrap's .nav-link fades color, background and border over .15s. When the browser computed styles before style.css had loaded, that fade ran from Bootstrap's blue to the template's colors on every page load, so the sidebar links flickered blue and the active link's border faded in. Co-Authored-By: Claude Opus 5.5 --- static/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/style.css b/static/style.css index f43376f..437f730 100644 --- a/static/style.css +++ b/static/style.css @@ -531,11 +531,19 @@ a.navbar-subtitle:hover { padding-top: .5rem; } +/* transition: none -- Bootstrap's .nav-link fades color, background and + border over .15s. The browser may compute styles once while only + bootstrap.min.css has loaded; when style.css arrives, that fade ran + from Bootstrap's blue link color to ours, so every sidebar link + flickered blue on each page load (and the active link's border faded + in). Whether a change animates depends on the new style, so turning + the transition off here stops it. */ .sidebar .nav-link { color: var(--yw-nav-link); font-size: .85rem; padding: .5rem 1rem; border-radius: 0; + transition: none; } .sidebar .nav-link:hover {