From 4dd7fc16f3d2e56adec2e35a983cb986771a6b12 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 10 May 2026 23:19:32 -0400 Subject: [PATCH] CSS: migrate links.html static inline styles to classes - lt-divider--unifi / lt-divider-label--unifi: replace hardcoded margin and cyan label color on the UniFi switch section divider - lt-text-amber / lt-text-cyan on stat card icons and values (matches same migration done in index.html) - lt-stats-grid--mb: margin-bottom:16px on the summary stats grid - g-page-sub-aside: replaces margin-left:8px on the updated timestamp span in links and inspector page subtitle Co-Authored-By: Claude Sonnet 4.6 --- static/style.css | 8 +++++++- templates/inspector.html | 2 +- templates/links.html | 14 +++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/static/style.css b/static/style.css index ec83b7c..d9c0653 100644 --- a/static/style.css +++ b/static/style.css @@ -143,8 +143,13 @@ flex-shrink: 0; } -/* ── Divider compact variant ─────────────────────────────────────── */ +/* ── Divider variants ────────────────────────────────────────────── */ .lt-divider--compact { margin: 1rem 0 0.75rem; } +.lt-divider--unifi { margin: 20px 0 12px; } +.lt-divider-label--unifi { color: var(--cyan); letter-spacing: .1em; } + +/* ── Stats grid spacing variant ──────────────────────────────────── */ +.lt-stats-grid--mb { margin-bottom: 16px; } /* ── Topology section collapse toggle ────────────────────────────── */ .topo-collapse-btn { @@ -213,6 +218,7 @@ .events-filter-bar .lt-input-sm { width: 220px; } .sev-pills { display: flex; gap: 4px; } .g-page-sub { font-size: .78em; color: var(--text-muted); margin-top: 4px; } +.g-page-sub-aside { font-size: .78em; color: var(--text-muted); margin-left: 8px; } /* ── Badge severity color variants (used with lt-badge) ───────────── */ .badge-critical { color: var(--red); border-color: var(--red); text-shadow: var(--glow-red); } diff --git a/templates/inspector.html b/templates/inspector.html index 3fb8a13..9a2325c 100644 --- a/templates/inspector.html +++ b/templates/inspector.html @@ -8,7 +8,7 @@

Network Inspector

Visual switch chassis diagrams. Click a port to see detailed stats and LLDP path debug. - +

diff --git a/templates/links.html b/templates/links.html index 2d834e5..7bbf482 100644 --- a/templates/links.html +++ b/templates/links.html @@ -8,7 +8,7 @@

Link Debug

Per-interface stats: speed, duplex, SFP optical levels, TX/RX rates, errors, and carrier changes. - +

@@ -358,7 +358,7 @@ function renderUnifiSwitches(unifiSwitches, dataUpdated) { `; }).join(''); - return `
UNIFI SWITCH PORTS
${html}`; + return `
UNIFI SWITCH PORTS
${html}`; } // ── Panel collapse / expand ─────────────────────────────────────── @@ -412,18 +412,18 @@ function buildLinkSummary(hosts, unifiSwitches) { const downCardCls = allDown > 0 ? ' lt-stat-card--alert' : ''; const poeCard = totalPoe > 0 ? `
- +
- ${totalPoe.toFixed(1)} + ${totalPoe.toFixed(1)} PoE Load (W)
` : ''; return ` -
+
- +
- ${allTotal} + ${allTotal} Interfaces