239 lines
6.2 KiB
CSS
239 lines
6.2 KiB
CSS
/* 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"] {
|
|
--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;
|
|
--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;
|
|
}
|
|
|
|
: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-color-mode="light"] .menu-title {
|
|
color: #0f172a;
|
|
text-shadow: none;
|
|
}
|
|
:root[data-color-mode="light"] .menu-brand-pill {
|
|
background: rgba(255, 255, 255, 0.92);
|
|
color: #0369a1;
|
|
}
|
|
: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.reduced-effects {
|
|
--chamfer: none;
|
|
--chamfer-sm: none;
|
|
--sim-glow: transparent;
|
|
}
|
|
:root.reduced-effects body::before {
|
|
background-image: none !important;
|
|
}
|
|
:root.reduced-effects *,
|
|
:root.reduced-effects *::before,
|
|
:root.reduced-effects *::after {
|
|
text-shadow: none !important;
|
|
box-shadow: none !important;
|
|
backdrop-filter: none !important;
|
|
-webkit-backdrop-filter: none !important;
|
|
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;
|
|
}
|
|
|
|
.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: rgba(15, 23, 42, 0.72);
|
|
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: rgba(96, 165, 250, 0.16);
|
|
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);
|
|
clip-path: var(--chamfer-sm);
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 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: rgba(15, 23, 42, 0.75);
|
|
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;
|
|
}
|