diff --git a/hbd/server/templates/about.html b/hbd/server/templates/about.html index 94c8290..19c6c39 100644 --- a/hbd/server/templates/about.html +++ b/hbd/server/templates/about.html @@ -100,6 +100,19 @@ } .logo-text { flex: 1; } + + /* ── Dark mode ── */ + html[data-theme="dark"] h1 { color: var(--text); } + html[data-theme="dark"] .subtitle { color: var(--text-sec); } + html[data-theme="dark"] .section { background: var(--surface); box-shadow: 0 1px 6px var(--shadow); } + html[data-theme="dark"] .section h2 { color: var(--text); border-bottom-color: var(--border); } + html[data-theme="dark"] .info-row { border-bottom-color: var(--border-4); } + html[data-theme="dark"] .info-label { color: var(--text-sec); } + html[data-theme="dark"] .info-value { color: var(--text); } + html[data-theme="dark"] .info-value a { color: var(--link); } + html[data-theme="dark"] .hb-logo { color: var(--link); } + html[data-theme="dark"] .hb-tagline { color: var(--text-sec); } + html[data-theme="dark"] .version-badge { background: #1a3255; color: #60a5fa; } diff --git a/hbd/server/templates/alerts.html b/hbd/server/templates/alerts.html index efb28e6..6e9811a 100644 --- a/hbd/server/templates/alerts.html +++ b/hbd/server/templates/alerts.html @@ -305,6 +305,31 @@ text-align: right; margin-bottom: 15px; } + + /* ── Dark mode ── */ + html[data-theme="dark"] h1 { color: var(--text); } + html[data-theme="dark"] .subtitle { color: var(--text-sec); } + html[data-theme="dark"] .summary-card { background: var(--surface); } + html[data-theme="dark"] .summary-label { color: var(--text-sec); } + html[data-theme="dark"] .filters { background: var(--surface); } + html[data-theme="dark"] .filter-label { color: var(--text-sec); } + html[data-theme="dark"] .filter-button { background: var(--surface-2); border-color: var(--border); color: var(--text); } + html[data-theme="dark"] .filter-button.active { background: #2196f3; color: #fff; border-color: #2196f3; } + html[data-theme="dark"] .filter-input { background: var(--input-bg); border-color: var(--input-border); color: var(--text); } + html[data-theme="dark"] .alerts-container { background: var(--surface); } + html[data-theme="dark"] .alert-item { background: var(--surface-2); } + html[data-theme="dark"] .alert-item.acknowledged { background: var(--surface-3); } + html[data-theme="dark"] .alert-item.critical { background: #2e0a0a; border-left-color: #f44336; } + html[data-theme="dark"] .alert-item.warning { background: #2e1a00; border-left-color: #ff9800; } + html[data-theme="dark"] .alert-item.unknown { background: var(--surface-2); } + html[data-theme="dark"] .alert-hostname { color: var(--link); } + html[data-theme="dark"] .alert-details { color: var(--text-sec); } + html[data-theme="dark"] .alert-value { color: var(--text); } + html[data-theme="dark"] .alert-duration { color: var(--text-muted); } + html[data-theme="dark"] .last-update { color: var(--text-sec); } + html[data-theme="dark"] .refresh-info { color: var(--text-muted); border-top-color: var(--border); } + html[data-theme="dark"] .no-alerts, + html[data-theme="dark"] .loading { color: var(--text-muted); } diff --git a/hbd/server/templates/head.html b/hbd/server/templates/head.html index 517fc17..8e7c27d 100644 --- a/hbd/server/templates/head.html +++ b/hbd/server/templates/head.html @@ -5,7 +5,68 @@ {{ title }} {% if extra_scripts %}{% endif %} +