Files
WTO-Site/site/tokens.css
T
N0VAN0M4LY fa05f36584 feat(site): upgrade documentation reader with full-book handbooks and search
Compile unabridged bilingual Developer Handbook and Mod Authoring Handbook from repository Markdown with nested list and ordered-list continuation fixes, fix primary button text contrast inside doc sections, and add full-book search, expand-all Ctrl+F mode, active chapter sub-TOC, pushState history, and local file:// link fallback.
2026-12-03 11:26:11 +08:00

88 lines
2.5 KiB
CSS

/* ============================================================
* WTOffline Homepage & Documentation Design Tokens
* Aligned with the launcher ordnance palette: dark slate base,
* signal crimson primary actions, subtle tactical cyan glow.
* Supports dark (default) and light modes via [data-mode].
* ============================================================ */
:root {
color-scheme: dark;
--font-display: 'Bahnschrift', 'DIN Alternate', 'Roboto Condensed', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
--font-ui: 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
--font-mono: Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
/* Spacing scale */
--s1: 6px;
--s2: 10px;
--s3: 16px;
--s4: 22px;
--s5: 28px;
--s6: 44px;
/* Corner radii */
--r-xs: 4px;
--r-sm: 6px;
--r-lg: 14px;
--r-md: 10px;
/* Dark ordnance palette (default) */
--page: #0b0f11;
--canvas: radial-gradient(circle at 18% 0%, #172026 0%, #0b0f11 58%);
--surface: rgba(20, 27, 31, 0.78);
--card: rgba(22, 29, 34, 0.86);
--doc-card: rgba(16, 22, 26, 0.94);
--elev: rgba(18, 24, 28, 0.92);
--glass-2: rgba(255, 255, 255, 0.045);
--border: rgba(255, 255, 255, 0.10);
--border-2: rgba(255, 255, 255, 0.22);
--grid-line: rgba(207, 216, 220, 0.09);
--text: #edf2f5;
--text-dim: rgba(224, 232, 236, 0.84);
--text-faint: rgba(207, 216, 220, 0.66);
--accent: #e53935;
--accent-hover: #f04a46;
--accent-soft: rgba(229, 57, 53, 0.16);
--accent-2: #31e3ee;
--ok: #7bd88f;
--shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
--shadow-md: 0 18px 42px rgba(0, 0, 0, 0.44);
--shadow-accent: 0 10px 28px rgba(229, 57, 53, 0.28);
}
:root[data-mode='light'] {
color-scheme: light;
--page: #eef2f5;
--canvas: radial-gradient(circle at 18% 0%, #ffffff 0%, #e7edf2 62%);
--surface: rgba(255, 255, 255, 0.82);
--card: rgba(255, 255, 255, 0.90);
--doc-card: rgba(255, 255, 255, 0.96);
--elev: rgba(255, 255, 255, 0.95);
--glass-2: rgba(19, 25, 27, 0.045);
--border: rgba(19, 25, 27, 0.11);
--border-2: rgba(19, 25, 27, 0.24);
--grid-line: rgba(19, 25, 27, 0.08);
--text: #141b1f;
--text-dim: rgba(20, 27, 31, 0.80);
--text-faint: rgba(20, 27, 31, 0.62);
--accent: #d32f2f;
--accent-hover: #b71c1c;
--accent-soft: rgba(211, 47, 47, 0.12);
--accent-2: #00838f;
--ok: #2e7d32;
--shadow-sm: 0 6px 20px rgba(19, 25, 27, 0.07);
--shadow-md: 0 18px 40px rgba(19, 25, 27, 0.12);
--shadow-accent: 0 10px 24px rgba(211, 47, 47, 0.22);
}