v1.1
This commit is contained in:
615
raspi/static/css/mirror.css
Normal file → Executable file
615
raspi/static/css/mirror.css
Normal file → Executable file
@@ -1,385 +1,526 @@
|
||||
/* ═══════════════════════════════════════════════════════════════
|
||||
Smart Mirror — Dashboard Stylesheet
|
||||
Aesthetic: deep void black, razor-thin glass panels, cold white
|
||||
typography, neon frost accents. Designed to read on a mirror.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600&family=Share+Tech+Mono&display=swap');
|
||||
|
||||
/* ── Design tokens ─────────────────────────────────────────────── */
|
||||
/* ── Design Tokens ── */
|
||||
:root {
|
||||
--void: #000000;
|
||||
--glass: rgba(255,255,255,.032);
|
||||
--glass-edge: rgba(255,255,255,.07);
|
||||
--glass-hover: rgba(255,255,255,.055);
|
||||
--bg: #111318;
|
||||
--bg-card: #1c1f2b;
|
||||
--bg-card2: #21253a;
|
||||
--border: rgba(255,255,255,.07);
|
||||
--border-hover:rgba(255,255,255,.13);
|
||||
|
||||
--frost: #e8f4ff; /* primary text */
|
||||
--frost-dim: rgba(232,244,255,.35);
|
||||
--frost-ghost: rgba(232,244,255,.14);
|
||||
--txt: #e4e9f5;
|
||||
--txt-dim: rgba(228,233,245,.55);
|
||||
--txt-ghost: rgba(228,233,245,.28);
|
||||
|
||||
--ice: #a8d8f0; /* accent — cool blue */
|
||||
--ice-glow: rgba(168,216,240,.22);
|
||||
--blue: #3b82f6;
|
||||
--blue-glow: rgba(59,130,246,.25);
|
||||
--blue-soft: rgba(59,130,246,.12);
|
||||
|
||||
--danger: #ff6b6b;
|
||||
--danger-glow: rgba(255,107,107,.2);
|
||||
--warn: #ffd166;
|
||||
--warn-glow: rgba(255,209,102,.18);
|
||||
--ok: #6bffc4;
|
||||
--ok-glow: rgba(107,255,196,.18);
|
||||
--green: #22c55e;
|
||||
--green-soft: rgba(34,197,94,.12);
|
||||
--green-glow: rgba(34,197,94,.3);
|
||||
|
||||
--font-ui: 'Outfit', sans-serif;
|
||||
--font-mono: 'Share Tech Mono', monospace;
|
||||
--yellow: #f59e0b;
|
||||
--yellow-soft: rgba(245,158,11,.12);
|
||||
|
||||
--r: 8px; /* border-radius */
|
||||
--gap: 18px;
|
||||
--red: #ef4444;
|
||||
--red-soft: rgba(239,68,68,.12);
|
||||
--red-glow: rgba(239,68,68,.3);
|
||||
|
||||
--teal: #14b8a6;
|
||||
--teal-soft: rgba(20,184,166,.12);
|
||||
|
||||
--purple: #a78bfa;
|
||||
--purple-soft: rgba(167,139,250,.12);
|
||||
|
||||
--r: 12px;
|
||||
--r-sm: 8px;
|
||||
--gap: 14px;
|
||||
|
||||
--font: 'Inter', system-ui, sans-serif;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* ── Reset & base ──────────────────────────────────────────────── */
|
||||
/* ── Reset ── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html, body {
|
||||
width: 100%; min-height: 100vh;
|
||||
background: var(--void);
|
||||
color: var(--frost);
|
||||
font-family: var(--font-ui);
|
||||
font-weight: 300;
|
||||
overflow-x: hidden;
|
||||
background: var(--bg);
|
||||
color: var(--txt);
|
||||
font-family: var(--font);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* Subtle vignette to simulate mirror depth */
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed; inset: 0; pointer-events: none; z-index: 0;
|
||||
background: radial-gradient(ellipse 140% 100% at 50% 0%,
|
||||
transparent 40%,
|
||||
rgba(0,0,0,.55) 100%);
|
||||
}
|
||||
|
||||
/* Very faint horizontal scanlines — mirror CRT ghost */
|
||||
/* Subtle grid background */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed; inset: 0; pointer-events: none; z-index: 1;
|
||||
background: repeating-linear-gradient(
|
||||
0deg,
|
||||
transparent,
|
||||
transparent 3px,
|
||||
rgba(255,255,255,.008) 3px,
|
||||
rgba(255,255,255,.008) 4px
|
||||
);
|
||||
position: fixed; inset: 0; z-index: 0; pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(59,130,246,.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59,130,246,.025) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
}
|
||||
|
||||
/* ── Layout wrapper ────────────────────────────────────────────── */
|
||||
/* ── Layout ── */
|
||||
.mirror-layout {
|
||||
position: relative; z-index: 2;
|
||||
position: relative; z-index: 1;
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
min-height: 100vh;
|
||||
padding: var(--gap);
|
||||
gap: var(--gap);
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ── Glass panel primitive ─────────────────────────────────────── */
|
||||
.glass {
|
||||
background: var(--glass);
|
||||
border: 1px solid var(--glass-edge);
|
||||
/* ── Card primitive ── */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r);
|
||||
backdrop-filter: blur(2px);
|
||||
-webkit-backdrop-filter: blur(2px);
|
||||
transition: border-color .35s, background .35s;
|
||||
transition: border-color .25s, background .25s;
|
||||
}
|
||||
.glass:hover { background: var(--glass-hover); }
|
||||
.card:hover { border-color: var(--border-hover); }
|
||||
|
||||
/* ── Header bar ────────────────────────────────────────────────── */
|
||||
/* ── Header ── */
|
||||
.mirror-header {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.header-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 14px 22px;
|
||||
gap: 10px;
|
||||
}
|
||||
.brand-icon {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 8px;
|
||||
background: var(--blue-soft);
|
||||
border: 1px solid var(--blue);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px;
|
||||
}
|
||||
.brand-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .04em;
|
||||
color: var(--txt);
|
||||
}
|
||||
.brand-sub {
|
||||
font-size: 11px;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.mirror-title {
|
||||
font-size: .65rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: .35em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-dim);
|
||||
}
|
||||
|
||||
/* Clock widget — large, centred */
|
||||
.mirror-clock {
|
||||
text-align: center;
|
||||
flex: 1;
|
||||
}
|
||||
/* Clock — centred */
|
||||
.mirror-clock { text-align: center; }
|
||||
.clock-time {
|
||||
font-size: clamp(2.4rem, 6vw, 4.5rem);
|
||||
font-weight: 200;
|
||||
letter-spacing: .06em;
|
||||
color: var(--frost);
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(2rem, 5vw, 3.6rem);
|
||||
font-weight: 500;
|
||||
letter-spacing: .08em;
|
||||
color: var(--txt);
|
||||
line-height: 1;
|
||||
text-shadow: 0 0 40px rgba(232,244,255,.18);
|
||||
}
|
||||
.clock-date {
|
||||
font-size: .7rem;
|
||||
font-weight: 300;
|
||||
letter-spacing: .25em;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
letter-spacing: .18em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-dim);
|
||||
margin-top: 5px;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* Connection indicator */
|
||||
/* Connection badge */
|
||||
.conn-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: .68rem;
|
||||
color: var(--frost-ghost);
|
||||
transition: color .4s;
|
||||
gap: 8px;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--r-sm);
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
color: var(--txt-ghost);
|
||||
transition: all .3s;
|
||||
}
|
||||
.conn-badge.ok {
|
||||
background: var(--green-soft);
|
||||
border-color: rgba(34,197,94,.25);
|
||||
color: var(--green);
|
||||
}
|
||||
.conn-badge.err {
|
||||
background: var(--red-soft);
|
||||
border-color: rgba(239,68,68,.25);
|
||||
color: var(--red);
|
||||
}
|
||||
.conn-badge.ok { color: var(--ok); }
|
||||
.conn-badge.err { color: var(--danger); }
|
||||
|
||||
.conn-dot {
|
||||
width: 7px; height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--frost-ghost);
|
||||
transition: background .4s, box-shadow .4s;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
transition: box-shadow .3s;
|
||||
}
|
||||
.conn-badge.ok .conn-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
|
||||
.conn-badge.err .conn-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
|
||||
.conn-badge.ok .conn-dot { box-shadow: 0 0 6px var(--green); animation: pulse-green 2s infinite; }
|
||||
.conn-badge.err .conn-dot { box-shadow: 0 0 6px var(--red); }
|
||||
|
||||
/* ── Main content grid ─────────────────────────────────────────── */
|
||||
@keyframes pulse-green {
|
||||
0%,100% { opacity: 1; }
|
||||
50% { opacity: .5; }
|
||||
}
|
||||
|
||||
/* ── Body grid ── */
|
||||
.mirror-body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-template-rows: auto auto auto;
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
/* ── Sensor tiles ──────────────────────────────────────────────── */
|
||||
/* ── Sensor tiles ── */
|
||||
.sensor-tile {
|
||||
padding: 20px 22px 18px;
|
||||
padding: 18px 18px 14px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor: default;
|
||||
transition: transform .2s, box-shadow .2s, border-color .25s;
|
||||
}
|
||||
.sensor-tile::before {
|
||||
content: '';
|
||||
position: absolute; top: 0; left: 0; right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--ice), transparent);
|
||||
opacity: .25;
|
||||
transition: opacity .4s;
|
||||
.sensor-tile:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.35);
|
||||
}
|
||||
.sensor-tile.breach-high::before { background: linear-gradient(90deg,transparent,var(--danger),transparent); opacity:.7; }
|
||||
.sensor-tile.breach-low::before { background: linear-gradient(90deg,transparent,var(--warn), transparent); opacity:.7; }
|
||||
|
||||
.sensor-tile.breach-high { border-color: rgba(255,107,107,.25); }
|
||||
.sensor-tile.breach-low { border-color: rgba(255,209,102,.22); }
|
||||
/* Coloured left stripe */
|
||||
.sensor-tile::after {
|
||||
content: '';
|
||||
position: absolute; top: 0; left: 0; bottom: 0;
|
||||
width: 3px;
|
||||
border-radius: var(--r) 0 0 var(--r);
|
||||
background: var(--blue);
|
||||
transition: background .3s;
|
||||
}
|
||||
.sensor-tile.breach-high::after { background: var(--red); }
|
||||
.sensor-tile.breach-low::after { background: var(--yellow); }
|
||||
|
||||
.sensor-tile-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.sensor-icon {
|
||||
width: 30px; height: 30px;
|
||||
border-radius: 7px;
|
||||
background: var(--blue-soft);
|
||||
border: 1px solid rgba(59,130,246,.2);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 14px;
|
||||
transition: background .3s, border-color .3s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-icon {
|
||||
background: var(--red-soft);
|
||||
border-color: rgba(239,68,68,.3);
|
||||
}
|
||||
.sensor-tile.breach-low .sensor-icon {
|
||||
background: var(--yellow-soft);
|
||||
border-color: rgba(245,158,11,.3);
|
||||
}
|
||||
|
||||
.sensor-state-dot {
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--blue);
|
||||
opacity: .5;
|
||||
transition: background .3s, opacity .3s, box-shadow .3s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-state-dot {
|
||||
background: var(--red); opacity: 1;
|
||||
box-shadow: 0 0 6px var(--red);
|
||||
animation: blink .8s infinite;
|
||||
}
|
||||
.sensor-tile.breach-low .sensor-state-dot {
|
||||
background: var(--yellow); opacity: 1;
|
||||
box-shadow: 0 0 6px var(--yellow);
|
||||
animation: blink .8s infinite;
|
||||
}
|
||||
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
|
||||
|
||||
.sensor-label {
|
||||
font-size: .58rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: .22em;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-ghost);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.sensor-value {
|
||||
font-family: var(--font-mono);
|
||||
font-size: clamp(1.6rem, 3vw, 2.6rem);
|
||||
font-weight: 400;
|
||||
color: var(--frost);
|
||||
line-height: 1;
|
||||
transition: color .4s, text-shadow .4s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-value {
|
||||
color: var(--danger);
|
||||
text-shadow: 0 0 20px var(--danger-glow);
|
||||
}
|
||||
.sensor-tile.breach-low .sensor-value {
|
||||
color: var(--warn);
|
||||
text-shadow: 0 0 20px var(--warn-glow);
|
||||
}
|
||||
.sensor-threshold {
|
||||
font-family: var(--font-mono);
|
||||
font-size: .6rem;
|
||||
color: var(--frost-ghost);
|
||||
margin-top: 8px;
|
||||
}
|
||||
.sensor-alert-badge {
|
||||
display: inline-block;
|
||||
margin-top: 8px;
|
||||
font-size: .52rem;
|
||||
letter-spacing: .12em;
|
||||
text-transform: uppercase;
|
||||
padding: 2px 8px;
|
||||
border-radius: 3px;
|
||||
background: rgba(255,107,107,.12);
|
||||
color: var(--danger);
|
||||
border: 1px solid rgba(255,107,107,.2);
|
||||
}
|
||||
.sensor-alert-badge.low {
|
||||
background: rgba(255,209,102,.1);
|
||||
color: var(--warn);
|
||||
border-color: rgba(255,209,102,.2);
|
||||
color: var(--txt-ghost);
|
||||
}
|
||||
|
||||
/* ── Stat row (small cards) ────────────────────────────────────── */
|
||||
.sensor-value {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(1.5rem, 2.5vw, 2.1rem);
|
||||
font-weight: 500;
|
||||
color: var(--txt);
|
||||
line-height: 1;
|
||||
transition: color .3s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-value { color: var(--red); }
|
||||
.sensor-tile.breach-low .sensor-value { color: var(--yellow); }
|
||||
|
||||
.sensor-meta {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.sensor-threshold {
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
}
|
||||
.sensor-alert-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .05em;
|
||||
text-transform: uppercase;
|
||||
padding: 2px 7px;
|
||||
border-radius: 4px;
|
||||
background: var(--red-soft);
|
||||
color: var(--red);
|
||||
border: 1px solid rgba(239,68,68,.25);
|
||||
}
|
||||
.sensor-alert-badge.low {
|
||||
background: var(--yellow-soft);
|
||||
color: var(--yellow);
|
||||
border-color: rgba(245,158,11,.25);
|
||||
}
|
||||
|
||||
/* ── Stat row ── */
|
||||
.stat-row {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: 16px 18px;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.stat-card-icon {
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 9px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.stat-card-icon.blue { background: var(--blue-soft); }
|
||||
.stat-card-icon.green { background: var(--green-soft); }
|
||||
.stat-card-icon.red { background: var(--red-soft); }
|
||||
.stat-card-icon.teal { background: var(--teal-soft); }
|
||||
.stat-card-icon.purple { background: var(--purple-soft); }
|
||||
|
||||
.stat-info { min-width: 0; }
|
||||
.stat-label {
|
||||
font-size: .55rem;
|
||||
letter-spacing: .22em;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-ghost);
|
||||
margin-bottom: 8px;
|
||||
color: var(--txt-ghost);
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.stat-value {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.55rem;
|
||||
color: var(--frost);
|
||||
line-height: 1;
|
||||
font-family: var(--mono);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 500;
|
||||
color: var(--txt);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.stat-value.red { color: var(--danger); }
|
||||
.stat-value.red { color: var(--red); }
|
||||
.stat-sub {
|
||||
font-size: .58rem;
|
||||
color: var(--frost-ghost);
|
||||
margin-top: 5px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 2px;
|
||||
font-family: var(--mono);
|
||||
}
|
||||
|
||||
/* ── Chart panel ───────────────────────────────────────────────── */
|
||||
/* ── Chart panel ── */
|
||||
.chart-panel {
|
||||
grid-column: 1 / 3;
|
||||
padding: 18px 20px;
|
||||
padding: 16px 18px 14px;
|
||||
}
|
||||
.panel-label {
|
||||
font-size: .56rem;
|
||||
letter-spacing: .22em;
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.panel-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-ghost);
|
||||
margin-bottom: 12px;
|
||||
color: var(--txt-dim);
|
||||
}
|
||||
.panel-badge {
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
background: rgba(255,255,255,.04);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 2px 7px;
|
||||
}
|
||||
#chart { display: block; width: 100%; }
|
||||
|
||||
/* ── Log / Alert panel ─────────────────────────────────────────── */
|
||||
/* ── Log panel ── */
|
||||
.log-panel {
|
||||
grid-column: 3 / 4;
|
||||
grid-column: 3 / -1;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--glass-edge);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
padding: 0 6px;
|
||||
gap: 2px;
|
||||
}
|
||||
.tab {
|
||||
flex: 1;
|
||||
padding: 11px 14px;
|
||||
font-size: .56rem;
|
||||
letter-spacing: .2em;
|
||||
padding: 10px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-ghost);
|
||||
color: var(--txt-ghost);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: color .2s, background .2s;
|
||||
transition: color .2s;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -1px;
|
||||
position: relative;
|
||||
}
|
||||
.tab:hover { color: var(--frost-dim); }
|
||||
.tab.active { color: var(--ice); border-bottom-color: var(--ice); }
|
||||
.tab:hover { color: var(--txt-dim); }
|
||||
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
|
||||
|
||||
.tab-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px 14px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: .62rem;
|
||||
padding: 8px 12px;
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
}
|
||||
.tab-body::-webkit-scrollbar { width: 3px; }
|
||||
.tab-body::-webkit-scrollbar-thumb { background: var(--glass-edge); border-radius: 2px; }
|
||||
.tab-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
.tab-pane { display: none; }
|
||||
.tab-pane.active { display: block; }
|
||||
|
||||
.log-entry {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 4px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,.04);
|
||||
animation: slideIn .2s ease;
|
||||
}
|
||||
@keyframes slideIn {
|
||||
from { opacity: 0; transform: translateY(-4px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
.log-ts { color: var(--frost-ghost); flex-shrink: 0; }
|
||||
.log-raw { color: var(--frost-dim); flex: 1; word-break: break-all; }
|
||||
.log-num { color: var(--ice); flex-shrink: 0; }
|
||||
|
||||
.alert-entry {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: 68px 1fr auto;
|
||||
gap: 8px;
|
||||
padding: 5px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,.04);
|
||||
align-items: flex-start;
|
||||
animation: slideIn .2s ease;
|
||||
animation: fadeSlide .15s ease;
|
||||
align-items: center;
|
||||
}
|
||||
.alert-icon { color: var(--danger); flex-shrink: 0; }
|
||||
.alert-ts { color: var(--frost-ghost); flex-shrink: 0; }
|
||||
.alert-msg { color: var(--frost-dim); flex: 1; }
|
||||
@keyframes fadeSlide {
|
||||
from { opacity: 0; transform: translateY(-3px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
.log-ts { color: var(--txt-ghost); font-size: 10px; }
|
||||
.log-raw { color: var(--txt-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.log-num { color: var(--blue); text-align: right; white-space: nowrap; }
|
||||
|
||||
.alert-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 16px 68px 1fr;
|
||||
gap: 8px;
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,.04);
|
||||
align-items: center;
|
||||
animation: fadeSlide .15s ease;
|
||||
}
|
||||
.alert-icon { color: var(--red); font-size: 12px; }
|
||||
.alert-ts { color: var(--txt-ghost); font-size: 10px; }
|
||||
.alert-msg { color: var(--txt-dim); }
|
||||
|
||||
.alert-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 14px; height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--danger);
|
||||
color: #000;
|
||||
font-size: .5rem;
|
||||
min-width: 16px; height: 16px;
|
||||
border-radius: 8px;
|
||||
background: var(--red);
|
||||
color: #fff;
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
margin-left: 5px;
|
||||
vertical-align: middle;
|
||||
padding: 0 3px;
|
||||
display: none;
|
||||
}
|
||||
.alert-badge.visible { display: inline-flex; }
|
||||
|
||||
/* ── Footer ────────────────────────────────────────────────────── */
|
||||
/* ── Rain tile — special ── */
|
||||
.rain-tile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.rain-bar-wrap {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: rgba(255,255,255,.06);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.rain-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--blue), var(--teal));
|
||||
border-radius: 3px;
|
||||
transition: width .5s ease;
|
||||
}
|
||||
|
||||
/* ── Footer ── */
|
||||
.mirror-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 22px;
|
||||
font-size: .55rem;
|
||||
letter-spacing: .18em;
|
||||
text-transform: uppercase;
|
||||
color: var(--frost-ghost);
|
||||
padding: 10px 20px;
|
||||
font-size: 11px;
|
||||
font-family: var(--mono);
|
||||
color: var(--txt-ghost);
|
||||
}
|
||||
|
||||
/* ── Responsive ────────────────────────────────────────────────── */
|
||||
@media (max-width: 900px) {
|
||||
.mirror-body {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 1100px) {
|
||||
.mirror-body { grid-template-columns: 1fr 1fr; }
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
.chart-panel { grid-column: 1 / -1; }
|
||||
.log-panel { grid-column: 1 / -1; min-height: 220px; }
|
||||
.log-panel { grid-column: 1 / -1; min-height: 200px; }
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.mirror-body { grid-template-columns: 1fr; }
|
||||
@media (max-width: 640px) {
|
||||
.mirror-body { grid-template-columns: 1fr 1fr; }
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
.clock-time { font-size: 2.2rem; }
|
||||
.mirror-header { grid-template-columns: 1fr; }
|
||||
.header-brand, .conn-badge { display: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user