Files
stack/assets/css/dashboard.css
kert 607dd40e62 feat(infra): landing-page health badges and the reach alias
nginx serves fixed /healthz/<service> probes (one named upstream each,
CORS-readable, no-store) so the landing and Gitea home panels show live
status; it joins the observability and storage networks to reach loki,
tempo and rustfs, and resolves through Docker DNS so recreated
containers are picked up. reach.fhirworx.io is a second hostname for the
LEAD public-data explorer (coredns, traefik, SSO client, subdomains).
2026-11-11 12:57:04 -05:00

313 lines
7.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;
}
.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;
}
/* ── Services section ─────────────────────────────────────── */
.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 ────────────────────────────────────────────── */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.25rem;
padding: 0;
margin-top: 0;
}
.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;
display: block;
}
.tile:hover {
border-color: var(--primary);
background: var(--card);
}
.tile:hover .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: 0 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) !important; }
.health-warn { border-left-color: var(--chart-5) !important; }
.health-bad { border-left-color: var(--destructive) !important; }
.health-unknown { border-left-color: var(--muted-foreground) !important; }
/* 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 {
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);
opacity: 0.7;
display: inline-block;
}
/* Bottom accent line */
.stripe {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: var(--border);
}
/* ── Badge labels ─────────────────────────────────────────── */
.badge {
position: absolute;
top: -1px;
left: 1.5rem; /* the tile padding: flush with the icon plate below */
font-family: var(--font-mono);
color: var(--primary-foreground);
font-size: 0.6rem;
padding: 3px 7px;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.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);
}