/
guselnikov
/
inst
Обзор
Документация
Войти
/
guselnikov
/
inst
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin/src/styles/global.css
170 строк
4 KB
Viktor Guselnikov
first_commit
07 июл 2026, 11:54
07 июл 2026, 11:54
098126a
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap'); /* ─── Midnight Atelier — dark (default) ─── */ :root, [data-theme='dark'] { color-scheme: dark; /* elevation ladder: каждый слой +~6–8% lightness */ --bg-base: #131316; --bg-canvas: #18181c; --bg-surface: #1e1e23; --bg-muted: #26262c; --bg-elevated: #2f2f36; --bg-hover: rgba(255, 255, 255, 0.05); --bg-active: rgba(255, 255, 255, 0.08); --text-primary: #f4f4f5; --text-secondary: #b0b0b8; --text-muted: #85858f; --text-faint: #63636d; --accent: #c9a962; --accent-hover: #dfc07a; --accent-soft: rgba(201, 169, 98, 0.16); --accent-muted: rgba(201, 169, 98, 0.16); --accent-text: #131316; --danger: #e07a7a; --danger-soft: rgba(224, 122, 122, 0.14); --warning: #d4a853; --warning-soft: rgba(212, 168, 83, 0.14); --info: #8eb4d4; --info-soft: rgba(142, 180, 212, 0.12); --success: #8fae8f; --success-soft: rgba(143, 174, 143, 0.14); --border: rgba(255, 255, 255, 0.09); --border-hover: rgba(255, 255, 255, 0.14); --border-focus: rgba(201, 169, 98, 0.5); --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-full: 9999px; --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.22); --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.28); --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.38); --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07); --shadow-surface: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.05); --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; --sidebar-width: 252px; --ease: cubic-bezier(0.22, 1, 0.36, 1); --transition: 200ms var(--ease); } /* ─── Atelier Light ─── */ [data-theme='light'] { color-scheme: light; --bg-base: #f6f5f3; --bg-canvas: #faf9f7; --bg-surface: #ffffff; --bg-elevated: #ffffff; --bg-muted: #f0eeeb; --bg-hover: rgba(0, 0, 0, 0.03); --bg-active: rgba(0, 0, 0, 0.05); --text-primary: #18181b; --text-secondary: #52525b; --text-muted: #71717a; --text-faint: #a1a1aa; --accent: #9a7b3c; --accent-hover: #826632; --accent-soft: rgba(154, 123, 60, 0.1); --accent-muted: rgba(154, 123, 60, 0.1); --accent-text: #ffffff; --danger: #c45c5c; --danger-soft: rgba(196, 92, 92, 0.08); --warning: #b8860b; --warning-soft: rgba(184, 134, 11, 0.08); --info: #5a8fb8; --info-soft: rgba(90, 143, 184, 0.08); --success: #5a8a5a; --success-soft: rgba(90, 138, 90, 0.08); --border: rgba(0, 0, 0, 0.07); --border-hover: rgba(0, 0, 0, 0.12); --border-focus: rgba(154, 123, 60, 0.5); --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06); --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.1); --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8); --shadow-surface: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.9); } *, *::before, *::after { box-sizing: border-box; } html { color-scheme: dark; } html[data-theme='light'] { color-scheme: light; } body { margin: 0; min-height: 100dvh; font-family: var(--font-sans); font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; background: var(--bg-base); color: var(--text-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #root { min-height: 100dvh; } button, input, select, textarea { font: inherit; } a { color: var(--accent); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--accent-hover); } :focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; } ::selection { background: var(--accent-soft); color: var(--text-primary); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }