Files
stack/assets/css/dashboard.css
kert f05d739c13 fix(dashboard): grouped sections, aligned tiles, no theme overlay on the landing page (D1, R86)
The landing page was getting /fhirworx.css (inject.css, the overlay for
third-party UIs) from Traefik's inject-fhirworx rewrite of its head end
tag; its generic rules shrank the h1, hid the "Infrastructure" heading
on a navy bar and boxed the tagline in mono. index.html now leaves the
optional head end tag out, so the rewrite has nothing to match.

- tiles grouped into Apps / Data platform / Observability /
  Infrastructure (8/4/4/3) on a 4-2-1 column grid: no lone last tile
- tiles are flex columns: health box and host line pinned to the floor,
  aligned across each row
- GPU/DATA badges sit in the icon row at the right, clear of the top
  rule and the plate
- host label drops under the title below 600px
- LEAD and REACH get distinct titles; REACH is described as the
  explorer alias that also serves /releases
- lead, reach and lex get their own glyphs (database-search, link,
  scale); chart-area-line stays on Grafana
- footer year comes from the page script
- "checking" stays quiet for 0.8 s, so fast probes do not flash it
- keyboard focus ring and hover look on tiles; host line contrast
  (dropped the 0.7 opacity); reduced-motion turns off transitions
- the stylesheet link carries ?v=<md5 prefix>; Cloudflare caches
  /dashboard.css at the edge for hours
2026-11-12 20:29:17 -05:00

391 lines
9.6 KiB
CSS

