Local is a square probe-by-probe matrix with a self diagonal. Internet holds the gateway, LAN and public DNS, web checks and the VPS per probe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
110 lines
7.6 KiB
CSS
110 lines
7.6 KiB
CSS
/* Network monitor: project rules on top of house.css. Chart colors come from the dataviz
|
|
reference palette (status steps + categorical slots 1-2), stepped for each theme. */
|
|
|
|
:root {
|
|
--viz-ok: #0ca30c;
|
|
--viz-warn: #fab219;
|
|
--viz-down: #d03b3b;
|
|
--viz-none: var(--surface-2);
|
|
--viz-1: #2a78d6;
|
|
--viz-2: #eb6834;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme='light']) { --viz-1: #3987e5; --viz-2: #d95926; }
|
|
}
|
|
:root[data-theme='dark'] { --viz-1: #3987e5; --viz-2: #d95926; }
|
|
|
|
/* ---------- layout bits ---------- */
|
|
.pane.fill { flex: 1; }
|
|
.content { max-width: 1280px; padding: var(--space-4) var(--space-5) var(--space-10); }
|
|
.content > .section-head:first-child, .content > .section-title:first-child { margin-top: 0; }
|
|
.section-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-6) 0 var(--space-2); }
|
|
.section-head .section-title { margin: 0; }
|
|
.section-head .hint { font-size: var(--text-xs); color: var(--fg-muted); }
|
|
.lede { margin: 0 0 var(--space-3); color: var(--fg-muted); }
|
|
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-5); }
|
|
.cols > * { min-width: 0; }
|
|
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--space-4); margin: 0; font-size: var(--text-sm); }
|
|
.kv dt { color: var(--fg-muted); }
|
|
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
|
|
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-2) 0 var(--space-4); }
|
|
.fact { display: grid; gap: 2px; }
|
|
.fact .label { font-size: var(--text-2xs); }
|
|
.fact strong { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
|
|
.title-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
|
|
.title-row h2 { margin: 0; font-size: var(--text-xl); overflow-wrap: anywhere; }
|
|
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); max-width: 760px; }
|
|
.form-grid .wide { grid-column: 1 / -1; }
|
|
.cmd { display: flex; gap: var(--space-2); align-items: stretch; }
|
|
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--code-bg); font: var(--text-sm)/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
|
|
.select-all { user-select: all; -webkit-user-select: all; cursor: text; }
|
|
.more { display: flex; justify-content: center; padding: var(--space-3); }
|
|
.toolbar .input { width: 220px; height: var(--control-h); padding: 0 10px; }
|
|
.table a { color: inherit; text-decoration: none; }
|
|
.table a:hover { color: var(--accent-text); text-decoration: underline; }
|
|
.table td.mono, .table .mono { font-size: var(--text-xs); }
|
|
.table .domain { overflow-wrap: anywhere; }
|
|
.table tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
|
|
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
|
|
.callout { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-sm); }
|
|
.callout.error { border-color: var(--danger); background: var(--danger-soft); }
|
|
.stale { opacity: 0.55; transition: opacity var(--dur-base); }
|
|
|
|
/* ---------- mesh matrix ---------- */
|
|
.matrix th.row-head { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
|
|
.matrix td { padding: 4px; vertical-align: middle; }
|
|
.cell { display: grid; gap: 1px; min-width: 92px; padding: 5px 8px; border-radius: var(--radius-control); background: var(--surface-2); color: var(--fg); text-decoration: none; font-size: var(--text-xs); border-left: 4px solid var(--viz-none); }
|
|
.cell strong { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
|
|
.cell.s-ok { border-left-color: var(--viz-ok); }
|
|
.cell.s-degraded { border-left-color: var(--viz-warn); }
|
|
.cell.s-down { border-left-color: var(--viz-down); background: var(--danger-soft); }
|
|
.cell .muted { font-variant-numeric: tabular-nums; }
|
|
.cell-empty { color: var(--fg-subtle); text-align: center; font-size: var(--text-xs); }
|
|
|
|
/* ---------- status strips ---------- */
|
|
.strips { display: grid; gap: 6px; }
|
|
.strip-row { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 64px; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
|
|
.strip-row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.strip-row .uptime { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg-muted); font-size: var(--text-xs); }
|
|
.strip-group + .strip-group { margin-top: var(--space-4); }
|
|
.strip-group h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 6px; font-size: var(--text-sm); }
|
|
.strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; height: 22px; cursor: crosshair; }
|
|
.strip span { border-radius: 2px; background: var(--viz-none); }
|
|
.strip .s-ok, .viz-swatch.s-ok { background: var(--viz-ok); }
|
|
.strip .s-degraded, .viz-swatch.s-degraded { background: var(--viz-warn); }
|
|
.strip .s-down, .viz-swatch.s-down { background: var(--viz-down); }
|
|
.strip .s-nodata, .viz-swatch.s-nodata { background: var(--viz-none); box-shadow: inset 0 0 0 1px var(--border); }
|
|
.strip-axis { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 64px; gap: var(--space-3); font-size: var(--text-2xs); color: var(--fg-muted); }
|
|
.strip-axis span:nth-child(2) { display: flex; justify-content: space-between; }
|
|
|
|
/* ---------- charts ---------- */
|
|
.chart { position: relative; width: 100%; }
|
|
.viz { display: block; overflow: visible; }
|
|
.viz-grid { stroke: var(--border); stroke-width: 1; }
|
|
.viz-axis { stroke: var(--border-strong); stroke-width: 1; }
|
|
.viz-tick { fill: var(--fg-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
.viz-label { fill: var(--fg-muted); font-size: 11px; }
|
|
.viz-cross { stroke: var(--fg-subtle); stroke-width: 1; }
|
|
.viz-fail { fill: var(--viz-down); }
|
|
.viz-hit:hover { fill: var(--surface-2); fill-opacity: 0.5; }
|
|
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); }
|
|
.multiple { min-width: 0; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
|
|
.multiple h4 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 4px; font-size: var(--text-sm); }
|
|
.viz-legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--text-xs); color: var(--fg-muted); }
|
|
.viz-legend-item { display: inline-flex; align-items: center; gap: 6px; }
|
|
.viz-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
|
|
.viz-linekey { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
|
|
.viz-tip { position: fixed; z-index: var(--z-toast); pointer-events: none; min-width: 140px; max-width: 320px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-popover); font-size: var(--text-xs); }
|
|
.viz-tip-title { margin-bottom: 4px; color: var(--fg-muted); }
|
|
.viz-tip-row { display: flex; align-items: center; gap: 6px; }
|
|
.viz-tip-row strong { font-variant-numeric: tabular-nums; }
|
|
|
|
@media (max-width: 800px) {
|
|
.content { padding: var(--space-3) var(--space-3) var(--space-10); }
|
|
.strip { gap: 1px; }
|
|
.strip-row, .strip-axis { grid-template-columns: minmax(0, 1fr) 52px; }
|
|
.strip-row .name { grid-column: 1 / -1; }
|
|
.strip-row .strip { grid-column: 1; }
|
|
.strip-axis { display: none; }
|
|
.toolbar .input { width: 160px; }
|
|
}
|