261 lines
4.8 KiB
CSS
261 lines
4.8 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--surface-1: #fcfcfb;
|
|
--page-plane: #f9f9f7;
|
|
--text-primary: #0b0b0b;
|
|
--text-secondary: #52514e;
|
|
--text-muted: #898781;
|
|
--gridline: #e1e0d9;
|
|
--baseline: #c3c2b7;
|
|
--border: rgba(11, 11, 11, 0.1);
|
|
--series-1: #2a78d6;
|
|
--seq-300: #6da7ec;
|
|
--seq-500: #256abf;
|
|
--status-good: #0ca30c;
|
|
--status-warning: #fab219;
|
|
--status-critical: #d03b3b;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:where(:not([data-theme="light"])) {
|
|
color-scheme: dark;
|
|
--surface-1: #1a1a19;
|
|
--page-plane: #0d0d0d;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #c3c2b7;
|
|
--text-muted: #898781;
|
|
--gridline: #2c2c2a;
|
|
--baseline: #383835;
|
|
--border: rgba(255, 255, 255, 0.1);
|
|
--series-1: #3987e5;
|
|
--seq-300: #5598e7;
|
|
--seq-500: #1c5cab;
|
|
--status-good: #0ca30c;
|
|
--status-warning: #fab219;
|
|
--status-critical: #d03b3b;
|
|
}
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--surface-1: #1a1a19;
|
|
--page-plane: #0d0d0d;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #c3c2b7;
|
|
--text-muted: #898781;
|
|
--gridline: #2c2c2a;
|
|
--baseline: #383835;
|
|
--border: rgba(255, 255, 255, 0.1);
|
|
--series-1: #3987e5;
|
|
--seq-300: #5598e7;
|
|
--seq-500: #1c5cab;
|
|
--status-good: #0ca30c;
|
|
--status-warning: #fab219;
|
|
--status-critical: #d03b3b;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--page-plane);
|
|
color: var(--text-primary);
|
|
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
.app {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 24px 20px 64px;
|
|
}
|
|
|
|
nav.tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
nav.tabs button {
|
|
background: none;
|
|
border: none;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
nav.tabs button.active {
|
|
color: var(--text-primary);
|
|
border-bottom-color: var(--series-1);
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.hero-figure {
|
|
font-size: 40px;
|
|
font-weight: 600;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.hero-sub {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.status-pill.good {
|
|
color: var(--status-good);
|
|
background: color-mix(in srgb, var(--status-good) 14%, transparent);
|
|
}
|
|
|
|
.status-pill.critical {
|
|
color: var(--status-critical);
|
|
background: color-mix(in srgb, var(--status-critical) 14%, transparent);
|
|
}
|
|
|
|
.device-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--gridline);
|
|
gap: 12px;
|
|
}
|
|
|
|
.device-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.device-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.device-meta {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.badge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.badge.shed {
|
|
color: var(--status-critical);
|
|
background: color-mix(in srgb, var(--status-critical) 14%, transparent);
|
|
}
|
|
|
|
.badge.active {
|
|
color: var(--status-good);
|
|
background: color-mix(in srgb, var(--status-good) 14%, transparent);
|
|
}
|
|
|
|
.badge.override {
|
|
color: var(--status-warning);
|
|
background: color-mix(in srgb, var(--status-warning) 20%, transparent);
|
|
}
|
|
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--surface-1);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
button.primary {
|
|
font: inherit;
|
|
font-weight: 600;
|
|
padding: 8px 14px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
background: var(--series-1);
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.secondary {
|
|
font: inherit;
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
th {
|
|
text-align: left;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--gridline);
|
|
}
|
|
|
|
td {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--gridline);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-grid label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|