From 288d4b26adb21fae0216f138ba09a89f182e23d9 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 11 Nov 2026 17:25:18 +0000 Subject: [PATCH] refactor(web): rail and tab bar as Tailwind utilities Phone search mode keys on a named group, and hover is redefined to apply on every pointer, as the board's own :hover rules always did. Refs #280 Co-Authored-By: Claude Opus 5.5 (1M context) --- web/src/App.tsx | 78 ++++++++----- web/src/components.css | 259 ----------------------------------------- web/src/style.css | 25 +++- 3 files changed, 76 insertions(+), 286 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index c2efe0f..345e93c 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -158,6 +158,14 @@ function restoreFocus(target: HTMLElement | null) { }); } +/** A rail destination: engraved mono words, an accent rule under the current one. */ +const NAV_LINK = + "inline-flex items-center gap-2 min-h-control-h py-0 px-3 font-readout text-xs font-semibold uppercase tracking-label text-ink-muted no-underline border-b-2 border-b-transparent hover:text-accent-bright aria-[current=page]:text-accent aria-[current=page]:border-b-accent"; + +/** A tab bar destination: glyph over word, a short accent rule on top of the current one. */ +const TAB = + "relative grid place-items-center content-center gap-1 text-2xs font-semibold uppercase tracking-wide text-ink-faint no-underline aria-[current=page]:text-accent aria-[current=page]:before:absolute aria-[current=page]:before:top-0 aria-[current=page]:before:inset-x-3/10 aria-[current=page]:before:h-rule aria-[current=page]:before:bg-accent"; + function TabGlyph({ name }: { name: IconName }) { return (