Add theme settings, and remove the old theme system
This commit is contained in:
parent
567ac1a26d
commit
9f4a3197de
22 changed files with 2301 additions and 463 deletions
|
|
@ -1,5 +1,208 @@
|
|||
/* Daylight light mode overrides (for the blind), reduce-effecties mode (for the not-blind), and terminology tooltips (I needed that). */
|
||||
:root[data-color-mode="light"] {
|
||||
/* 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;
|
||||
|
|
@ -7,6 +210,7 @@
|
|||
--bg-hover: #cbd5e1;
|
||||
--border: #cbd5e1;
|
||||
--border-bright: #94a3b8;
|
||||
--border-subtle: rgba(148, 163, 184, 0.45);
|
||||
--text: #0f172a;
|
||||
--text-dim: #475569;
|
||||
--text-faint: #64748b;
|
||||
|
|
@ -19,113 +223,220 @@
|
|||
--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-color-mode="light"] body::before {
|
||||
background-image:
|
||||
radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.08), transparent 60%),
|
||||
linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
|
||||
: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-color-mode="light"] .menu-title {
|
||||
color: #0f172a;
|
||||
:root[data-surface-polarity="light"] .menu-title {
|
||||
text-shadow: none;
|
||||
}
|
||||
:root[data-color-mode="light"] .menu-brand-pill {
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
color: #0369a1;
|
||||
:root[data-surface-polarity="light"] .dash-header {
|
||||
background: none;
|
||||
}
|
||||
:root[data-color-mode="light"] .btn.primary {
|
||||
background: #0284c7;
|
||||
border-color: #0369a1;
|
||||
color: #ffffff;
|
||||
}
|
||||
:root[data-color-mode="light"] .btn.primary:hover:not(:disabled) {
|
||||
background: #0369a1;
|
||||
color: #ffffff;
|
||||
}
|
||||
:root[data-color-mode="light"] .btn.warn {
|
||||
background: rgba(217, 119, 6, 0.14);
|
||||
color: #92400e;
|
||||
}
|
||||
:root[data-color-mode="light"] .btn.danger {
|
||||
background: rgba(220, 38, 38, 0.12);
|
||||
color: #991b1b;
|
||||
}
|
||||
:root[data-color-mode="light"] .btn.ghost {
|
||||
background: #ffffff;
|
||||
border-color: #cbd5e1;
|
||||
color: #475569;
|
||||
}
|
||||
:root[data-color-mode="light"] .badge {
|
||||
background: #f8fafc;
|
||||
}
|
||||
:root[data-color-mode="light"] .dash-header {
|
||||
background: linear-gradient(180deg, rgba(241, 245, 249, 0.94), transparent);
|
||||
}
|
||||
:root[data-color-mode="light"] .builder-tabs,
|
||||
:root[data-color-mode="light"] .slot-group,
|
||||
:root[data-color-mode="light"] .builder-summary-bar,
|
||||
:root[data-color-mode="light"] .builder-coop-bar {
|
||||
background: #f8fafc;
|
||||
}
|
||||
:root[data-color-mode="light"] .launch-hud,
|
||||
:root[data-color-mode="light"] .launch-events,
|
||||
:root[data-color-mode="light"] .notif-toggle-bar,
|
||||
:root[data-color-mode="light"] .notif-mini-pill {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
:root[data-color-mode="light"] .modal-overlay {
|
||||
background: rgba(15, 23, 42, 0.42);
|
||||
}
|
||||
:root[data-color-mode="light"] .value-bar-track {
|
||||
background: #e2e8f0;
|
||||
: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;
|
||||
}
|
||||
|
||||
:root.reduced-effects {
|
||||
--chamfer: none;
|
||||
--chamfer-sm: none;
|
||||
/* ============================================================================
|
||||
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-effects body::before {
|
||||
:root.reduced-ui-effects body::before {
|
||||
background-image: none !important;
|
||||
}
|
||||
:root.reduced-effects *,
|
||||
:root.reduced-effects *::before,
|
||||
:root.reduced-effects *::after {
|
||||
: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;
|
||||
}
|
||||
:root.reduced-effects .panel,
|
||||
:root.reduced-effects .card,
|
||||
:root.reduced-effects .btn,
|
||||
:root.reduced-effects .input,
|
||||
:root.reduced-effects .badge,
|
||||
:root.reduced-effects .stat-box,
|
||||
:root.reduced-effects .stage-card,
|
||||
:root.reduced-effects .rule-item,
|
||||
:root.reduced-effects .launch-hud,
|
||||
:root.reduced-effects .launch-events,
|
||||
:root.reduced-effects .comfort-btn,
|
||||
:root.reduced-effects .notif-toggle-bar,
|
||||
:root.reduced-effects .hud-tooltip,
|
||||
:root.reduced-effects .wiki-nav-item,
|
||||
:root.reduced-effects .wiki-search-hit,
|
||||
:root.reduced-effects .wiki-callout,
|
||||
:root.reduced-effects .wiki-formula,
|
||||
:root.reduced-effects .wiki-checklist-item,
|
||||
:root.reduced-effects .wiki-ref-card,
|
||||
:root.reduced-effects .walkthrough-card,
|
||||
:root.reduced-effects .walkthrough-pill {
|
||||
clip-path: none !important;
|
||||
border-radius: 4px;
|
||||
|
||||
/* ============================================================================
|
||||
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;
|
||||
|
|
@ -142,7 +453,7 @@
|
|||
padding: 0;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-bright);
|
||||
background: rgba(15, 23, 42, 0.72);
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-dim);
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
|
|
@ -156,7 +467,7 @@
|
|||
.tip-badge:focus-visible {
|
||||
color: var(--sim-accent);
|
||||
border-color: var(--sim-accent);
|
||||
background: rgba(96, 165, 250, 0.16);
|
||||
background: var(--sim-glow);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
|
@ -167,8 +478,9 @@
|
|||
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: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 14px var(--sim-glow);
|
||||
box-shadow: var(--shadow-modal), 0 0 14px var(--sim-glow);
|
||||
pointer-events: none;
|
||||
color: var(--text);
|
||||
font-family: var(--sans);
|
||||
|
|
@ -209,31 +521,9 @@
|
|||
margin-top: 6px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 3px;
|
||||
background: rgba(15, 23, 42, 0.75);
|
||||
background: var(--bg-deep);
|
||||
border: 1px solid var(--border);
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--brand-blue);
|
||||
}
|
||||
|
||||
:root[data-color-mode="light"] .tip-badge {
|
||||
background: #e2e8f0;
|
||||
border-color: #94a3b8;
|
||||
color: #334155;
|
||||
}
|
||||
:root[data-color-mode="light"] .tip-badge:hover,
|
||||
:root[data-color-mode="light"] .tip-badge:focus-visible {
|
||||
background: rgba(2, 132, 199, 0.14);
|
||||
border-color: #0284c7;
|
||||
color: #0369a1;
|
||||
}
|
||||
:root[data-color-mode="light"] .hud-tooltip {
|
||||
background: #ffffff;
|
||||
border-color: #0284c7;
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
:root[data-color-mode="light"] .hud-tooltip-formula {
|
||||
background: #f1f5f9;
|
||||
border-color: #cbd5e1;
|
||||
color: #0369a1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue