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) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-11-11 17:25:18 +00:00
co-authored by Claude Opus 5.5
parent db22e4a1d2
commit 288d4b26ad
3 changed files with 76 additions and 286 deletions
+24 -1
View File
@@ -13,6 +13,10 @@
@import "./components.css" layer(components);
@import "tailwindcss/utilities.css" layer(utilities) source(none);
/* hover as the board always had it: on any pointer, not only where the
device reports hover — Tailwind's default would drop the tap feedback */
@custom-variant hover (&:hover);
/* utilities are generated from the app's own source only, never from scripts/ */
@source "./";
@@ -68,9 +72,14 @@
--spacing-rail-h: var(--rail-h);
--spacing-tabbar-h: var(--tabbar-h);
--spacing-gutter: var(--gutter);
/* the 2px rule under an active destination */
--spacing-rule: 2px;
/* a count badge's round */
--spacing-badge: 1.1rem;
--container-deck: var(--deck-max);
--container-measure: var(--measure);
--container-search: 26rem;
/* container query widths for @row, @cells and @wide: the row grows its
action column, the release cells line up, the detail hero widens */
--container-row: 40rem;
@@ -89,7 +98,21 @@
--font-readout: var(--font-readout);
--font-display: var(--font-display);
--radius-token: var(--radius);
--radius-panel: var(--radius);
--radius-pill: 999px;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* tracking, by how loudly a label is engraved */
--tracking-title: 0.04em;
--tracking-label: 0.08em;
--tracking-wide: 0.1em;
--tracking-engraved: 0.12em;
--leading-none: 1;
--leading-tight: 1.1;
--leading-snug: 1.2;
--ease-out: var(--ease-out);
/* the board's own breakpoints: tab bar to rail, column header, dense pointer */