- 개인 метки пользователя в user_settings.sidebar_marks (JSON-массив id страниц) - normalizeSidebarMarks() в lib/sidebar.js с валидацией (^[A-Za-z0-9_.-]+$, <=64 символов) - точечные индикаторы .nav-dot на пунктах сайдбара, клик/Enter/пробел toggle - сохранение через PUT /api/user-settings с очередью (keepalive), кэш в localStorage - синхронизация между вкладками через событие storage
1104 lines
23 KiB
CSS
1104 lines
23 KiB
CSS
|
|
/* =========================================================
|
|
MIDNIGHT NEON — Custom Dark Theme
|
|
/ Admin Dashboard
|
|
========================================================= */
|
|
|
|
/* --- 1. Цветовая система --- */
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
--bg: #0b0d14;
|
|
--card: #131722;
|
|
--border: #252c3b;
|
|
|
|
--accent: #8b5cf6;
|
|
--text: #f1f5f9;
|
|
--muted: #929db2;
|
|
|
|
--accent-hover: #a78bfa;
|
|
--accent-soft: rgba(139, 92, 246, .13);
|
|
--accent-glow: rgba(139, 92, 246, .25);
|
|
|
|
--surface-2: #191f2d;
|
|
--surface-3: #20283a;
|
|
|
|
--success: #34d399;
|
|
--warning: #fbbf24;
|
|
--danger: #fb7185;
|
|
--info: #38bdf8;
|
|
}
|
|
|
|
/* --- 2. Основной интерфейс --- */
|
|
|
|
html,
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
body {
|
|
background-image:
|
|
radial-gradient(
|
|
ellipse at 15% 0%,
|
|
rgba(124, 58, 237, .07),
|
|
transparent 40%
|
|
),
|
|
radial-gradient(
|
|
ellipse at 100% 100%,
|
|
rgba(14, 165, 233, .035),
|
|
transparent 40%
|
|
);
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(139, 92, 246, .35);
|
|
color: #fff;
|
|
}
|
|
|
|
/* --- 3. Боковая панель --- */
|
|
|
|
.sidebar {
|
|
background: #10131c;
|
|
border-right: 1px solid #242a39;
|
|
box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
|
|
}
|
|
|
|
.sidebar .logo,
|
|
.user-box,
|
|
.sidebar .bottom {
|
|
background: #10131c;
|
|
border-color: #242a39;
|
|
}
|
|
|
|
.sidebar .logo {
|
|
letter-spacing: -.035em;
|
|
}
|
|
|
|
.sidebar .logo-ic {
|
|
background: linear-gradient(
|
|
135deg,
|
|
#8b5cf6,
|
|
#6366f1
|
|
);
|
|
border: none;
|
|
box-shadow: 0 0 18px rgba(139, 92, 246, .2);
|
|
}
|
|
|
|
.nav-group-title {
|
|
color: #69758c;
|
|
letter-spacing: .1em;
|
|
}
|
|
|
|
.nav-divider {
|
|
background: #252c3b;
|
|
}
|
|
|
|
.sidebar nav a,
|
|
.sidebar .bottom-actions a {
|
|
color: #929db2;
|
|
border-radius: 9px;
|
|
transition:
|
|
background .2s ease,
|
|
color .2s ease,
|
|
transform .2s ease;
|
|
}
|
|
|
|
.sidebar nav a:hover,
|
|
.sidebar .bottom-actions a:hover {
|
|
background: #1b2130;
|
|
color: #f1f5f9;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.sidebar nav a.active {
|
|
color: #c4b5fd;
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(139, 92, 246, .2),
|
|
rgba(99, 102, 241, .07)
|
|
);
|
|
box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .12);
|
|
}
|
|
|
|
.sidebar nav a.active::before {
|
|
background: #a78bfa;
|
|
box-shadow: 0 0 12px rgba(167, 139, 250, .6);
|
|
}
|
|
|
|
.sidebar nav a.active svg {
|
|
color: #a78bfa;
|
|
}
|
|
|
|
.sidebar nav a .nav-dot {
|
|
background: #2b3342;
|
|
}
|
|
|
|
.sidebar nav a:hover .nav-dot {
|
|
background: #3d4657;
|
|
}
|
|
|
|
.sidebar nav a .nav-dot.on {
|
|
background: currentColor;
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
|
|
}
|
|
|
|
.user-box .user-avatar {
|
|
background: rgba(139, 92, 246, .15);
|
|
color: #c4b5fd;
|
|
}
|
|
|
|
.sidebar .bottom-footer {
|
|
border-color: #252c3b;
|
|
}
|
|
|
|
/* --- 4. Основной контент --- */
|
|
|
|
.main {
|
|
background: transparent;
|
|
}
|
|
|
|
.main h2 {
|
|
color: #f8fafc;
|
|
font-weight: 700;
|
|
letter-spacing: -.035em;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5 {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
/* --- 5. Карточки и панели --- */
|
|
|
|
.stat,
|
|
.card,
|
|
.journal-card,
|
|
.item,
|
|
.group-card,
|
|
.settings-card,
|
|
.stu-filters {
|
|
background: linear-gradient(
|
|
145deg,
|
|
#161b28,
|
|
#121621
|
|
);
|
|
border: 1px solid #272e40;
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
|
|
transition:
|
|
border-color .2s ease,
|
|
box-shadow .2s ease,
|
|
transform .2s ease;
|
|
}
|
|
|
|
.stat:hover,
|
|
.card:hover,
|
|
.group-card:hover {
|
|
border-color: #39435b;
|
|
}
|
|
|
|
.stat .num {
|
|
color: #a78bfa;
|
|
}
|
|
|
|
.stat .label,
|
|
.stat .stat-sub {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.stat-bar {
|
|
background: #252c3b;
|
|
}
|
|
|
|
.stat-bar i {
|
|
background: linear-gradient(
|
|
90deg,
|
|
#8b5cf6,
|
|
#38bdf8
|
|
);
|
|
box-shadow: 0 0 12px rgba(139, 92, 246, .25);
|
|
}
|
|
|
|
/* --- 6. Поля ввода --- */
|
|
|
|
input,
|
|
select,
|
|
textarea,
|
|
.search-input,
|
|
.filters select,
|
|
.filters input[type="date"] {
|
|
background-color: #0e121c;
|
|
color: #e2e8f0;
|
|
border-color: #2b3346;
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: #68748b;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus,
|
|
.search-input:focus,
|
|
.filters select:focus,
|
|
.filters input:focus {
|
|
border-color: #8b5cf6 !important;
|
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
|
|
outline: none;
|
|
}
|
|
|
|
#studentFilter,
|
|
#linkStudent,
|
|
#moduleFilter {
|
|
background: #0e121c;
|
|
color: #e2e8f0;
|
|
border-color: #2b3346;
|
|
}
|
|
|
|
/* --- 7. Кнопки --- */
|
|
|
|
button,
|
|
.btn-link,
|
|
.btn-primary {
|
|
transition:
|
|
background .2s ease,
|
|
border-color .2s ease,
|
|
box-shadow .2s ease,
|
|
transform .15s ease;
|
|
}
|
|
|
|
.add-row button,
|
|
.student-actions .btn-save,
|
|
.stu-item .btn-save,
|
|
.stu-item .stu-open,
|
|
.group-card .save-sched,
|
|
.settings-card .btn-link,
|
|
.edit-modal .save,
|
|
.pager button.active {
|
|
background: linear-gradient(
|
|
135deg,
|
|
#8b5cf6,
|
|
#6366f1
|
|
);
|
|
color: #fff;
|
|
border-color: transparent;
|
|
box-shadow: 0 4px 14px rgba(139, 92, 246, .18);
|
|
}
|
|
|
|
.add-row button:hover,
|
|
.student-actions .btn-save:hover,
|
|
.stu-item .btn-save:hover,
|
|
.group-card .save-sched:hover,
|
|
.settings-card .btn-link:hover,
|
|
.edit-modal .save:hover {
|
|
background: linear-gradient(
|
|
135deg,
|
|
#a78bfa,
|
|
#818cf8
|
|
);
|
|
box-shadow: 0 5px 20px rgba(139, 92, 246, .3);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-link,
|
|
.add-row .btn-ghost,
|
|
.stu-tool-acts .btn-link {
|
|
background: #191f2d;
|
|
color: #c4b5fd;
|
|
border-color: #30394e;
|
|
}
|
|
|
|
.btn-link:hover,
|
|
.add-row .btn-ghost:hover {
|
|
background: #222a3c;
|
|
border-color: #8b5cf6;
|
|
}
|
|
|
|
/* --- 8. Списки и строки --- */
|
|
|
|
.item:hover,
|
|
.stu-item:hover,
|
|
.pf-row:hover {
|
|
border-color: rgba(139, 92, 246, .4);
|
|
}
|
|
|
|
.stu-item:focus-within {
|
|
border-color: #8b5cf6;
|
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, .1);
|
|
}
|
|
|
|
.stu-item .group-select,
|
|
.stu-item .stu-status-select,
|
|
.group-card .name-input,
|
|
.group-schedule select,
|
|
.group-schedule input[type="time"] {
|
|
background: #0e121c;
|
|
border-color: #2b3346;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.stu-item .stu-open {
|
|
color: #fff;
|
|
}
|
|
|
|
.stu-menu {
|
|
background: #171d2a;
|
|
border-color: #30394e;
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
|
|
}
|
|
|
|
.stu-menu-item {
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
.stu-menu-item:hover {
|
|
background: #252d40;
|
|
color: #c4b5fd;
|
|
}
|
|
|
|
/* --- 9. Журнал и фотографии --- */
|
|
|
|
.journal-card {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.journal-card .body {
|
|
background: transparent;
|
|
}
|
|
|
|
.journal-card .foot {
|
|
background: #111622;
|
|
border-color: #272e40;
|
|
}
|
|
|
|
.journal-card .no-photo,
|
|
.img-media,
|
|
.img-media .img-skeleton {
|
|
background: #0e121c;
|
|
}
|
|
|
|
.group-badge {
|
|
background: rgba(15, 18, 30, .8);
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.entry-files .f-item,
|
|
.entry-files a {
|
|
background: #191f2d;
|
|
border-color: #2b3346;
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
/* --- 10. Модальные окна --- */
|
|
|
|
.modal-overlay {
|
|
background: rgba(3, 5, 12, .78);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.edit-modal,
|
|
.video-modal {
|
|
background: linear-gradient(
|
|
145deg,
|
|
#191f2d,
|
|
#121621
|
|
);
|
|
border: 1px solid #30394e;
|
|
border-radius: 18px;
|
|
box-shadow:
|
|
0 24px 80px rgba(0, 0, 0, .5),
|
|
0 0 30px rgba(139, 92, 246, .05);
|
|
}
|
|
|
|
.edit-modal label {
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.edit-modal input,
|
|
.edit-modal select,
|
|
.edit-modal textarea {
|
|
background: #0e121c;
|
|
border-color: #2b3346;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.edit-modal .cancel,
|
|
.edit-modal .cancel-btn {
|
|
background: #252c3b;
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
/* --- 11. Профиль ученика --- */
|
|
|
|
.pf-head,
|
|
.pf-foot {
|
|
background: #141925;
|
|
border-color: #2b3346;
|
|
}
|
|
|
|
.pf-tabs {
|
|
background: #111622;
|
|
border-color: #2b3346;
|
|
}
|
|
|
|
.pf-tab {
|
|
color: #929db2;
|
|
}
|
|
|
|
.pf-tab:hover {
|
|
background: #20283a;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.pf-tab.is-active {
|
|
background: rgba(139, 92, 246, .15);
|
|
color: #c4b5fd;
|
|
border-color: rgba(139, 92, 246, .3);
|
|
}
|
|
|
|
.pf-tile,
|
|
.pf-row,
|
|
.pf-chip {
|
|
background: #171d2a;
|
|
border-color: #2b3346;
|
|
}
|
|
|
|
.pf-f input,
|
|
.pf-f textarea,
|
|
.pf-f select {
|
|
background: #0e121c;
|
|
border-color: #2b3346;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.pf-meter {
|
|
background: #2b3346;
|
|
}
|
|
|
|
.pf-meter i {
|
|
background: linear-gradient(
|
|
90deg,
|
|
#8b5cf6,
|
|
#38bdf8
|
|
);
|
|
}
|
|
|
|
/* --- 12. Скроллбары --- */
|
|
|
|
* {
|
|
scrollbar-color: #39435b #111622;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #111622;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #39435b;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #596782;
|
|
}
|
|
|
|
/* --- 13. Микроанимации --- */
|
|
|
|
@keyframes neonPulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 8px rgba(139, 92, 246, .1);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 18px rgba(139, 92, 246, .2);
|
|
}
|
|
}
|
|
|
|
.sidebar nav a.active {
|
|
animation: neonPulse 4s ease-in-out infinite;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: .01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: .01ms !important;
|
|
}
|
|
}
|
|
/* =========================================================
|
|
MIDNIGHT NEON — DARK THEME
|
|
Включение: html.midnight-neon
|
|
========================================================= */
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
1. Цветовая палитра
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon {
|
|
color-scheme: dark;
|
|
|
|
--bg: #0b0d12;
|
|
--card: #131722;
|
|
--border: #252c3a;
|
|
|
|
--accent: #8b5cf6;
|
|
--text: #edf0f7;
|
|
--muted: #929bb0;
|
|
|
|
--radius: 12px;
|
|
|
|
--sc-primary: #8b5cf6;
|
|
--sc-primary-soft: rgba(139, 92, 246, 0.12);
|
|
--sc-border: #2b3142;
|
|
|
|
--dark-bg: #0b0d12;
|
|
--dark-card: #131722;
|
|
--dark-card-hover: #1a2030;
|
|
|
|
--purple: #8b5cf6;
|
|
--purple-hover: #a78bfa;
|
|
--blue: #38bdf8;
|
|
--green: #34d399;
|
|
--red: #fb7185;
|
|
--orange: #fb923c;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
2. Основная страница
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon body {
|
|
background: var(--bg) !important;
|
|
color: var(--text) !important;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
html.midnight-neon * {
|
|
scrollbar-color: #343b4d #10131b;
|
|
}
|
|
|
|
html.midnight-neon *::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
html.midnight-neon *::-webkit-scrollbar-track {
|
|
background: #10131b;
|
|
}
|
|
|
|
html.midnight-neon *::-webkit-scrollbar-thumb {
|
|
background: #343b4d;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
html.midnight-neon *::-webkit-scrollbar-thumb:hover {
|
|
background: #4b556b;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
3. Основные контейнеры
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .layout {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
html.midnight-neon main,
|
|
html.midnight-neon .main,
|
|
html.midnight-neon .main-content,
|
|
html.midnight-neon .content,
|
|
html.midnight-neon .page-content {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
html.midnight-neon section,
|
|
html.midnight-neon article {
|
|
color: var(--text);
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
4. Боковая панель
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .sidebar {
|
|
background: #10131b !important;
|
|
border-right: 1px solid #252b3a !important;
|
|
box-shadow: 5px 0 25px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
html.midnight-neon .sidebar .logo {
|
|
background: #10131b !important;
|
|
border-bottom-color: #252b3a !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
html.midnight-neon .sidebar .logo-ic {
|
|
background: #191e2b !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .user-box {
|
|
background: #10131b !important;
|
|
border-bottom-color: #252b3a !important;
|
|
}
|
|
|
|
html.midnight-neon .user-box .user-name {
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
html.midnight-neon .user-box .user-role {
|
|
color: #929bb0 !important;
|
|
}
|
|
|
|
html.midnight-neon .user-box .user-avatar {
|
|
background: rgba(139, 92, 246, 0.14) !important;
|
|
color: #a78bfa !important;
|
|
}
|
|
|
|
html.midnight-neon .sidebar a,
|
|
html.midnight-neon .sidebar button {
|
|
color: #a8b0c2;
|
|
transition:
|
|
background 0.18s ease,
|
|
color 0.18s ease,
|
|
border-color 0.18s ease;
|
|
}
|
|
|
|
html.midnight-neon .sidebar a:hover,
|
|
html.midnight-neon .sidebar button:hover {
|
|
background: #1a2030 !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
html.midnight-neon .sidebar a.active,
|
|
html.midnight-neon .sidebar .active {
|
|
background: rgba(139, 92, 246, 0.16) !important;
|
|
color: #c4b5fd !important;
|
|
border-color: rgba(139, 92, 246, 0.28) !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
5. Карточки и панели
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .card,
|
|
html.midnight-neon .panel,
|
|
html.midnight-neon .modal-content,
|
|
html.midnight-neon .dropdown-menu,
|
|
html.midnight-neon .popover,
|
|
html.midnight-neon .report-fields__panel {
|
|
background: var(--card) !important;
|
|
color: var(--text) !important;
|
|
border-color: var(--border) !important;
|
|
}
|
|
|
|
html.midnight-neon .card,
|
|
html.midnight-neon .panel {
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
html.midnight-neon .card-header,
|
|
html.midnight-neon .card-footer,
|
|
html.midnight-neon .panel-header,
|
|
html.midnight-neon .panel-footer {
|
|
background: #171c29 !important;
|
|
color: var(--text) !important;
|
|
border-color: var(--border) !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
6. Таблицы
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon table {
|
|
color: var(--text) !important;
|
|
border-color: var(--border) !important;
|
|
}
|
|
|
|
html.midnight-neon table th {
|
|
background: #171c29 !important;
|
|
color: #b7c0d3 !important;
|
|
border-color: var(--border) !important;
|
|
}
|
|
|
|
html.midnight-neon table td {
|
|
background: #131722 !important;
|
|
color: #e2e8f0 !important;
|
|
border-color: #252c3a !important;
|
|
}
|
|
|
|
html.midnight-neon table tbody tr:hover td {
|
|
background: #1a2030 !important;
|
|
}
|
|
|
|
html.midnight-neon .table-striped tbody tr:nth-of-type(odd) td {
|
|
background: #161b27 !important;
|
|
}
|
|
|
|
html.midnight-neon .table-striped tbody tr:hover td {
|
|
background: #1e2535 !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
7. Формы и поля ввода
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
|
|
html.midnight-neon textarea,
|
|
html.midnight-neon select {
|
|
background: #0f131d !important;
|
|
color: #edf0f7 !important;
|
|
border: 1px solid #30384b !important;
|
|
border-radius: 9px;
|
|
}
|
|
|
|
html.midnight-neon input::placeholder,
|
|
html.midnight-neon textarea::placeholder {
|
|
color: #68738a !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
html.midnight-neon input:focus,
|
|
html.midnight-neon textarea:focus,
|
|
html.midnight-neon select:focus {
|
|
border-color: #8b5cf6 !important;
|
|
outline: none !important;
|
|
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
|
|
}
|
|
|
|
html.midnight-neon input[type="checkbox"],
|
|
html.midnight-neon input[type="radio"] {
|
|
accent-color: #8b5cf6;
|
|
}
|
|
|
|
html.midnight-neon option {
|
|
background: #131722;
|
|
color: #edf0f7;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
8. Кнопки
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon button,
|
|
html.midnight-neon .btn {
|
|
transition:
|
|
background 0.18s ease,
|
|
border-color 0.18s ease,
|
|
color 0.18s ease,
|
|
transform 0.18s ease;
|
|
}
|
|
|
|
html.midnight-neon .btn-primary {
|
|
background: #8b5cf6 !important;
|
|
color: #ffffff !important;
|
|
border-color: #8b5cf6 !important;
|
|
}
|
|
|
|
html.midnight-neon .btn-primary:hover {
|
|
background: #7c3aed !important;
|
|
border-color: #7c3aed !important;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
html.midnight-neon .btn-secondary,
|
|
html.midnight-neon .btn-light {
|
|
background: #202637 !important;
|
|
color: #e2e8f0 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .btn-secondary:hover,
|
|
html.midnight-neon .btn-light:hover {
|
|
background: #2b3449 !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
html.midnight-neon .btn-outline-primary {
|
|
color: #a78bfa !important;
|
|
border-color: #8b5cf6 !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
html.midnight-neon .btn-outline-primary:hover {
|
|
background: rgba(139, 92, 246, 0.15) !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
9. Ссылки и текст
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon a {
|
|
color: #a78bfa;
|
|
}
|
|
|
|
html.midnight-neon a:hover {
|
|
color: #c4b5fd;
|
|
}
|
|
|
|
html.midnight-neon h1,
|
|
html.midnight-neon h2,
|
|
html.midnight-neon h3,
|
|
html.midnight-neon h4,
|
|
html.midnight-neon h5,
|
|
html.midnight-neon h6 {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
html.midnight-neon p,
|
|
html.midnight-neon label,
|
|
html.midnight-neon small {
|
|
color: inherit;
|
|
}
|
|
|
|
html.midnight-neon .text-muted,
|
|
html.midnight-neon .muted {
|
|
color: #929bb0 !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
10. Выпадающие меню и модальные окна
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .dropdown-menu {
|
|
background: #151a27 !important;
|
|
border: 1px solid #30384b !important;
|
|
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
html.midnight-neon .dropdown-item {
|
|
color: #dce3f0 !important;
|
|
}
|
|
|
|
html.midnight-neon .dropdown-item:hover,
|
|
html.midnight-neon .dropdown-item:focus {
|
|
background: #242b3d !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
html.midnight-neon .modal-content {
|
|
background: #151a27 !important;
|
|
border: 1px solid #30384b !important;
|
|
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
html.midnight-neon .modal-header,
|
|
html.midnight-neon .modal-footer {
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
11. Бейджи и статусы
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .badge {
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
html.midnight-neon .badge-primary {
|
|
background: rgba(139, 92, 246, 0.18) !important;
|
|
color: #c4b5fd !important;
|
|
}
|
|
|
|
html.midnight-neon .badge-success {
|
|
background: rgba(52, 211, 153, 0.14) !important;
|
|
color: #6ee7b7 !important;
|
|
}
|
|
|
|
html.midnight-neon .badge-danger {
|
|
background: rgba(251, 113, 133, 0.14) !important;
|
|
color: #fda4af !important;
|
|
}
|
|
|
|
html.midnight-neon .badge-warning {
|
|
background: rgba(251, 146, 60, 0.14) !important;
|
|
color: #fdba74 !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
12. Уведомления
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .alert {
|
|
background: #171c29 !important;
|
|
color: #e2e8f0 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .alert-success {
|
|
background: rgba(52, 211, 153, 0.1) !important;
|
|
color: #6ee7b7 !important;
|
|
border-color: rgba(52, 211, 153, 0.25) !important;
|
|
}
|
|
|
|
html.midnight-neon .alert-danger {
|
|
background: rgba(251, 113, 133, 0.1) !important;
|
|
color: #fda4af !important;
|
|
border-color: rgba(251, 113, 133, 0.25) !important;
|
|
}
|
|
|
|
html.midnight-neon .alert-warning {
|
|
background: rgba(251, 146, 60, 0.1) !important;
|
|
color: #fdba74 !important;
|
|
border-color: rgba(251, 146, 60, 0.25) !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
13. Разделители
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon hr {
|
|
border-color: #252c3a !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
html.midnight-neon .border,
|
|
html.midnight-neon .border-top,
|
|
html.midnight-neon .border-bottom,
|
|
html.midnight-neon .border-left,
|
|
html.midnight-neon .border-right {
|
|
border-color: #252c3a !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
14. Отчёты и специфические элементы
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .report-fields__btn {
|
|
background: #171c29 !important;
|
|
color: #e2e8f0 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__btn:hover {
|
|
color: #c4b5fd !important;
|
|
border-color: #8b5cf6 !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__panel {
|
|
background: #151a27 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__item:hover {
|
|
background: #202637 !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__track {
|
|
background: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__toggle input:checked + .report-fields__track {
|
|
background: #8b5cf6 !important;
|
|
}
|
|
|
|
html.midnight-neon .report-fields__shot {
|
|
background: #8b5cf6 !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
html.midnight-neon .student-card__gallery-grid {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
html.midnight-neon .sc-gal__shot {
|
|
background: #171c29 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon .sc-gal__shot:hover {
|
|
border-color: #8b5cf6 !important;
|
|
box-shadow: 0 10px 25px rgba(139, 92, 246, 0.16);
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
15. Исправление светлых элементов
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon .face-assign-select {
|
|
background: #0f131d !important;
|
|
color: #edf0f7 !important;
|
|
border-color: #30384b !important;
|
|
}
|
|
|
|
html.midnight-neon [style*="background:#fff"],
|
|
html.midnight-neon [style*="background: #fff"],
|
|
html.midnight-neon [style*="background-color:#fff"],
|
|
html.midnight-neon [style*="background-color: #fff"],
|
|
html.midnight-neon [style*="background: white"],
|
|
html.midnight-neon [style*="background-color: white"] {
|
|
background-color: #131722 !important;
|
|
color: #edf0f7 !important;
|
|
}
|
|
|
|
html.midnight-neon [style*="#fff7ed"],
|
|
html.midnight-neon [style*="#fff7ed"] * {
|
|
background-color: #241b17 !important;
|
|
color: #fdba74 !important;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
16. Плавное переключение
|
|
--------------------------------------------------------- */
|
|
|
|
html.midnight-neon body,
|
|
html.midnight-neon .sidebar,
|
|
html.midnight-neon .card,
|
|
html.midnight-neon .panel,
|
|
html.midnight-neon input,
|
|
html.midnight-neon select,
|
|
html.midnight-neon textarea,
|
|
html.midnight-neon button {
|
|
transition:
|
|
background-color 0.2s ease,
|
|
color 0.2s ease,
|
|
border-color 0.2s ease;
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------
|
|
17. Уважение системной настройки reduced motion
|
|
--------------------------------------------------------- */
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html.midnight-neon *,
|
|
html.midnight-neon *::before,
|
|
html.midnight-neon *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|