Files
infrastructure/llm-server/monitoring/src/Ghostnet.Dashboard/wwwroot/app.css
T
spektr da4ff05bf5 GNMON-001 M3.2: Live-Ressourcen aus VictoriaMetrics + ASCII-Bars
VictoriaMetricsClient (PromQL instant-query, 5s-Timeout), Home-Seite mit
2-s-Live-Takt: CPU (2-min-Rate), RAM und Root-Disk belegt/total/Prozent,
parallel abgefragt. AsciiBar-Komponente (18 Zeichen, Schwellenfarben
gruen/gelb/rot passend zu den vmalert-Severities). Fallendokument:
double.TryParse der PromQL-Strings lief kulturabhaengig — de-DE liest
den Punkt als Gruppentrenner (9.71 -> 9713020833333342); Parsing jetzt
invariant (NumberStyles.Float + InvariantCulture).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-04 07:19:46 +01:00

301 lines
5.9 KiB
CSS

/* Ghostnet.AI Monitoring - TUI style, Catppuccin Mocha palette. */
:root {
--crust: #11111b;
--mantle: #181825;
--base: #1e1e2e;
--surface0: #313244;
--surface1: #45475a;
--surface2: #585b70;
--overlay0: #6c7086;
--subtext0: #a6adc8;
--subtext1: #bac2de;
--text: #cdd6f4;
--rosewater: #f5e0dc;
--flamingo: #f2cdcd;
--pink: #f5c2e7;
--mauve: #cba6f7;
--red: #f38ba8;
--maroon: #eba0ac;
--peach: #fab387;
--yellow: #f9e2af;
--green: #a6e3a1;
--teal: #94e2d5;
--sky: #89dceb;
--sapphire: #74c7ec;
--blue: #89b4fa;
--lavender: #b4befe;
}
html, body {
margin: 0;
padding: 0;
background: var(--base);
color: var(--text);
font-family: ui-monospace, "JetBrains Mono", "FiraCode Nerd Font Mono",
"Cascadia Code", "Cousine", "DejaVu Sans Mono", monospace;
font-size: 15px;
line-height: 1.45;
}
h1 {
font-size: 1.35rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--mauve);
margin: 0 0 0.25rem 0;
}
h1::before {
content: "## ";
color: var(--surface2);
}
p.hint {
color: var(--overlay0);
margin: 0 0 1.25rem 0;
}
code {
color: var(--peach);
background: var(--mantle);
padding: 0 0.3em;
border: 1px solid var(--surface0);
}
a {
color: var(--sapphire);
}
a:hover {
color: var(--sky);
}
/* ---- panels & tiles ---- */
.panel {
background: var(--mantle);
border: 1px solid var(--surface0);
padding: 0.9rem 1.1rem;
margin-bottom: 1.1rem;
}
.panel-header {
color: var(--teal);
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 0.8rem;
border-bottom: 1px dashed var(--surface1);
padding-bottom: 0.4rem;
margin-bottom: 0.7rem;
}
.panel-header::before {
content: "┌─ ";
color: var(--surface2);
}
.tile-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 0.9rem;
margin-bottom: 1.1rem;
}
.tile {
background: var(--mantle);
border: 1px solid var(--surface0);
padding: 0.8rem 1rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.tile-label {
color: var(--overlay0);
text-transform: uppercase;
font-size: 0.72rem;
letter-spacing: 0.12em;
}
.tile-value {
color: var(--green);
font-size: 1.7rem;
text-shadow: 0 0 8px rgba(166, 227, 161, 0.35);
}
.tile-sub {
color: var(--subtext0);
font-size: 0.78rem;
}
/* ---- ascii progress bar ---- */
.ascii-bar {
display: block;
font-size: 0.82rem;
letter-spacing: 0.02em;
line-height: 1.2;
white-space: nowrap;
}
.bar-fill {
color: var(--green);
text-shadow: 0 0 6px rgba(166, 227, 161, 0.3);
}
.bar-fill-warning {
color: var(--yellow);
text-shadow: 0 0 6px rgba(249, 226, 175, 0.3);
}
.bar-fill-critical {
color: var(--red);
text-shadow: 0 0 6px rgba(243, 139, 168, 0.3);
}
.bar-empty {
color: var(--surface1);
}
/* ---- value grids (GPU cards) ---- */
.value-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem 1.2rem;
text-align: left;
}
.value-grid .tile-label {
margin-top: 0.3rem;
}
.value-grid .val {
color: var(--green);
font-size: 1.05rem;
white-space: nowrap;
}
.panel-footer-line {
color: var(--overlay0);
font-size: 0.78rem;
border-top: 1px dashed var(--surface1);
margin-top: 0.7rem;
padding-top: 0.45rem;
}
/* ---- notes, alerts, badges ---- */
.note {
border: 1px dashed var(--surface1);
border-left: 3px solid var(--mauve);
background: rgba(203, 166, 247, 0.06);
color: var(--subtext0);
padding: 0.6rem 0.9rem;
}
.note-accent {
border-left-color: var(--green);
background: rgba(166, 227, 161, 0.06);
}
.badge {
border: 1px solid var(--surface1);
color: var(--subtext0);
font-size: 0.72rem;
padding: 0.1rem 0.5rem;
letter-spacing: 0.08em;
}
.alert-row {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid var(--surface0);
border-left: 3px solid var(--surface2);
background: var(--mantle);
padding: 0.45rem 0.8rem;
margin-bottom: 0.45rem;
color: var(--subtext0);
}
.alert-row.sev-critical {
border-left-color: var(--red);
color: var(--red);
}
.alert-row.sev-warning {
border-left-color: var(--yellow);
color: var(--yellow);
}
/* ---- toolbar / form elements ---- */
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
align-items: flex-end;
margin-bottom: 1.1rem;
}
.toolbar-field {
display: flex;
flex-direction: column;
min-width: 180px;
}
.toolbar-label {
color: var(--overlay0);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.12em;
margin-bottom: 0.25rem;
}
select, input[type="text"], input:not([type]) {
background: var(--crust);
color: var(--text);
border: 1px solid var(--surface1);
padding: 0.35rem 0.6rem;
font-family: inherit;
}
select:focus, input:focus {
outline: 1px solid var(--mauve);
border-color: var(--mauve);
}
select:disabled, input:disabled {
color: var(--overlay0);
}
button {
background: var(--crust);
color: var(--text);
border: 1px solid var(--surface1);
padding: 0.35rem 0.9rem;
font-family: inherit;
letter-spacing: 0.04em;
}
button:not(:disabled):hover {
border-color: var(--green);
color: var(--green);
box-shadow: 0 0 8px rgba(166, 227, 161, 0.25);
}
button:disabled {
color: var(--overlay0);
opacity: 0.6;
}
#blazor-error-ui {
background: var(--maroon);
color: var(--crust);
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
display: none;
left: 0;
padding: 0.6rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}