Files
VITEC-website/packages/vitec/Resources/Public/Css/dashboard-ssr.css
T
orascheandClaude Opus 5.5 62f3f5394e SSR dashboard tiles in the cockpit look
The three SSR widgets render dark VITEC tiles like the cockpit module: status with pulse, cache ring and last purge, statistics with the 24 h availability strip and number tiles, errors with hit rate ring and split bar. Shared markup in CockpitHtml, styles in dashboard-ssr.css loaded per widget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:59:49 +01:00

131 lines
7.6 KiB
CSS

/* VITEC SSR dashboard tiles in the look of the "VITEC SSR" cockpit module
(dark VITEC navy, orange accents; decision Harry, 2026-11-11).
Loaded per widget via AdditionalCssInterface; markup from
Classes/Widgets/CockpitHtml.php. Only touches widgets that contain
.vc-widget, so the rest of the dashboard keeps the core look. */
.widget:has(.vc-widget) {
--widget-bg: #0f1640;
--widget-color: #e9ecfb;
--widget-border-color: rgba(140, 156, 255, .18);
--widget-title-bg: #121b4c;
--widget-title-color: #e9ecfb;
--widget-box-shadow: 0 6px 24px rgba(8, 12, 38, .25);
color-scheme: dark;
}
.vc-widget {
--vcw-panel-2: #151e52;
--vcw-line: rgba(140, 156, 255, .14);
--vcw-navy: #4a5fd6;
--vcw-orange: #f47937;
--vcw-text: #e9ecfb;
--vcw-muted: #8e97c6;
--vcw-faint: #6a73a6;
--vcw-ok: #35d39a;
--vcw-warn: #ffc65c;
--vcw-bad: #ff5f73;
--vcw-sky: #6fc3ff;
--vcw-mono: var(--typo3-font-family-monospace, ui-monospace, SFMono-Regular, Consolas, monospace);
/* Widgets based on WidgetInterface get no inner padding from the core. */
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding: 16px 20px 18px;
background: radial-gradient(120% 90% at 0% 0%, rgba(74, 95, 214, .22), transparent 60%), #0f1640;
display: flex;
flex-direction: column;
gap: 14px;
color: var(--vcw-text);
font-size: 13px;
line-height: 1.45;
}
.vc-widget code { font-family: var(--vcw-mono); font-size: 12px; color: #cdd4ff; background: none; padding: 0; }
.vcw-ok { color: var(--vcw-ok); } .vcw-warn { color: var(--vcw-warn); } .vcw-bad { color: var(--vcw-bad); }
.vcw-dim { color: var(--vcw-muted); font-size: 12px; margin: 0; }
.vcw-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vcw-muted); }
.vcw-sub { font-size: 12px; color: var(--vcw-muted); }
.vcw-right { text-align: right; }
.vcw-num { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vcw-num small, .vcw-val small { font-size: 12px; font-weight: 600; color: var(--vcw-muted); margin-left: 3px; letter-spacing: 0; }
/* Head with pulse */
.vcw-head { display: flex; align-items: center; gap: 12px; }
.vcw-title { font-size: 22px; font-weight: 800; line-height: 1.15; }
.vcw-pulse { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--vcw-ok); color: var(--vcw-ok); }
.vcw-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: vcw-ping 2.4s ease-out infinite; }
.vcw-pulse.is-warn { background: var(--vcw-warn); color: var(--vcw-warn); }
.vcw-pulse.is-down { background: var(--vcw-bad); color: var(--vcw-bad); }
@keyframes vcw-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
/* Ring gauge */
.vcw-ring { position: relative; flex: none; }
.vcw-ring svg { display: block; transform: rotate(-90deg); }
.vcw-ring circle { fill: none; stroke-width: 9; }
.vcw-track { stroke: rgba(140, 156, 255, .12); }
.vcw-val { stroke-linecap: round; }
circle.vcw-val.is-ok { stroke: var(--vcw-ok); } circle.vcw-val.is-sky { stroke: var(--vcw-sky); } circle.vcw-val.is-orange { stroke: var(--vcw-orange); }
.vcw-ring-c { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vcw-gauge { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vcw-grow { flex: 1; min-width: 0; }
.vcw-split { display: flex; flex-direction: column; gap: 14px; }
.vcw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px 16px; margin: 0; }
.vcw-facts > div { min-width: 0; }
.vcw-facts dt { font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--vcw-faint); }
.vcw-facts dd { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Pills */
.vcw-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .03em; padding: 4px 8px; border-radius: 99px; white-space: nowrap; background: rgba(140, 156, 255, .12); color: #c4cbf0; }
.vcw-pill.is-ok { background: rgba(53, 211, 154, .14); color: var(--vcw-ok); }
.vcw-pill.is-warn { background: rgba(255, 198, 92, .15); color: var(--vcw-warn); }
.vcw-pill.is-bad { background: rgba(255, 95, 115, .15); color: var(--vcw-bad); }
.vcw-pill.is-sky { background: rgba(111, 195, 255, .14); color: var(--vcw-sky); }
.vcw-pill.is-navy { background: rgba(74, 95, 214, .24); color: #b8c3ff; }
.vcw-pill.is-orange { background: rgba(244, 121, 55, .16); color: var(--vcw-orange); }
.vcw-pill.is-muted { color: var(--vcw-muted); }
/* Last purge line */
.vcw-last { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 10px; background: var(--vcw-panel-2); border: 1px solid var(--vcw-line); }
.vcw-last .vcw-label { margin-right: 4px; }
.vcw-time { font: 500 12px var(--vcw-mono); color: var(--vcw-muted); }
.vcw-path { flex-basis: 100%; font: 12px var(--vcw-mono); color: #cdd4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Availability strip */
.vcw-strip-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.vcw-bars { display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); gap: 1px; height: 28px; align-items: end; margin-top: -4px; }
.vcw-bars i { display: block; height: 100%; border-radius: 1px; background: var(--vcw-ok); opacity: .85; }
.vcw-bars i.is-slow { background: var(--vcw-warn); }
.vcw-bars i.is-down { background: var(--vcw-bad); }
.vcw-bars i.is-none { background: rgba(140, 156, 255, .14); height: 40%; }
.vcw-bars i:hover { opacity: 1; }
.vcw-axis { display: flex; justify-content: space-between; font: 10.5px var(--vcw-mono); color: var(--vcw-faint); margin-top: -8px; }
/* Number tiles */
.vcw-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.vcw-tile { background: var(--vcw-panel-2); border: 1px solid var(--vcw-line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.vcw-tile .vcw-label { font-size: 10px; }
.vcw-val { font-size: 20px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vcw-tile .vcw-sub { font-size: 11px; }
/* Hit rate split bar */
.vcw-split-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(140, 156, 255, .12); margin-top: 8px; }
.vcw-split-bar i { display: block; height: 100%; }
.vcw-split-bar i.is-navy, .vcw-legend i.is-navy { background: var(--vcw-navy); }
.vcw-split-bar i.is-sky, .vcw-legend i.is-sky { background: var(--vcw-sky); }
.vcw-split-bar i.is-warn, .vcw-legend i.is-warn { background: var(--vcw-warn); }
.vcw-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11px; color: var(--vcw-muted); font-variant-numeric: tabular-nums; }
.vcw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vcw-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.vcw-note { margin: 0; font-size: 11px; color: var(--vcw-faint); }
.vcw-foot { margin-top: auto; padding-top: 2px; }
.vcw-link { color: var(--vcw-orange); font-weight: 700; font-size: 12.5px; text-decoration: none; }
.vcw-link:hover, .vcw-link:focus { color: var(--vcw-orange); text-decoration: underline; }
.vc-widget a:focus-visible { outline: 2px solid var(--vcw-orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
.vcw-pulse::after { animation: none; }
}