Updated the dialog components to use a unified class name, replacing 'crt-panel' with 'crt-dialog' for better clarity and consistency across the application. Enhanced the dialog overlay with a denser background and blur effect to improve readability against underlying content. Additionally, modified the UploadSnackbar and ShowsPanel to reflect these changes, ensuring a cohesive user experience.
154 lines
5.0 KiB
CSS
154 lines
5.0 KiB
CSS
@import 'tailwindcss';
|
|
|
|
/* Класс-стратегия тёмной темы: .dark на <html> (см. theme/ThemeProvider.tsx). */
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
/* Ретро-эфир/CRT: фосфорно-зелёный терминал в тёмной теме, янтарная бумага в светлой. */
|
|
:root {
|
|
--background: #f2ecd8;
|
|
--foreground: #241f14;
|
|
--muted: #e6dcc0;
|
|
--muted-foreground: #6b6247;
|
|
--border: #c9bd94;
|
|
--primary: #7a5a12;
|
|
--primary-foreground: #f2ecd8;
|
|
--accent: #b45309;
|
|
--scanline-opacity: 0.05;
|
|
color-scheme: light;
|
|
}
|
|
|
|
.dark {
|
|
--background: #05080a;
|
|
--foreground: #baffcb;
|
|
--muted: #0e1611;
|
|
--muted-foreground: #5fae7c;
|
|
--border: #1e3a26;
|
|
--primary: #33ff66;
|
|
--primary-foreground: #05080a;
|
|
--accent: #22d3ee;
|
|
--scanline-opacity: 0.09;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-border: var(--border);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-accent: var(--accent);
|
|
--font-sans: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
|
|
|
|
--text-xs: 0.844rem;
|
|
--text-sm: 0.984rem;
|
|
--text-base: 1.125rem;
|
|
--text-lg: 1.266rem;
|
|
--text-xl: 1.406rem;
|
|
--text-2xl: 1.688rem;
|
|
}
|
|
|
|
@layer base {
|
|
/* Нативные select/option: попап рисует браузер, поэтому цвета задаём явно —
|
|
иначе в тёмной теме получается зелёный текст на белом фоне. */
|
|
select {
|
|
color: var(--foreground);
|
|
}
|
|
|
|
select option {
|
|
background-color: var(--background);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
select option:checked {
|
|
background-color: var(--muted);
|
|
color: var(--primary);
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground font-sans antialiased;
|
|
margin: 0;
|
|
min-height: 100svh;
|
|
position: relative;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
/* Тонкие горизонтальные строки развёртки поверх всего экрана. */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 9999;
|
|
background: repeating-linear-gradient(
|
|
to bottom,
|
|
rgba(0, 0, 0, var(--scanline-opacity)) 0px,
|
|
rgba(0, 0, 0, var(--scanline-opacity)) 1px,
|
|
transparent 1px,
|
|
transparent 3px
|
|
);
|
|
}
|
|
|
|
/* Лёгкое затемнение по углам экрана — эффект кинескопа. */
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 9998;
|
|
box-shadow: inset 0 0 min(18vw, 220px) rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
letter-spacing: 0.02em;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.crt-glow {
|
|
text-shadow:
|
|
0 0 6px color-mix(in srgb, var(--primary) 70%, transparent),
|
|
0 0 16px color-mix(in srgb, var(--primary) 35%, transparent);
|
|
}
|
|
|
|
.crt-panel {
|
|
background: color-mix(in srgb, var(--muted) 82%, transparent);
|
|
border: 1px solid var(--border);
|
|
box-shadow:
|
|
0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent) inset,
|
|
0 8px 30px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
/*
|
|
* Модальное окно. Тот же оттенок, что у карточки, но фон непрозрачный: диалог висит над сеткой
|
|
* и таблицами, и сквозь полупрозрачную панель чужой текст читался прямо поверх полей ввода.
|
|
* Тень глубже, чем у карточки, — окно должно отрываться от страницы, а не лежать на ней.
|
|
*/
|
|
.crt-dialog {
|
|
background: color-mix(in srgb, var(--muted) 82%, var(--background));
|
|
border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
|
|
box-shadow:
|
|
0 0 0 1px color-mix(in srgb, var(--primary) 15%, transparent) inset,
|
|
0 24px 64px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
/*
|
|
* Всплывающая панель (поповер, автокомплит). Отдельный класс, а не crt-panel с правкой фона:
|
|
* фон там задан в этом же слое, и утилита вроде bg-muted его не перебивает — выигрывает то,
|
|
* что объявлено позже.
|
|
*
|
|
* Фон непрозрачный и темнее панели, рамка заметнее: поповер висит над чужим текстом, и
|
|
* полупрозрачность превращала список в кашу из наложенных строк.
|
|
*/
|
|
.crt-popover {
|
|
background: var(--background);
|
|
border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
|
|
box-shadow:
|
|
0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent) inset,
|
|
0 16px 48px rgba(0, 0, 0, 0.65);
|
|
}
|
|
}
|