529 lines
15 KiB
CSS
529 lines
15 KiB
CSS
/* Modular Theme System: Shape-Sets, Color-Sets, Comfort Toggles, Theme Modal UI, and Terminology Tooltips */
|
|
|
|
/* ============================================================================
|
|
1. SHAPE-SETS (chamfered | smooth | sharp)
|
|
============================================================================ */
|
|
:root[data-shape-set="smooth"] {
|
|
--chamfer: none;
|
|
--chamfer-sm: none;
|
|
--radius-panel: 8px;
|
|
--radius-sm: 4px;
|
|
}
|
|
|
|
:root[data-shape-set="sharp"] {
|
|
--chamfer: none;
|
|
--chamfer-sm: none;
|
|
--radius-panel: 0px;
|
|
--radius-sm: 0px;
|
|
}
|
|
|
|
:root[data-shape-set="smooth"] .panel,
|
|
:root[data-shape-set="smooth"] .launch-hud,
|
|
:root[data-shape-set="smooth"] .walkthrough-card,
|
|
:root[data-shape-set="sharp"] .panel,
|
|
:root[data-shape-set="sharp"] .launch-hud,
|
|
:root[data-shape-set="sharp"] .walkthrough-card {
|
|
clip-path: none !important;
|
|
border-radius: var(--radius-panel);
|
|
}
|
|
|
|
:root[data-shape-set="smooth"] .card,
|
|
:root[data-shape-set="smooth"] .btn,
|
|
:root[data-shape-set="smooth"] .input,
|
|
:root[data-shape-set="smooth"] .badge,
|
|
:root[data-shape-set="smooth"] .toast,
|
|
:root[data-shape-set="smooth"] .stat-box,
|
|
:root[data-shape-set="smooth"] .stage-card,
|
|
:root[data-shape-set="smooth"] .slot-group,
|
|
:root[data-shape-set="smooth"] .rule-item,
|
|
:root[data-shape-set="smooth"] .canvas-box,
|
|
:root[data-shape-set="smooth"] .launch-events,
|
|
:root[data-shape-set="smooth"] .notif-toggle-bar,
|
|
:root[data-shape-set="smooth"] .notif-item,
|
|
:root[data-shape-set="smooth"] .station-pill,
|
|
:root[data-shape-set="smooth"] .value-chart,
|
|
:root[data-shape-set="smooth"] .bus-power-cell,
|
|
:root[data-shape-set="smooth"] .hud-tooltip,
|
|
:root[data-shape-set="smooth"] .wiki-nav-item,
|
|
:root[data-shape-set="smooth"] .wiki-search-hit,
|
|
:root[data-shape-set="smooth"] .wiki-callout,
|
|
:root[data-shape-set="smooth"] .wiki-formula,
|
|
:root[data-shape-set="smooth"] .wiki-checklist-item,
|
|
:root[data-shape-set="smooth"] .wiki-ref-card,
|
|
:root[data-shape-set="smooth"] .walkthrough-pill,
|
|
:root[data-shape-set="smooth"] .menu-brand-pill,
|
|
:root[data-shape-set="smooth"] .onboard-preview-box,
|
|
:root[data-shape-set="smooth"] .theme-chip,
|
|
:root[data-shape-set="smooth"] .theme-preview-card,
|
|
:root[data-shape-set="sharp"] .card,
|
|
:root[data-shape-set="sharp"] .btn,
|
|
:root[data-shape-set="sharp"] .input,
|
|
:root[data-shape-set="sharp"] .badge,
|
|
:root[data-shape-set="sharp"] .toast,
|
|
:root[data-shape-set="sharp"] .stat-box,
|
|
:root[data-shape-set="sharp"] .stage-card,
|
|
:root[data-shape-set="sharp"] .slot-group,
|
|
:root[data-shape-set="sharp"] .rule-item,
|
|
:root[data-shape-set="sharp"] .canvas-box,
|
|
:root[data-shape-set="sharp"] .launch-events,
|
|
:root[data-shape-set="sharp"] .notif-toggle-bar,
|
|
:root[data-shape-set="sharp"] .notif-item,
|
|
:root[data-shape-set="sharp"] .station-pill,
|
|
:root[data-shape-set="sharp"] .value-chart,
|
|
:root[data-shape-set="sharp"] .bus-power-cell,
|
|
:root[data-shape-set="sharp"] .hud-tooltip,
|
|
:root[data-shape-set="sharp"] .wiki-nav-item,
|
|
:root[data-shape-set="sharp"] .wiki-search-hit,
|
|
:root[data-shape-set="sharp"] .wiki-callout,
|
|
:root[data-shape-set="sharp"] .wiki-formula,
|
|
:root[data-shape-set="sharp"] .wiki-checklist-item,
|
|
:root[data-shape-set="sharp"] .wiki-ref-card,
|
|
:root[data-shape-set="sharp"] .walkthrough-pill,
|
|
:root[data-shape-set="sharp"] .menu-brand-pill,
|
|
:root[data-shape-set="sharp"] .onboard-preview-box,
|
|
:root[data-shape-set="sharp"] .theme-chip,
|
|
:root[data-shape-set="sharp"] .theme-preview-card {
|
|
clip-path: none !important;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
/* ============================================================================
|
|
2. NAMED COLOR-SETS (eyebleed uses :root defaults in tokens.css)
|
|
============================================================================ */
|
|
:root[data-color-set="subtle"] {
|
|
--bg-deep: #10141c;
|
|
--bg-panel: rgba(22, 27, 36, 0.96);
|
|
--bg-panel-solid: #161b24;
|
|
--bg-elevated: #1e2531;
|
|
--bg-hover: #273040;
|
|
--border: #2b3444;
|
|
--border-bright: #3c485e;
|
|
--border-subtle: rgba(43, 52, 68, 0.55);
|
|
--text: #d5dde8;
|
|
--text-dim: #8b9ab0;
|
|
--text-faint: #627084;
|
|
--brand-blue: #648bb8;
|
|
--brand-strong: #4a6f99;
|
|
--sim-accent: #648bb8;
|
|
--sim-accent-dim: rgba(100, 139, 184, 0.24);
|
|
--sim-glow: rgba(100, 139, 184, 0.08);
|
|
--green: #47a885;
|
|
--amber: #c98e3b;
|
|
--red: #c96b6b;
|
|
--violet: #8b7cc8;
|
|
--bg-glass: rgba(22, 27, 36, 0.95);
|
|
--bg-inset: rgba(16, 20, 28, 0.72);
|
|
--bg-header-fade: rgba(16, 20, 28, 0.92);
|
|
--badge-bg: rgba(16, 20, 28, 0.78);
|
|
--btn-primary-bg: rgba(100, 139, 184, 0.18);
|
|
--btn-primary-hover: rgba(100, 139, 184, 0.30);
|
|
--btn-primary-text: #dce7f5;
|
|
--btn-warn-bg: rgba(201, 142, 59, 0.14);
|
|
--btn-warn-text: #ecd3a5;
|
|
--btn-danger-bg: rgba(201, 107, 107, 0.12);
|
|
--btn-danger-text: #ebc4c4;
|
|
--btn-ghost-bg: rgba(22, 27, 36, 0.72);
|
|
--title-color: #e2e8f0;
|
|
--grid-line-color: rgba(148, 163, 184, 0.015);
|
|
}
|
|
|
|
:root[data-color-set="low-contrast"] {
|
|
--bg-deep: #191d26;
|
|
--bg-panel: rgba(32, 37, 48, 0.96);
|
|
--bg-panel-solid: #202530;
|
|
--bg-elevated: #272d3a;
|
|
--bg-hover: #303747;
|
|
--border: #343c4d;
|
|
--border-bright: #465066;
|
|
--border-subtle: rgba(52, 60, 77, 0.6);
|
|
--text: #b3becf;
|
|
--text-dim: #838fa3;
|
|
--text-faint: #626d80;
|
|
--brand-blue: #6d90ba;
|
|
--brand-strong: #55769e;
|
|
--sim-accent: #6d90ba;
|
|
--sim-accent-dim: rgba(109, 144, 186, 0.24);
|
|
--sim-glow: rgba(109, 144, 186, 0.10);
|
|
--green: #5fa88d;
|
|
--amber: #c2944c;
|
|
--red: #c47678;
|
|
--violet: #9182c4;
|
|
--bg-glass: rgba(32, 37, 48, 0.94);
|
|
--bg-inset: rgba(25, 29, 38, 0.72);
|
|
--bg-header-fade: rgba(25, 29, 38, 0.9);
|
|
--badge-bg: rgba(25, 29, 38, 0.78);
|
|
--btn-primary-bg: rgba(109, 144, 186, 0.20);
|
|
--btn-primary-hover: rgba(109, 144, 186, 0.32);
|
|
--btn-primary-text: #ccd8e8;
|
|
--btn-warn-bg: rgba(194, 148, 76, 0.15);
|
|
--btn-warn-text: #dfcca8;
|
|
--btn-danger-bg: rgba(196, 118, 120, 0.14);
|
|
--btn-danger-text: #e0babc;
|
|
--btn-ghost-bg: rgba(32, 37, 48, 0.7);
|
|
--title-color: #c7d1e0;
|
|
--grid-line-color: rgba(179, 190, 207, 0.02);
|
|
}
|
|
|
|
:root[data-color-set="catppuccin-mocha"] {
|
|
--bg-deep: #1e1e2e;
|
|
--bg-panel: rgba(24, 24, 37, 0.94);
|
|
--bg-panel-solid: #181825;
|
|
--bg-elevated: #313244;
|
|
--bg-hover: #45475a;
|
|
--border: #45475a;
|
|
--border-bright: #585b70;
|
|
--border-subtle: rgba(69, 71, 90, 0.65);
|
|
--text: #cdd6f4;
|
|
--text-dim: #a6adc8;
|
|
--text-faint: #6c7086;
|
|
--brand-blue: #89b4fa;
|
|
--brand-strong: #74c7ec;
|
|
--sim-accent: #89b4fa;
|
|
--sim-accent-dim: rgba(137, 180, 250, 0.28);
|
|
--sim-glow: rgba(116, 199, 236, 0.16);
|
|
--green: #a6e3a1;
|
|
--amber: #f9e2af;
|
|
--red: #f38ba8;
|
|
--violet: #cba6f7;
|
|
--bg-glass: rgba(24, 24, 37, 0.92);
|
|
--bg-inset: rgba(17, 17, 27, 0.7);
|
|
--bg-header-fade: rgba(17, 17, 27, 0.92);
|
|
--overlay-scrim: rgba(17, 17, 27, 0.84);
|
|
--badge-bg: rgba(17, 17, 27, 0.78);
|
|
--btn-primary-bg: rgba(137, 180, 250, 0.20);
|
|
--btn-primary-hover: rgba(137, 180, 250, 0.34);
|
|
--btn-primary-text: #dce8ff;
|
|
--btn-warn-bg: rgba(249, 226, 175, 0.15);
|
|
--btn-warn-text: #f9e2af;
|
|
--btn-danger-bg: rgba(243, 139, 168, 0.15);
|
|
--btn-danger-text: #f38ba8;
|
|
--btn-ghost-bg: rgba(24, 24, 37, 0.7);
|
|
--title-color: #cdd6f4;
|
|
--grid-line-color: rgba(166, 173, 200, 0.035);
|
|
}
|
|
|
|
:root[data-color-set="daylight"] {
|
|
--bg-deep: #f1f5f9;
|
|
--bg-panel: rgba(255, 255, 255, 0.96);
|
|
--bg-panel-solid: #ffffff;
|
|
--bg-elevated: #e2e8f0;
|
|
--bg-hover: #cbd5e1;
|
|
--border: #cbd5e1;
|
|
--border-bright: #94a3b8;
|
|
--border-subtle: rgba(148, 163, 184, 0.45);
|
|
--text: #0f172a;
|
|
--text-dim: #475569;
|
|
--text-faint: #64748b;
|
|
--brand-blue: #0284c7;
|
|
--brand-strong: #0369a1;
|
|
--sim-accent: #0284c7;
|
|
--sim-accent-dim: rgba(2, 132, 199, 0.25);
|
|
--sim-glow: rgba(2, 132, 199, 0.12);
|
|
--green: #059669;
|
|
--amber: #d97706;
|
|
--red: #dc2626;
|
|
--violet: #7c3aed;
|
|
--bg-glass: rgba(255, 255, 255, 0.95);
|
|
--bg-inset: #f8fafc;
|
|
--bg-header-fade: transparent;
|
|
--overlay-scrim: rgba(15, 23, 42, 0.42);
|
|
--badge-bg: #f8fafc;
|
|
--btn-primary-bg: #0284c7;
|
|
--btn-primary-hover: #0369a1;
|
|
--btn-primary-text: #ffffff;
|
|
--btn-warn-bg: rgba(217, 119, 6, 0.14);
|
|
--btn-warn-text: #92400e;
|
|
--btn-danger-bg: rgba(220, 38, 38, 0.12);
|
|
--btn-danger-text: #991b1b;
|
|
--btn-ghost-bg: #ffffff;
|
|
--title-color: #0f172a;
|
|
--grid-line-color: rgba(15, 23, 42, 0.03);
|
|
--shadow-elevated: 0 4px 14px rgba(15, 23, 42, 0.12);
|
|
--shadow-modal: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
}
|
|
|
|
:root[data-surface-polarity="light"] {
|
|
--grid-line-color: rgba(15, 23, 42, 0.03);
|
|
--shadow-elevated: 0 4px 14px rgba(15, 23, 42, 0.12);
|
|
--shadow-modal: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
}
|
|
:root[data-surface-polarity="light"] .menu-title {
|
|
text-shadow: none;
|
|
}
|
|
:root[data-surface-polarity="light"] .dash-header {
|
|
background: none;
|
|
}
|
|
:root[data-surface-polarity="light"] .dash-header h1,
|
|
:root[data-surface-polarity="light"] .dash-header .mono.dim {
|
|
background: var(--badge-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
padding: 3px 8px;
|
|
}
|
|
|
|
/* ============================================================================
|
|
3. COMFORT TOGGLES (UI Glows/Blur/Grid vs Animations/Motion)
|
|
============================================================================ */
|
|
:root.reduced-ui-effects,
|
|
:root.reduced-ui-effects body[data-dynamic-theme] {
|
|
--sim-glow: transparent;
|
|
}
|
|
:root.reduced-ui-effects body::before {
|
|
background-image: none !important;
|
|
}
|
|
:root.reduced-ui-effects *,
|
|
:root.reduced-ui-effects *::before,
|
|
:root.reduced-ui-effects *::after {
|
|
text-shadow: none !important;
|
|
box-shadow: none !important;
|
|
backdrop-filter: none !important;
|
|
-webkit-backdrop-filter: none !important;
|
|
}
|
|
|
|
:root.reduced-motion-effects *,
|
|
:root.reduced-motion-effects *::before,
|
|
:root.reduced-motion-effects *::after {
|
|
animation: none !important;
|
|
transition-duration: 0.05s !important;
|
|
}
|
|
|
|
/* ============================================================================
|
|
4. THEME SETTINGS MODAL UI
|
|
============================================================================ */
|
|
.theme-modal {
|
|
width: min(720px, 100%);
|
|
max-height: 88vh;
|
|
}
|
|
.theme-sections {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
.theme-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.theme-section-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.theme-chip-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.theme-chip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 9px 11px;
|
|
background: var(--bg-panel-solid);
|
|
border: 1px solid var(--border);
|
|
clip-path: var(--chamfer-sm);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: border-color 0.14s ease, background-color 0.14s ease;
|
|
}
|
|
.theme-chip:hover {
|
|
border-color: var(--sim-accent);
|
|
background: var(--bg-elevated);
|
|
}
|
|
.theme-chip.active {
|
|
border-color: var(--sim-accent);
|
|
background: var(--bg-elevated);
|
|
box-shadow: inset 0 0 12px var(--sim-glow);
|
|
}
|
|
.theme-chip-title {
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
}
|
|
.theme-chip-sub {
|
|
font-size: 10px;
|
|
color: var(--text-dim);
|
|
line-height: 1.35;
|
|
}
|
|
.theme-swatches {
|
|
display: flex;
|
|
gap: 3px;
|
|
margin-top: 2px;
|
|
}
|
|
.theme-swatch {
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 1px solid var(--border-bright);
|
|
border-radius: 2px;
|
|
}
|
|
.theme-gradient-preview {
|
|
height: 44px;
|
|
border: 1px solid var(--border-bright);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.theme-stops-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
.theme-color-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.theme-color-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
background: var(--bg-panel-solid);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.theme-color-label {
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
.theme-color-picker-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.theme-color-input {
|
|
width: 28px;
|
|
height: 22px;
|
|
padding: 0;
|
|
border: 1px solid var(--border-bright);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.theme-color-hex {
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
color: var(--text);
|
|
min-width: 56px;
|
|
}
|
|
.theme-preview-card {
|
|
padding: 12px 14px;
|
|
background-color: var(--bg-panel);
|
|
background-image: var(--panel-gradient);
|
|
border: 1px solid var(--border);
|
|
clip-path: var(--chamfer-sm);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ============================================================================
|
|
5. TERMINOLOGY TOOLTIPS
|
|
============================================================================ */
|
|
.term-wrap {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.tip-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 15px;
|
|
height: 15px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border-bright);
|
|
background: var(--bg-elevated);
|
|
color: var(--text-dim);
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
cursor: help;
|
|
flex-shrink: 0;
|
|
transition: color 0.14s, border-color 0.14s, background 0.14s;
|
|
}
|
|
.tip-badge:hover,
|
|
.tip-badge:focus-visible {
|
|
color: var(--sim-accent);
|
|
border-color: var(--sim-accent);
|
|
background: var(--sim-glow);
|
|
outline: none;
|
|
}
|
|
|
|
.hud-tooltip {
|
|
position: fixed;
|
|
z-index: 9500;
|
|
max-width: min(320px, calc(100vw - 20px));
|
|
padding: 9px 11px;
|
|
background: var(--bg-panel-solid);
|
|
border: 1px solid var(--sim-accent);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
box-shadow: var(--shadow-modal), 0 0 14px var(--sim-glow);
|
|
pointer-events: none;
|
|
color: var(--text);
|
|
font-family: var(--sans);
|
|
}
|
|
.hud-tooltip[hidden] {
|
|
display: none;
|
|
}
|
|
.hud-tooltip.pinned {
|
|
pointer-events: auto;
|
|
}
|
|
.hud-tooltip-actions {
|
|
margin-top: 8px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
.hud-tooltip-cat {
|
|
font-family: var(--mono);
|
|
font-size: 9px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--sim-accent);
|
|
margin-bottom: 2px;
|
|
}
|
|
.hud-tooltip-title {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: 4px;
|
|
}
|
|
.hud-tooltip-body {
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
color: var(--text-dim);
|
|
}
|
|
.hud-tooltip-formula {
|
|
margin-top: 6px;
|
|
padding: 4px 6px;
|
|
border-radius: 3px;
|
|
background: var(--bg-deep);
|
|
border: 1px solid var(--border);
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
color: var(--brand-blue);
|
|
}
|