423 lines
8.7 KiB
CSS
423 lines
8.7 KiB
CSS
:root {
|
||
--bg: #ffffff;
|
||
--surface: #ffffff;
|
||
--surface-2: #f9fafb;
|
||
--border: rgba(34, 36, 38, 0.15);
|
||
--border-lite: rgba(34, 36, 38, 0.1);
|
||
--ink: rgba(0, 0, 0, 0.87);
|
||
--muted: rgba(0, 0, 0, 0.6);
|
||
--accent: #2185d0;
|
||
--accent-dark: #1678c2;
|
||
--accent-bg: #dff0ff;
|
||
--crit-border: #e0b4b4;
|
||
--ok-bg: #fcfff5; --ok-fg: #2c662d;
|
||
--warn-bg: #fffaf3; --warn-fg: #573a08;
|
||
--crit-bg: #fff6f6; --crit-fg: #9f3a38;
|
||
--unknown-bg: #f9fafb; --unknown-fg: rgba(0, 0, 0, 0.5);
|
||
--empty-bg: #f9fafb; --empty-fg: rgba(0, 0, 0, 0.4);
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
margin: 0;
|
||
background: var(--bg);
|
||
color: var(--ink);
|
||
font: 14px/1.5 Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||
}
|
||
|
||
/* ── Header ──────────────────────────────────────── */
|
||
|
||
.page-header {
|
||
background: #1b1c1d;
|
||
padding: 14px 24px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
}
|
||
|
||
.page-header h1 {
|
||
margin: 0;
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
}
|
||
|
||
/* ── Main layout ─────────────────────────────────── */
|
||
|
||
.header-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.header-action {
|
||
display: inline-block;
|
||
text-decoration: none;
|
||
border-radius: 4px;
|
||
background: rgba(255, 255, 255, 0.12);
|
||
color: rgba(255, 255, 255, 0.85);
|
||
padding: 6px 14px;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
transition: background 0.1s ease;
|
||
}
|
||
|
||
.header-action:hover {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.page-main {
|
||
width: min(1500px, calc(100vw - 48px));
|
||
margin: 28px auto 56px;
|
||
}
|
||
|
||
/* ── Meta-panel and upload — классические карточки ── */
|
||
|
||
.empty-panel,
|
||
.meta-panel,
|
||
.notice-panel,
|
||
.upload-panel {
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
|
||
overflow: hidden;
|
||
margin-bottom: 28px;
|
||
}
|
||
|
||
.empty-panel h2,
|
||
.meta-panel h2,
|
||
.notice-panel h2,
|
||
.upload-panel h2 {
|
||
display: block;
|
||
margin: 0;
|
||
padding: 13px 16px;
|
||
background: var(--surface-2);
|
||
border-bottom: 1px solid var(--border);
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: var(--ink);
|
||
}
|
||
|
||
.empty-panel p,
|
||
.notice-panel p,
|
||
.upload-panel p {
|
||
margin: 0;
|
||
padding: 12px 16px 0;
|
||
color: var(--muted);
|
||
}
|
||
|
||
.empty-panel p:last-child {
|
||
padding-bottom: 16px;
|
||
}
|
||
|
||
/* ── Section cards — heading + table, без обёртки ─── */
|
||
|
||
.section-card {
|
||
background: transparent;
|
||
border: none;
|
||
box-shadow: none;
|
||
overflow: visible;
|
||
margin-bottom: 32px;
|
||
}
|
||
|
||
.section-card h2 {
|
||
display: block;
|
||
margin: 0 0 10px;
|
||
padding: 0;
|
||
background: transparent;
|
||
border: none;
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
color: rgba(0, 0, 0, 0.87);
|
||
}
|
||
|
||
/* таблица внутри section-card получает свой бордер */
|
||
.section-card .table-wrap {
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.section-card .kv-table {
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
|
||
}
|
||
|
||
/* ── Upload ──────────────────────────────────────── */
|
||
|
||
.upload-panel {
|
||
width: min(520px, 100%);
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
.upload-dropzone {
|
||
display: block;
|
||
margin: 12px 16px 0;
|
||
border: 1px dashed var(--border);
|
||
border-radius: 4px;
|
||
padding: 16px;
|
||
background: var(--surface-2);
|
||
cursor: pointer;
|
||
transition: border-color 0.1s ease, background 0.1s ease;
|
||
}
|
||
|
||
.upload-dropzone:hover {
|
||
border-color: var(--accent);
|
||
background: var(--accent-bg);
|
||
}
|
||
|
||
.upload-dropzone input {
|
||
display: block;
|
||
width: 100%;
|
||
margin-bottom: 12px;
|
||
font: inherit;
|
||
color: var(--ink);
|
||
}
|
||
|
||
.upload-eyebrow {
|
||
display: block;
|
||
margin-bottom: 4px;
|
||
color: var(--accent);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.05em;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.upload-dropzone strong {
|
||
display: block;
|
||
margin-bottom: 3px;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: var(--ink);
|
||
}
|
||
|
||
.upload-dropzone span:last-child {
|
||
color: var(--muted);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.upload-actions {
|
||
padding: 12px 16px 16px;
|
||
}
|
||
|
||
.upload-actions button {
|
||
background: var(--accent);
|
||
color: #fff;
|
||
border: none;
|
||
border-radius: 4px;
|
||
padding: 8px 18px;
|
||
font: inherit;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: background 0.1s ease;
|
||
}
|
||
|
||
.upload-actions button:hover {
|
||
background: var(--accent-dark);
|
||
}
|
||
|
||
.upload-actions button:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* ── Error ───────────────────────────────────────── */
|
||
|
||
.error-box {
|
||
margin: 12px 16px;
|
||
border: 1px solid var(--crit-border);
|
||
border-radius: 4px;
|
||
padding: 10px 14px;
|
||
background: var(--crit-bg);
|
||
color: var(--crit-fg);
|
||
}
|
||
|
||
/* ── Sections grid ───────────────────────────────── */
|
||
|
||
.sections-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 0 32px;
|
||
}
|
||
|
||
.section-card-half { grid-column: span 1; }
|
||
.section-card-full { grid-column: 1 / -1; }
|
||
|
||
/* ── Tables ──────────────────────────────────────── */
|
||
|
||
.kv-table,
|
||
.data-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 14px;
|
||
background: var(--surface);
|
||
}
|
||
|
||
.kv-table th,
|
||
.kv-table td,
|
||
.data-table th,
|
||
.data-table td {
|
||
vertical-align: top;
|
||
text-align: left;
|
||
border-top: 1px solid var(--border-lite);
|
||
padding: 11px 14px;
|
||
}
|
||
|
||
.kv-table tr:first-child th,
|
||
.kv-table tr:first-child td,
|
||
.data-table tr:first-child th,
|
||
.data-table tr:first-child td {
|
||
border-top: 0;
|
||
}
|
||
|
||
.kv-table th,
|
||
.data-table th {
|
||
background: var(--surface-2);
|
||
color: var(--ink);
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
border-bottom: 1px solid var(--border-lite);
|
||
border-top: 0;
|
||
}
|
||
|
||
.kv-table th {
|
||
width: 1%;
|
||
}
|
||
|
||
.data-table tbody tr:hover {
|
||
background: rgba(0, 0, 0, 0.04);
|
||
transition: background 0.1s ease;
|
||
}
|
||
|
||
/* table-wrap уже получил border в .section-card .table-wrap */
|
||
.table-wrap {
|
||
overflow-x: auto;
|
||
}
|
||
|
||
/* для meta-panel table-wrap без дублирования бордера */
|
||
.meta-panel .table-wrap {
|
||
border: none;
|
||
box-shadow: none;
|
||
border-radius: 0;
|
||
}
|
||
|
||
.table-group + .table-group {
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
|
||
.table-group h3 {
|
||
margin: 0;
|
||
padding: 9px 14px;
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.05em;
|
||
text-transform: uppercase;
|
||
background: var(--surface-2);
|
||
border-bottom: 1px solid var(--border-lite);
|
||
}
|
||
|
||
.table-block {
|
||
display: block;
|
||
}
|
||
|
||
.table-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin: 0 0 10px;
|
||
}
|
||
|
||
.table-toolbar-label {
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.table-severity-filter {
|
||
min-width: 180px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
padding: 7px 10px;
|
||
background: var(--surface);
|
||
color: var(--ink);
|
||
font: inherit;
|
||
}
|
||
|
||
.table-severity-filter:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.table-filter-empty {
|
||
margin: 10px 0 0;
|
||
color: var(--muted);
|
||
}
|
||
|
||
/* ── Status ──────────────────────────────────────── */
|
||
|
||
.status-badge {
|
||
display: inline-block;
|
||
font-size: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.status-badge::before {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
}
|
||
|
||
.status-ok::before { content: '✓'; color: #16ab39; }
|
||
.status-warning::before { content: '!'; color: #f2711c; }
|
||
.status-critical::before { content: '✗'; color: #db2828; }
|
||
.status-unknown::before { content: '?'; color: rgba(0, 0, 0, 0.4); }
|
||
.status-empty::before { content: '–'; color: rgba(0, 0, 0, 0.3); }
|
||
|
||
/* ── Responsive ──────────────────────────────────── */
|
||
|
||
@media (max-width: 720px) {
|
||
.page-header {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.page-main {
|
||
width: calc(100vw - 24px);
|
||
margin-top: 20px;
|
||
}
|
||
|
||
.sections-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.page-header {
|
||
padding: 12px 16px;
|
||
}
|
||
|
||
.section-card-half,
|
||
.section-card-full {
|
||
grid-column: auto;
|
||
}
|
||
|
||
.table-toolbar {
|
||
align-items: stretch;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.table-severity-filter {
|
||
min-width: 0;
|
||
width: 100%;
|
||
}
|
||
}
|