134 lines
2.8 KiB
CSS
134 lines
2.8 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
--color-bg: #000000;
|
|
--color-surface: #0e0e0e;
|
|
--color-card: #141414;
|
|
--color-card-lt: #1c1c1c;
|
|
--color-border: #3a3a3a;
|
|
--color-accent: #ff4d00;
|
|
--color-accent-lt: #ff7733;
|
|
--color-accent-dim: #ff4d0018;
|
|
--color-accent-glow: #ff4d0040;
|
|
--color-success: #3fb950;
|
|
--color-warning: #f0a500;
|
|
--color-danger: #ff6b6b;
|
|
--color-text-pri: #ffffff;
|
|
--color-text-sec: #a8a8a8;
|
|
--color-text-dim: #5c5c5c;
|
|
--color-input-border: #444444;
|
|
--color-surface-lt: #1e1e1e;
|
|
--color-caption-bg: #050505;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: #000000;
|
|
color: var(--color-text-pri);
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
|
Arial, sans-serif;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
line-height: 1.625;
|
|
}
|
|
|
|
[data-tauri-drag-region],
|
|
[data-tauri-drag-region] * {
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #222;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #333;
|
|
}
|
|
|
|
/* ── Accessibility: Screen-reader only ── */
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border-width: 0;
|
|
}
|
|
|
|
/* ── Accessibility: Skip link ── */
|
|
.skip-link {
|
|
position: absolute;
|
|
top: -100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 10000;
|
|
padding: 8px 16px;
|
|
background: var(--color-accent);
|
|
color: #000;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
border-radius: 0 0 8px 8px;
|
|
text-decoration: none;
|
|
transition: top 0.15s ease;
|
|
}
|
|
.skip-link:focus {
|
|
top: 0;
|
|
}
|
|
|
|
/* ── Accessibility: Focus indicators ── */
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-accent);
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* ── Accessibility: Reduced motion ── */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.001ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.001ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
/* ── Accessibility: Windows High Contrast ── */
|
|
@media (forced-colors: active) {
|
|
:root {
|
|
--color-bg: Canvas;
|
|
--color-surface: Canvas;
|
|
--color-card: Canvas;
|
|
--color-card-lt: Canvas;
|
|
--color-border: ButtonBorder;
|
|
--color-accent: Highlight;
|
|
--color-accent-lt: Highlight;
|
|
--color-text-pri: CanvasText;
|
|
--color-text-sec: CanvasText;
|
|
--color-text-dim: GrayText;
|
|
--color-success: Highlight;
|
|
--color-warning: Highlight;
|
|
--color-danger: LinkText;
|
|
}
|
|
}
|