From a22ee3fbe5a96b901fb74cdd7bed80b81ea9d84e Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Wed, 6 May 2026 13:51:30 -0700 Subject: [PATCH] fix(ui): remove shimmer animation from clickable file paths (#676) The repeating shimmer animation on code file links was distracting and stole focus while reading plans. Closes #672. --- packages/ui/theme.css | 47 ------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/packages/ui/theme.css b/packages/ui/theme.css index 2234074..b81231a 100644 --- a/packages/ui/theme.css +++ b/packages/ui/theme.css @@ -220,53 +220,6 @@ body { 100% { background: transparent; } } -/* Clickable code file paths — subtle ambient shimmer so users discover they - are interactive without disrupting the familiar inline-code look. */ -.code-file-link { - position: relative; - overflow: hidden; -} -.code-file-link::after { - content: ''; - position: absolute; - inset: 0; - width: 60%; - background: linear-gradient( - 120deg, - transparent 0%, - rgba(255, 255, 255, 0.06) 35%, - rgba(255, 255, 255, 0.14) 50%, - rgba(255, 255, 255, 0.06) 65%, - transparent 100% - ); - transform: translateX(-100%); - animation: code-file-shimmer 6s ease-in-out infinite; - pointer-events: none; - border-radius: inherit; -} -@keyframes code-file-shimmer { - 0% { transform: translateX(-100%); } - 35% { transform: translateX(calc(100% / 0.6 + 100%)); } - 100%{ transform: translateX(calc(100% / 0.6 + 100%)); } -} -@media (prefers-reduced-motion: reduce) { - .code-file-link::after { - animation: none; - display: none; - } -} -/* Ambiguous matches — paint a softer shimmer in a different hue so users - notice that clicking will surface a picker rather than open one file. */ -.code-file-link[data-ambiguous="true"]::after { - background: linear-gradient( - 120deg, - transparent 0%, - rgba(168, 85, 247, 0.08) 35%, - rgba(168, 85, 247, 0.18) 50%, - rgba(168, 85, 247, 0.08) 65%, - transparent 100% - ); -} /* Word-level diff markers inside modified plan-diff blocks. Emitted as / by PlanCleanDiffView's inline renderer; keep the decoration -- knotmirror 0.0.1