Matching fixes: - normalize() now strips all non-word/non-space chars via [^\w\s] instead of a hand-rolled list, catching !, curly apostrophe (U+2019), and any future edge cases - Add isCoaster() helper with prefix matching (min 5 chars) to handle subtitle mismatches in either direction (e.g. "Apocalypse" vs "Apocalypse the Ride", "The New Revolution - Classic" vs "New Revolution") - Fix top-level rides loop which still used coasterNames.has(normalize()) instead of isCoaster() — this was the recurring bug causing top-level rides to miss UI: - Dark neutral base (#111) replacing cold navy and muddy purple - Neon accent palette: hot pink, electric green, vivid yellow, cyan - Park page max-width 960→1280px, calendar cells 72→96px tall - Scrollbar accent matches theme Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
109 lines
4.0 KiB
CSS
109 lines
4.0 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
/* ── Backgrounds — deep neutral dark, no purple tint ─────────────────────── */
|
|
--color-bg: #111111;
|
|
--color-surface: #1c1c1c;
|
|
--color-surface-2: #242424;
|
|
--color-surface-hover: #2c2c2c;
|
|
--color-border: #333333;
|
|
--color-border-subtle: #272727;
|
|
|
|
/* ── Text — clean white, no tint ─────────────────────────────────────────── */
|
|
--color-text: #f5f5f5;
|
|
--color-text-secondary: #b0b0b0;
|
|
--color-text-muted: #737373;
|
|
--color-text-dim: #4a4a4a;
|
|
|
|
/* ── Hot pink accent — neon sign energy ──────────────────────────────────── */
|
|
--color-accent: #ff4d8d;
|
|
--color-accent-hover: #e6006e;
|
|
--color-accent-text: #fff0f7;
|
|
--color-accent-muted: #3d0f22;
|
|
|
|
/* ── Open — electric lime green (go!) ────────────────────────────────────── */
|
|
--color-open-bg: #0a1a0d;
|
|
--color-open-border: #22c55e;
|
|
--color-open-text: #4ade80;
|
|
--color-open-hours: #bbf7d0;
|
|
|
|
/* ── Passholder preview — vivid cyan ─────────────────────────────────────── */
|
|
--color-ph-bg: #051518;
|
|
--color-ph-border: #22d3ee;
|
|
--color-ph-hours: #cffafe;
|
|
--color-ph-label: #67e8f9;
|
|
|
|
/* ── Today — vivid yellow, unmissable ────────────────────────────────────── */
|
|
--color-today-bg: #1a1800;
|
|
--color-today-border: #facc15;
|
|
--color-today-text: #fef08a;
|
|
|
|
/* ── Weekend — barely-there dark tint ───────────────────────────────────────*/
|
|
--color-weekend-header: #181818;
|
|
|
|
/* ── Region header ───────────────────────────────────────────────────────── */
|
|
--color-region-bg: #161616;
|
|
--color-region-accent: #ff4d8d;
|
|
}
|
|
|
|
:root {
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ── Scrollbar ───────────────────────────────────────────────────────────── */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: var(--color-surface-2);
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-border);
|
|
border-radius: 3px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-accent);
|
|
}
|
|
|
|
/* ── Sticky column shadow when scrolling ─────────────────────────────────── */
|
|
.sticky-shadow {
|
|
box-shadow: 4px 0 16px -2px rgba(0, 0, 0, 0.5);
|
|
clip-path: inset(0 -16px 0 0);
|
|
}
|
|
|
|
/* ── Park row hover (group/group-hover via Tailwind not enough across sticky cols) */
|
|
.park-row:hover td,
|
|
.park-row:hover th {
|
|
background-color: var(--color-surface-hover) !important;
|
|
}
|
|
|
|
/* ── Park name link hover ────────────────────────────────────────────────── */
|
|
.park-name-link {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: color 120ms ease;
|
|
}
|
|
.park-name-link:hover {
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
/* ── Pulse animation for skeleton ───────────────────────────────────────── */
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
.skeleton {
|
|
animation: pulse 1.8s ease-in-out infinite;
|
|
background-color: var(--color-surface);
|
|
border-radius: 4px;
|
|
}
|