258 lines
8.7 KiB
CSS
258 lines
8.7 KiB
CSS
/* ── Namespace tabs ── */
|
|
.oumta-ns-tab {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 10px;
|
|
padding: 8px 14px;
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
color: var(--t-muted);
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
margin-right: 2px;
|
|
}
|
|
.oumta-ns-tab:hover { color: var(--t-bright); }
|
|
.oumta-ns-tab.active { color: var(--t-accent); border-bottom-color: var(--t-accent); }
|
|
|
|
/* ── View tabs ── */
|
|
.oumta-view-tab {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: var(--t-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--ui-radius-button);
|
|
transition: all 0.15s;
|
|
}
|
|
.oumta-view-tab:hover { color: var(--t-bright); }
|
|
.oumta-view-tab.active { color: var(--t-accent); border-color: var(--t-accent); }
|
|
|
|
.oumta-view.hidden { display: none; }
|
|
.oumta-view { padding: 20px 24px; }
|
|
|
|
/* ── Overview cards ── */
|
|
.oumta-overview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.oumta-card {
|
|
background: var(--t-bg);
|
|
border: 1px solid var(--t-border);
|
|
border-radius: var(--ui-radius-card);
|
|
padding: 14px 16px;
|
|
display: flex; flex-direction: column; gap: 4px;
|
|
align-items: center;
|
|
text-align: center;
|
|
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
}
|
|
.oumta-card-wide { grid-column: span 4; }
|
|
.oumta-card-label {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 9px;
|
|
color: var(--t-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.oumta-card-value {
|
|
font-family: var(--font-content, monospace);
|
|
font-size: 56px;
|
|
color: var(--t-bright);
|
|
font-weight: bold;
|
|
line-height: 1.05;
|
|
}
|
|
.oumta-card-value-sm { font-size: 18px; font-weight: normal; line-height: 1.3; }
|
|
.oumta-card-sub { font-size: 10px; color: var(--t-dim); }
|
|
.oumta-danger { color: var(--t-danger); }
|
|
|
|
/* Fail state: whole card goes red; label, value, sub all flip to white
|
|
* so the box reads as a single alarm tile rather than a coloured number
|
|
* on dark chrome. Triggered from JS via the oumta-fail class. Uses the
|
|
* theme's --t-danger to stay consistent with the "unavailable" state
|
|
* labels and workload state colours elsewhere in the dashboard. */
|
|
.oumta-card.oumta-fail {
|
|
background: var(--t-danger);
|
|
border-color: var(--t-danger);
|
|
color: #fff;
|
|
}
|
|
.oumta-card.oumta-fail .oumta-card-label,
|
|
.oumta-card.oumta-fail .oumta-card-value,
|
|
.oumta-card.oumta-fail .oumta-card-sub {
|
|
color: #fff;
|
|
}
|
|
|
|
.oumta-cluster-status[data-state="healthy"] .oumta-card-value { color: #4ade80; }
|
|
.oumta-cluster-status[data-state="degraded"] .oumta-card-value { color: #fb923c; }
|
|
.oumta-cluster-status[data-state="unknown"] .oumta-card-value { color: var(--t-dim); }
|
|
/* data-state="down" is handled by .oumta-fail (toggled from JS) so the
|
|
* cluster tile goes fully red + white like the other alarms. */
|
|
|
|
/* ── Attention list ── */
|
|
.oumta-section { margin-top: 8px; }
|
|
.oumta-section-title {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 10px;
|
|
color: var(--t-accent);
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.oumta-attention-list { display: flex; flex-direction: column; gap: 6px; }
|
|
.oumta-attention-row {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 10px 14px;
|
|
background: var(--t-bg);
|
|
border: 1px solid var(--t-border);
|
|
border-radius: var(--ui-radius-card);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.oumta-attention-row:hover { border-color: var(--t-accent); }
|
|
.oumta-attention-name { flex: 1; color: var(--t-bright); font-size: 13px; }
|
|
.oumta-attention-ns { color: var(--t-dim); font-size: 11px; font-family: var(--font-content, monospace); }
|
|
.oumta-attention-reason { color: var(--t-muted); font-size: 11px; font-style: italic; }
|
|
.oumta-attention-state {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 9px;
|
|
padding: 2px 6px;
|
|
border: 1px solid var(--t-border);
|
|
border-radius: 2px;
|
|
}
|
|
.oumta-attention-state[data-state="degraded"] { color: #fb923c; border-color: #fb923c; }
|
|
.oumta-attention-state[data-state="unavailable"] { color: var(--t-danger); border-color: var(--t-danger); }
|
|
|
|
.oumta-empty {
|
|
padding: 32px;
|
|
text-align: center;
|
|
color: var(--t-dim);
|
|
font-size: 12px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* ── Workload toolbar + table ── */
|
|
.oumta-toolbar {
|
|
display: flex; gap: 10px; margin-bottom: 14px;
|
|
align-items: center;
|
|
}
|
|
.oumta-input {
|
|
background: var(--t-bg);
|
|
border: 1px solid var(--t-border);
|
|
color: var(--t-bright);
|
|
padding: 6px 10px;
|
|
border-radius: var(--ui-radius-input);
|
|
font-size: 12px;
|
|
font-family: var(--font-content, monospace);
|
|
outline: none;
|
|
}
|
|
.oumta-input:focus { border-color: var(--t-accent); }
|
|
#oumta-wl-search { flex: 1; min-width: 200px; }
|
|
|
|
.oumta-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
}
|
|
.oumta-table th {
|
|
text-align: left;
|
|
padding: 8px 10px;
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 9px;
|
|
color: var(--t-dim);
|
|
text-transform: uppercase;
|
|
border-bottom: 1px solid var(--t-border);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.oumta-table td {
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--t-border);
|
|
color: var(--t-text);
|
|
font-family: var(--font-content, monospace);
|
|
vertical-align: middle;
|
|
}
|
|
.oumta-table tbody tr { cursor: pointer; transition: background 0.15s; }
|
|
.oumta-table tbody tr:hover { background: var(--t-bg); }
|
|
.oumta-table .wl-state-healthy { color: #4ade80; }
|
|
.oumta-table .wl-state-degraded { color: #fb923c; }
|
|
.oumta-table .wl-state-unavailable{ color: var(--t-danger); }
|
|
|
|
/* ── Timeline ── */
|
|
.oumta-timeline-header {
|
|
display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
|
|
}
|
|
.oumta-btn-ghost {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
background: transparent;
|
|
border: 1px solid var(--t-border);
|
|
color: var(--t-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--ui-radius-button);
|
|
transition: all 0.15s;
|
|
}
|
|
.oumta-btn-ghost:hover { border-color: var(--t-accent); color: var(--t-accent); }
|
|
|
|
.oumta-timeline-body {
|
|
display: flex; flex-direction: column; gap: 2px;
|
|
border-left: 2px solid var(--t-border);
|
|
padding-left: 16px;
|
|
}
|
|
.oumta-timeline-entry {
|
|
display: grid;
|
|
grid-template-columns: 140px 80px 1fr;
|
|
gap: 10px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--t-border);
|
|
align-items: baseline;
|
|
}
|
|
.oumta-timeline-time { font-family: var(--font-content, monospace); font-size: 11px; color: var(--t-dim); }
|
|
.oumta-timeline-severity {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 9px;
|
|
text-transform: uppercase;
|
|
}
|
|
.oumta-timeline-severity[data-sev="info"] { color: var(--t-accent); }
|
|
.oumta-timeline-severity[data-sev="warning"] { color: #fb923c; }
|
|
.oumta-timeline-severity[data-sev="error"] { color: var(--t-danger); }
|
|
.oumta-timeline-severity[data-sev="recovered"] { color: #4ade80; }
|
|
.oumta-timeline-severity[data-sev="image"] { color: #60a5fa; }
|
|
.oumta-timeline-message { font-size: 12px; color: var(--t-bright); }
|
|
.oumta-timeline-meta { font-size: 10px; color: var(--t-dim); margin-top: 2px; }
|
|
|
|
/* ── Live indicator ── */
|
|
.oumta-dot {
|
|
width: 6px; height: 6px; border-radius: 50%;
|
|
background: var(--t-dim);
|
|
display: inline-block;
|
|
transition: background 0.2s;
|
|
}
|
|
#oumta-live-indicator[data-state="live"] .oumta-dot { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
|
|
#oumta-live-indicator[data-state="polling"] .oumta-dot { background: #fb923c; }
|
|
#oumta-live-indicator[data-state="error"] .oumta-dot { background: var(--t-danger); }
|
|
|
|
/* ── Settings tab ── */
|
|
.oumta-settings-field {
|
|
display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px;
|
|
}
|
|
.oumta-settings-field label {
|
|
font-family: var(--font-pixel, 'Silkscreen', cursive);
|
|
font-size: 9px; color: var(--t-dim); text-transform: uppercase;
|
|
}
|
|
.oumta-settings-field input {
|
|
background: var(--t-bg);
|
|
border: 1px solid var(--t-border);
|
|
color: var(--t-bright);
|
|
padding: 8px 10px;
|
|
border-radius: var(--ui-radius-input);
|
|
font-family: var(--font-content, monospace);
|
|
font-size: 12px;
|
|
outline: none;
|
|
}
|
|
.oumta-settings-field input:focus { border-color: var(--t-accent); }
|
|
.oumta-settings-help { font-size: 10px; color: var(--t-dim); line-height: 1.5; }
|