/
VVRONGG
/
backside
Обзор
Документация
Войти
/
VVRONGG
/
backside
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
admin/src/styles.css
313 строк
5 KB
VVrongg
feat(admin): React/Vite SPA for managing objectives and routes
22 май 2026, 21:13
22 май 2026, 21:13
dca9b47
Код
Авторство
О чём код?
:root { --bg: #f4f5f7; --surface: #ffffff; --border: #e1e4e8; --text: #1f2328; --muted: #6b7280; --primary: #2563eb; --primary-dark: #1d4ed8; --danger: #dc2626; --radius: 8px; } * { box-sizing: border-box; } body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; } h1 { font-size: 1.4rem; margin: 0; } h3 { font-size: 1rem; margin: 0 0 0.5rem; } .muted { color: var(--muted); } .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; } .error { color: var(--danger); background: #fef2f2; border: 1px solid #fecaca; padding: 0.5rem 0.75rem; border-radius: var(--radius); } /* ---- layout ---- */ .app { min-height: 100vh; } .topbar { display: flex; align-items: center; gap: 1.5rem; padding: 0 1.5rem; height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); } .brand { font-weight: 700; } .nav { display: flex; gap: 1rem; flex: 1; } .nav a { text-decoration: none; color: var(--muted); padding: 0.35rem 0.6rem; border-radius: var(--radius); } .nav a.active { color: var(--primary); background: #eff6ff; } .content { max-width: 1024px; margin: 0 auto; padding: 1.5rem; } .page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; } /* ---- cards & forms ---- */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; } .form-fields { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 0; } .coord-row { display: flex; gap: 0.75rem; } .coord-row label { flex: 1; } label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; } input, textarea, select { font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); } input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; } textarea { resize: vertical; } /* ---- buttons ---- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; font: inherit; font-weight: 600; padding: 0.5rem 0.9rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; background: #eef0f3; color: var(--text); } .btn:hover { filter: brightness(0.97); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); } .btn-secondary { background: #e0e7ff; color: var(--primary-dark); } .btn-ghost { background: transparent; border-color: var(--border); } .btn-danger { background: #fee2e2; color: var(--danger); } .btn-tiny { padding: 0.25rem 0.5rem; font-size: 0.8rem; } /* ---- tables ---- */ .table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .table th, .table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); } .table th { background: #fafbfc; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); } .table tr:last-child td { border-bottom: none; } .row-actions { display: flex; gap: 0.4rem; } /* ---- map ---- */ .map { height: 340px; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); } /* ---- images ---- */ .images-head { display: flex; align-items: center; justify-content: space-between; } .thumb-grid { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; } .thumb { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fafbfc; } .thumb img { width: 100%; height: 110px; object-fit: cover; display: block; } .thumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.25rem; padding: 0.35rem; } .badge { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; } /* ---- route points ---- */ .point-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; } .point-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; } .point-name { flex: 1; } .add-point { display: flex; gap: 0.5rem; } .add-point select { flex: 1; } /* ---- login ---- */ .login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1rem; } .login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 0.9rem; } @media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }