Refine dark theme readability and chart visibility across dashboard pages

This commit is contained in:
Nate Emmert committed 2026-03-10 14:54:40 -04:00
1 parent b9da742b3d
commit 0475bf5aa5
20 files changed
+929 -320

No files matched your search

+191 -56
View File
@@ -1,18 +1,18 @@
.App {
min-height: 100vh;
background:
radial-gradient(circle at 15% 0%, #dff7f2 0%, transparent 40%),
radial-gradient(circle at 95% 10%, #e8eefc 0%, transparent 38%),
#f8fafc;
radial-gradient(circle at 15% 0%, rgba(30, 64, 175, 0.2) 0%, transparent 42%),
radial-gradient(circle at 95% 10%, rgba(15, 118, 110, 0.14) 0%, transparent 36%),
#020617;
}
.navbar {
background: rgba(255, 255, 255, 0.85);
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
padding: 0.85rem 2rem;
color: #0f172a;
border-bottom: 1px solid #dbe2ea;
color: #e2e8f0;
border-bottom: 1px solid #334155;
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
position: sticky;
top: 0;
@@ -48,7 +48,7 @@
}
.nav-link {
color: #475569;
color: #cbd5e1;
text-decoration: none;
font-weight: 600;
font-size: 0.92rem;
@@ -58,9 +58,9 @@
}
.nav-link:hover {
background: #ffffff;
color: #0f172a;
box-shadow: inset 0 0 0 1px #dbe2ea;
background: #111827;
color: #f8fafc;
box-shadow: inset 0 0 0 1px #334155;
}
.settings-link {
@@ -83,9 +83,9 @@
align-items: center;
gap: 0.45rem;
font-size: 0.82rem;
color: #334155;
background: #ffffff;
border: 1px solid #dbe2ea;
color: #e2e8f0;
background: #111827;
border: 1px solid #334155;
border-radius: 999px;
padding: 0.3rem 0.7rem;
}
@@ -108,11 +108,12 @@
margin: 0;
font-size: 1.85rem;
letter-spacing: -0.02em;
color: #f8fafc;
}
.dashboard-subtitle {
margin: 0.2rem 0 0;
color: #64748b;
color: #94a3b8;
font-size: 0.9rem;
}
@@ -123,12 +124,42 @@
align-items: center;
}
.quick-filter-row {
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
margin: 0.2rem 0 0.8rem;
}
.quick-chip {
background: #0f172a;
border: 1px solid #334155;
color: #cbd5e1;
border-radius: 999px;
padding: 0.28rem 0.7rem;
font-size: 0.74rem;
font-weight: 700;
letter-spacing: 0.02em;
cursor: pointer;
}
.quick-chip:hover {
background: #111f34;
}
.quick-chip.active {
background: #14b8a6;
border-color: #14b8a6;
color: #052e2b;
}
.tag-filter-input {
padding: 0.5rem 0.75rem;
border-radius: 10px;
border: 1px solid #cbd5e1;
border: 1px solid #334155;
min-width: 180px;
background: rgba(255, 255, 255, 0.9);
background: #111827;
color: #e2e8f0;
}
.actions-menu-wrapper {
@@ -322,10 +353,12 @@
}
.resource-list-shell {
background: rgba(255, 255, 255, 0.82);
border: 1px solid #cbd5e1;
background: rgba(15, 23, 42, 0.9);
border: 1px solid #334155;
border-radius: 12px;
padding: 0.65rem;
max-height: calc(100vh - 250px);
overflow: auto;
}
.resource-list-header {
@@ -336,15 +369,24 @@
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #64748b;
border-bottom: 1px solid #e2e8f0;
color: #94a3b8;
border-bottom: 1px solid #334155;
margin-bottom: 0.45rem;
position: sticky;
top: 0;
z-index: 5;
background: rgba(15, 23, 42, 0.98);
}
.resource-list-count {
font-size: 0.75rem;
color: #64748b;
color: #94a3b8;
margin: 0 0.6rem 0.55rem;
position: sticky;
top: 31px;
z-index: 4;
background: rgba(15, 23, 42, 0.95);
padding-bottom: 0.25rem;
}
.resource-row {
@@ -353,18 +395,18 @@
align-items: center;
gap: 1rem;
padding: 0.65rem 0.8rem;
background: rgba(248, 250, 252, 0.96);
border: 1px solid #dbe2ea;
background: rgba(15, 23, 42, 0.96);
border: 1px solid #334155;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
box-shadow: 0 4px 12px rgba(2, 6, 23, 0.55);
cursor: pointer;
transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.resource-row:hover {
transform: translateY(-1px);
border-color: #94a3b8;
box-shadow: 0 9px 18px rgba(15, 23, 42, 0.1);
border-color: #60a5fa;
box-shadow: 0 12px 22px rgba(2, 6, 23, 0.65);
}
.row-main {
@@ -382,13 +424,14 @@
.row-name {
margin: 0;
font-size: 0.98rem;
color: #f8fafc;
}
.resource-group-pill {
padding: 0.15rem 0.5rem;
border-radius: 999px;
background: #e2e8f0;
color: #334155;
background: #1e293b;
color: #cbd5e1;
font-size: 0.72rem;
font-weight: 700;
}
@@ -414,6 +457,7 @@
.row-url,
.row-type {
margin: 0;
color: #94a3b8;
}
.row-url {
@@ -436,6 +480,12 @@
.row-metrics .stat-label {
font-size: 0.64rem;
color: #94a3b8;
}
.row-metrics .stat-value {
color: #e2e8f0;
font-weight: 700;
}
.row-sparkline {
@@ -488,11 +538,40 @@
margin: 0 0 0.2rem 0;
}
.trend-chip {
display: inline-block;
margin-left: 0.3rem;
font-size: 0.72rem;
font-weight: 800;
}
.trend-better {
color: #34d399;
}
.trend-worse {
color: #f87171;
}
.trend-flat {
color: #94a3b8;
}
.resource-url {
color: #64748b;
font-size: 0.8rem;
word-break: break-all;
}
.load-more-btn {
width: 100%;
border: 1px dashed #94a3b8;
background: #f8fafc;
color: #334155;
border-radius: 10px;
padding: 0.65rem;
font-weight: 700;
cursor: pointer;
}
.load-more-btn:hover {
background: #f1f5f9;
}
.resource-type {
margin: 0.15rem 0 0;
@@ -537,7 +616,7 @@
.stat-value {
font-size: 1.2rem;
font-weight: 700;
color: #333;
color: #e2e8f0;
margin: 0;
}
@@ -547,7 +626,7 @@
.stat-label {
font-size: 0.75rem;
color: #666;
color: #94a3b8;
text-transform: uppercase;
margin: 0;
}
@@ -567,7 +646,7 @@
.last-check {
margin: 0;
font-size: 0.75rem;
color: #999;
color: #94a3b8;
}
.group-section {
@@ -671,17 +750,48 @@
}
.btn-icon {
background: none;
border: none;
background: #0b1325;
border: 1px solid #334155;
color: #e2e8f0;
min-width: 34px;
min-height: 30px;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
padding: 0.25rem 0.5rem;
opacity: 0.6;
transition: opacity 0.2s;
opacity: 1;
transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn-icon:hover {
opacity: 1;
transform: translateY(-1px);
background: #111f34;
border-color: #60a5fa;
}
.btn-icon:focus-visible {
outline: 2px solid #60a5fa;
outline-offset: 2px;
}
.btn-icon.action-edit {
color: #93c5fd;
}
.btn-icon.action-maint {
color: #fbbf24;
}
.btn-icon.action-delete {
color: #fca5a5;
border-color: #7f1d1d;
background: #3f1d1d;
}
.btn-icon.action-delete:hover {
background: #7f1d1d;
border-color: #ef4444;
color: #fee2e2;
}
.btn-sm {
@@ -813,17 +923,18 @@
}
.detail-section {
background: rgba(255, 255, 255, 0.92);
border: 1px solid #e2e8f0;
background: rgba(15, 23, 42, 0.94);
border: 1px solid #334155;
border-radius: 14px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
color: #e2e8f0;
}
.detail-section h2 {
margin-top: 0;
color: #333;
color: #f8fafc;
}
.detail-header-row {
@@ -841,7 +952,7 @@
}
.resource-url-detail {
color: #64748b;
color: #94a3b8;
margin: 0;
}
@@ -875,7 +986,15 @@
.filter-control label {
font-size: 0.9rem;
color: #475569;
color: #cbd5e1;
}
.filter-control select {
background: #111827;
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 6px;
padding: 0.3rem 0.5rem;
}
.controls-pagination {
@@ -896,9 +1015,9 @@
.data-table th {
padding: 0.75rem;
text-align: left;
border-bottom: 2px solid #dbe2ea;
color: #1e293b;
background: #f1f5f9;
border-bottom: 2px solid #334155;
color: #e2e8f0;
background: #111827;
font-size: 0.86rem;
text-transform: uppercase;
letter-spacing: 0.02em;
@@ -906,11 +1025,12 @@
.data-table td {
padding: 0.75rem;
border-bottom: 1px solid #e5e7eb;
border-bottom: 1px solid #1f2937;
color: #e2e8f0;
}
.data-table tbody tr:hover {
background: #f0f9ff;
background: #1e293b;
}
.text-right {
@@ -918,7 +1038,7 @@
}
.muted-cell {
color: #64748b;
color: #94a3b8;
}
.w-25 {
@@ -942,14 +1062,14 @@
.incident-reason-toggle {
cursor: pointer;
color: #0f766e;
color: #93c5fd;
flex: 1;
}
.expand-indicator {
margin-left: 0.5rem;
font-size: 0.85rem;
color: #64748b;
color: #94a3b8;
}
.btn-compact {
@@ -958,7 +1078,7 @@
}
.expanded-row {
background: #f8fafc;
background: #0b1325;
}
.expanded-cell {
@@ -966,7 +1086,7 @@
word-break: break-word;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: 0.9rem;
color: #334155;
color: #e2e8f0;
}
.section-title-row {
@@ -978,7 +1098,7 @@
}
.empty-copy {
color: #64748b;
color: #94a3b8;
text-align: center;
padding: 2rem;
}
@@ -986,6 +1106,10 @@
.chart-container {
margin-top: 1rem;
height: 300px;
background: #0b1325;
border: 1px solid #334155;
border-radius: 12px;
padding: 0.5rem;
}
.incident-badge {
@@ -1002,15 +1126,16 @@
display: inline-block;
margin-bottom: 1rem;
padding: 0.5rem 1rem;
background: #6c757d;
color: white;
background: #1e293b;
color: #f8fafc;
text-decoration: none;
border-radius: 6px;
border: 1px solid #334155;
transition: background 0.2s;
}
.back-button:hover {
background: #5a6268;
background: #334155;
}
.empty-state {
@@ -1111,6 +1236,16 @@
position: static;
}
.resource-list-shell {
max-height: none;
overflow: visible;
}
.resource-list-count,
.resource-list-header {
position: static;
}
.resource-row {
grid-template-columns: 1fr;
gap: 0.7rem;