/* HTI-5 — Federal Register editorial design system for Dashboard (nginx landing page) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');
:root {
--background: #F7F5F0;
--foreground: #1A1A18;
--card: #FAFAF7;
--card-foreground: #1A1A18;
--primary: #1C2B3A;
--primary-foreground: #F7F5F0;
--secondary: #EDEBE6;
--muted-foreground: #6B6B68;
--border: #D4D0C8;
--sidebar: #1C2B3A;
--sidebar-foreground: #B8C5D0;
--sidebar-accent: #253748;
--chart-4: #2E8B6E;
--chart-5: #C8702A;
--destructive: #C0392B;
--font-display: "Playfair Display", Georgia, serif;
--font-body: "Source Serif 4", Georgia, serif;
--font-mono: "JetBrains Mono", "Fira Code", monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-body);
font-size: 16px;
line-height: 1.65;
background: var(--background);
color: var(--foreground);
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 1180px;
margin: 0 auto;
padding: 3rem 1.5rem;
}
/* ── Masthead ──────────────────────────────────────────────── */
.masthead {
margin-bottom: 1.5rem;
}
.rule-line {
border: none;
border-top: 3px solid var(--foreground);
margin-bottom: 1rem;
}
.rule-line-thin {
border: none;
border-top: 1px solid var(--border);
margin-bottom: 1rem;
}
.masthead-row {
display: flex;
align-items: baseline;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}
h1 {
font-family: var(--font-display);
font-weight: 800;
font-size: clamp(2.5rem, 5vw, 3.5rem);
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--foreground);
}
.masthead-eyebrow {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--muted-foreground);
align-self: flex-end;
padding-bottom: 0.35rem;
}
/* Narrow screens: the host label sits on its own line under the title
instead of squeezing beside it. */
@media (max-width: 600px) {
.masthead-row {
flex-direction: column;
align-items: flex-start;
gap: 0.35rem;
}
.masthead-eyebrow {
align-self: flex-start;
padding-bottom: 0;
}
}
.tagline {
font-family: var(--font-body);
font-size: 1.125rem;
color: var(--muted-foreground);
max-width: 65ch;
line-height: 1.65;
margin-bottom: 1.5rem;
}
/* ── Service sections ─────────────────────────────────────── */
.section + .section {
margin-top: 3rem;
}
.section-header {
margin-bottom: 1.5rem;
}
.section-eyebrow {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--muted-foreground);
margin-bottom: 0.4rem;
display: block;
}
h2 {
font-family: var(--font-display);
font-weight: 700;
font-size: 1.75rem;
line-height: 1.2;
letter-spacing: -0.01em;
color: var(--foreground);
}
/* ── Tile grid ────────────────────────────────────────────── */
/* Four columns on a wide screen, two on a tablet, one on a phone. Three
would strand a lone tile in the four-tile sections. */
.grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.25rem;
padding: 0;
margin-top: 0;
}
@media (max-width: 1099px) {
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
.grid { grid-template-columns: minmax(0, 1fr); }
}
.tile {
background: var(--card);
border: 1px solid var(--border);
border-top: 3px solid var(--foreground);
padding: 1.5rem;
position: relative;
overflow: hidden;
transition: border-color 0.15s ease, background 0.15s ease;
cursor: pointer;
text-decoration: none;
/* A column, so the health box and host line sit on the tile's floor
and line up across a row however long the description runs. */
display: flex;
flex-direction: column;
min-width: 0;
}
.tile > .icon,
.tile > .tile-port {
align-self: flex-start;
}
.tile:hover,
.tile:focus-visible {
border-color: var(--primary);
background: var(--card);
}
.tile:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
.tile:hover .tile-title,
.tile:focus-visible .tile-title {
color: var(--primary);
}
/* Health, inside the tile. Same shape as the corwins.media status badge:
a label, a status word, and a left edge that carries the state. */
.health {
display: flex;
flex-direction: column;
margin: auto 0 0.85rem;
padding: 8px 10px;
border: 1px solid var(--border);
border-left-width: 4px;
background: var(--background);
}
.health-k {
font-family: var(--font-mono);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted-foreground);
}
.health-v {
font-size: 18px;
font-weight: 600;
line-height: 1.2;
color: var(--foreground);
}
.health-ok { border-left-color: var(--chart-4); }
.health-warn { border-left-color: var(--chart-5); }
.health-bad { border-left-color: var(--destructive); }
.health-unknown { border-left-color: var(--muted-foreground); }
/* The probes answer within a few tenths of a second, so "checking" and its
grey edge would only flash. Hold that state quiet for 0.8 s; a slow probe
still shows it. */
.health-unknown {
animation: health-wait 0s linear 0.8s backwards;
}
.health-unknown .health-v {
animation: health-wait-v 0s linear 0.8s backwards;
}
@keyframes health-wait {
from, to { border-left-color: var(--border); }
}
@keyframes health-wait-v {
from, to { visibility: hidden; }
}
/* Icon plate — one navy line glyph in a hairline square, like the
identification block on a technical drawing. Glyphs are the inline
Tabler sprite in index.html; stroke weight and size live here. */
.sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.tile .icon {
width: 44px;
height: 44px;
display: grid;
place-items: center;
border: 1px solid var(--border);
color: var(--primary);
margin-bottom: 0.9rem;
transition: border-color 0.15s ease;
}
.tile .icon svg {
width: 24px;
height: 24px;
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.tile:hover .icon,
.tile:focus-visible .icon {
border-color: var(--primary);
}
/* Tile eyebrow — mono metadata label (category, service type) */
.tile-eyebrow {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--muted-foreground);
margin-bottom: 0.25rem;
}
/* Tile title — Playfair Display, editorial display size */
.tile-title {
font-family: var(--font-display);
font-size: 1.25rem;
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.01em;
color: var(--foreground);
margin: 0.25rem 0 0.5rem;
transition: color 0.15s ease;
}
/* Tile description — Source Serif 4, reading body */
.tile-desc {
font-family: var(--font-body);
font-size: 0.95rem;
color: var(--muted-foreground);
line-height: 1.55;
margin-bottom: 1rem;
}
/* Tile port/metadata — mono, muted, small */
.tile-port {
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--muted-foreground);
display: inline-block;
}
/* Bottom accent line */
.stripe {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: var(--border);
}
/* ── Badge labels ─────────────────────────────────────────── */
/* In the icon row, opposite the plate: clear of the top rule and the
plate at any tile width. 20px tall, centred on the 44px plate. */
.badge {
position: absolute;
top: calc(1.5rem + 12px);
right: 1.5rem;
height: 20px;
font-family: var(--font-mono);
color: var(--primary-foreground);
font-size: 0.6rem;
line-height: 14px;
padding: 3px 7px;
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap;
}
.badge.new { background: var(--chart-5); }
.badge.gpu { background: var(--primary); }
.badge.data { background: var(--primary); }
/* ── Footer ───────────────────────────────────────────────── */
footer {
margin-top: 3rem;
padding-top: 1rem;
border-top: 3px solid var(--foreground);
text-align: left;
color: var(--muted-foreground);
font-family: var(--font-mono);
font-size: 0.65rem;
letter-spacing: 0.08em;
}
footer span {
color: var(--chart-5);
}
/* ── Motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.tile,
.tile .icon,
.tile-title {
transition: none;
}
}