From 76c7823583fa2479ef96dd97f91e17a648c74579 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Mon, 15 Dec 2025 17:13:05 +0000 Subject: [PATCH] fix: improve unknown status indicator --- www/index.html | 29 +++++++++++++++++++---------- www/themes/color-dark.css | 4 ++-- www/themes/color.css | 4 ++-- www/themes/ctp-frappe.css | 4 ++-- www/themes/ctp-latte.css | 4 ++-- www/themes/ctp-macchiato.css | 4 ++-- www/themes/ctp-mocha.css | 4 ++-- www/themes/monochrome.css | 15 ++++++++------- 8 files changed, 39 insertions(+), 29 deletions(-) diff --git a/www/index.html b/www/index.html index 9621402..6b88f81 100644 --- a/www/index.html +++ b/www/index.html @@ -163,7 +163,7 @@ } .status-bar { - background-color: black; + background-color: transparent; border: 1px solid black; width: calc(100% - 0.188rem); height: 100%; @@ -200,22 +200,31 @@ z-index: 10; } + .status-bar.Online { + background-color: black; + } + .status-bar.Unknown { - background-color: transparent; - background: radial-gradient(circle at center, rgb(235, 235, 235) 3px, transparent 3px); border: 0; } + .status-bar.Unknown::before { + content: ""; + width: 6px; + height: 6px; + border-radius: 100%; + background: rgb(235, 235, 235); + position: absolute; + inset: 0; + margin: auto; + } + .status-bar.Degraded { background-color: white; background-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 50%, black 50%, black 75%, transparent 75%, transparent); background-size: 8px 8px; } - .status-bar.Offline { - background-color: white; - } - .status-bar.Offline::before { content: "✕"; position: absolute; @@ -449,8 +458,8 @@