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>
128 lines
4.3 KiB
CSS
128 lines
4.3 KiB
CSS
/* arr — the stylesheet entry. Three cascade layers, lowest first:
|
|
|
|
theme Tailwind's theme, reset to the design tokens and nothing else
|
|
components the Master Control board (components.css): tokens, primitives, views
|
|
utilities Tailwind utilities, which win over a component rule they touch
|
|
|
|
Tailwind's preflight is left out on purpose: components.css carries its
|
|
own base rules, and the board is the visual truth. */
|
|
|
|
@layer theme, components, utilities;
|
|
|
|
@import "tailwindcss/theme.css" layer(theme);
|
|
@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 "./";
|
|
|
|
/* `inline`: utilities resolve straight to the token variable, so the tokens in
|
|
components.css stay the one definition (where a theme name matches a token,
|
|
the components layer's declaration wins). Every default is cleared first, so `bg-*`, `p-*` and
|
|
`text-*` offer token values only — the token gate holds for utilities too. */
|
|
@theme inline {
|
|
--*: initial;
|
|
|
|
--color-ground: var(--ground);
|
|
--color-panel: var(--panel);
|
|
--color-panel-raised: var(--panel-raised);
|
|
--color-line: var(--line);
|
|
--color-line-strong: var(--line-strong);
|
|
--color-highlight: var(--highlight);
|
|
--color-ink: var(--ink);
|
|
--color-ink-muted: var(--ink-muted);
|
|
--color-ink-faint: var(--ink-faint);
|
|
--color-signal-ok: var(--signal-ok);
|
|
--color-signal-warn: var(--signal-warn);
|
|
--color-signal-fault: var(--signal-fault);
|
|
--color-signal-idle: var(--signal-idle);
|
|
--color-accent: var(--accent);
|
|
--color-accent-bright: var(--accent-bright);
|
|
--color-lamp-off: var(--lamp-off);
|
|
--color-lowlight: var(--lowlight);
|
|
--color-verdict-eligible: var(--verdict-eligible);
|
|
--color-verdict-waived: var(--verdict-waived);
|
|
--color-verdict-rejected: var(--verdict-rejected);
|
|
--color-score-0: var(--score-0);
|
|
--color-score-1: var(--score-1);
|
|
--color-score-2: var(--score-2);
|
|
--color-score-3: var(--score-3);
|
|
--color-score-4: var(--score-4);
|
|
--color-score-5: var(--score-5);
|
|
--color-score-6: var(--score-6);
|
|
--color-status-airing: var(--status-airing);
|
|
|
|
--spacing-0: 0px;
|
|
--spacing-1: var(--space-1);
|
|
--spacing-2: var(--space-2);
|
|
--spacing-3: var(--space-3);
|
|
--spacing-4: var(--space-4);
|
|
--spacing-6: var(--space-6);
|
|
--spacing-8: var(--space-8);
|
|
--spacing-12: var(--space-12);
|
|
--spacing-control-h: var(--control-h);
|
|
--spacing-chip-h: var(--chip-h);
|
|
--spacing-row-min: var(--row-min);
|
|
--spacing-toggle-w: var(--toggle-w);
|
|
--spacing-word-w: var(--word-w);
|
|
--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;
|
|
--container-cells: 46rem;
|
|
--container-wide: 64rem;
|
|
|
|
--text-2xs: var(--text-2xs);
|
|
--text-xs: var(--text-xs);
|
|
--text-sm: var(--text-sm);
|
|
--text-base: var(--text-base);
|
|
--text-md: var(--text-md);
|
|
--text-lg: var(--text-lg);
|
|
--text-xl: var(--text-xl);
|
|
|
|
--font-label: var(--font-label);
|
|
--font-readout: var(--font-readout);
|
|
--font-display: var(--font-display);
|
|
|
|
--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 */
|
|
--breakpoint-sm: 40rem;
|
|
--breakpoint-md: 46rem;
|
|
--breakpoint-lg: 64rem;
|
|
}
|
|
|
|
/* React mounts into #app; the board lays out as if the body held it directly */
|
|
#app {
|
|
display: contents;
|
|
}
|