Updates
This commit is contained in:
+260
-2
@@ -656,7 +656,254 @@ body.is-offline .offline-banner:not(.hidden) {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* ─── Charts browser ─── */
|
||||
/* ─── Master metrics wall (Charts tab) ─── */
|
||||
.metrics-header {
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 20px;
|
||||
}
|
||||
|
||||
.metrics-timebar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px 10px;
|
||||
}
|
||||
|
||||
.metrics-presets {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
padding: 2px;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
|
||||
}
|
||||
|
||||
.metrics-presets .ghost.active {
|
||||
background: rgba(52, 211, 153, 0.16);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.metrics-meta,
|
||||
.metrics-hover {
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.metrics-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 240px minmax(0, 1fr);
|
||||
gap: var(--space);
|
||||
min-height: 480px;
|
||||
height: calc(100vh - var(--titlebar-h) - 168px);
|
||||
}
|
||||
|
||||
.metrics-toc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.metrics-toc-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.toc-item,
|
||||
.toc-sub {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.toc-item:hover,
|
||||
.toc-sub:hover {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.toc-item {
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.toc-sub {
|
||||
padding-left: 18px;
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.toc-count {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
.metrics-wall {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding-right: 4px;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.metrics-empty {
|
||||
padding: 48px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.metrics-section {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.metrics-section.collapsed .metrics-section-body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.metrics-section-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
padding: 8px 0;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
var(--bg-primary) 70%,
|
||||
transparent
|
||||
);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.metrics-section-head h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.section-toggle {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-faint);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.metrics-family {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.metrics-family-title {
|
||||
margin: 0 0 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
.metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 12px 14px 10px;
|
||||
border-radius: 14px;
|
||||
background: var(--bg-card, rgba(255, 255, 255, 0.03));
|
||||
border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.metric-card-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.metric-card-title {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.metric-card-sub {
|
||||
margin: 2px 0 0;
|
||||
font-size: 11px;
|
||||
font-family: var(--font-mono);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.metric-card-status {
|
||||
font-size: 10px;
|
||||
font-family: var(--font-mono);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.metric-card canvas {
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.metric-card-legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
min-height: 22px;
|
||||
}
|
||||
|
||||
.dim-chip {
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 3px 8px;
|
||||
font-size: 11px;
|
||||
font-family: var(--font-mono);
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
background: color-mix(in srgb, var(--dim-color, #94a3b8) 18%, transparent);
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dim-color, #94a3b8) 45%, transparent);
|
||||
}
|
||||
|
||||
.dim-chip.off {
|
||||
opacity: 0.35;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.metric-card.flash {
|
||||
box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.55), 0 0 24px rgba(52, 211, 153, 0.18);
|
||||
}
|
||||
|
||||
.metrics-detail {
|
||||
margin-top: var(--space);
|
||||
}
|
||||
|
||||
.charts-browser {
|
||||
display: grid;
|
||||
grid-template-columns: 280px 1fr;
|
||||
@@ -1040,9 +1287,20 @@ code {
|
||||
}
|
||||
.charts-grid,
|
||||
.fleet-layout,
|
||||
.charts-browser {
|
||||
.charts-browser,
|
||||
.metrics-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.metrics-shell {
|
||||
height: auto;
|
||||
max-height: none;
|
||||
}
|
||||
.metrics-toc {
|
||||
max-height: 220px;
|
||||
}
|
||||
.metrics-wall {
|
||||
max-height: 70vh;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
|
||||
Reference in New Issue
Block a user