Niveus is the interface language the project uses from here on -- this site
first, applications after it. Rebuilding the site on it is what proves the
system is one, rather than a folder of CSS with a README.
**`style.css` is gone.** 21 KB that transcribed include/theme.h by hand:
palette, type scale, shadows, spacing, every component. The intent was right --
"a site describing an operating system should look like the operating system"
-- and the mechanism was a copy, which means two files that have to be kept in
step by remembering to. What replaced it is `app.css`, which is layout and
nothing else, and one declaration in each page:
:root { --nv-brand: #7C5CFF; }
That is SCH_ACCENT. Niveus derives the accent and its states, the link colour,
the focus ring, the tint in the greys and how far the status colours lean, for
light and dark both. One number to keep true instead of forty.
**The site is now adaptive.** Dark by default, because the OS is dark, with a
Light/Dark/Auto group in the bar that is real. The choice is kept in
localStorage and re-applied by an inline script before first paint, so the page
never renders in one appearance and corrects itself while you watch.
**PSOGM keeps its one purple, and now says so structurally.** #4B1D9A is
spelled the way Niveus spells a subtree with its own colour -- `data-nv-brand`
with its own `--nv-brand` on that section -- so every role inside re-derives
from it rather than being painted on. Still exactly one place, which is what
branding/README.md asks for.
Content is unchanged; what changed is what it is made of. Cards are `.nv-card`,
tags are `.nv-badge`, the support table is `.nv-table`, the crash section is a
`.nv-bed`, and the docs reader's two rails are `.nv-nav--vertical` with the
current document marked by `aria-current` rather than a class of our own.
`docs.js` emits `.nv-table` and `.nv-code`, so a change to the system reaches
the documentation too.
Three things were found by looking at it in a browser rather than by reading
it, and all three are the same mistake: **a `.nv-card` carries no padding of
its own -- its parts do.** The stat tiles, the "One ISO, one stick" band and
the card headers were all built from bare children, so numbers ran to the card
edge, the USB mark hung off it, and a title and its badge sat at opposite ends
of a row meant for a title and a trailing slot. Where the component had a right
way to say it, the markup now says it that way; where it did not -- a tile has
no parts -- `app.css` supplies the padding and says why.
Checked: every nv- class used across the three pages and docs.js exists in the
CSS, every token referenced by app.css is defined, and app.css contains no hex
value at all. Niveus's own tools/check.py passes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
153 lines
3.6 KiB
CSS
153 lines
3.6 KiB
CSS
/* ==========================================================================
|
|
Northwire Ops — dashboard layout
|
|
--------------------------------------------------------------------------
|
|
Layout only. A data-dense view is where a design system is tested hardest:
|
|
there are more things on screen than anywhere else, so any inconsistency in
|
|
spacing or weight shows up immediately. Nothing here restates the language —
|
|
even the chart draws itself in semantic colors.
|
|
========================================================================== */
|
|
|
|
html, body { block-size: 100%; }
|
|
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: 15rem 1fr;
|
|
min-block-size: 100svh;
|
|
}
|
|
|
|
@media (max-width: 62rem) {
|
|
.app { grid-template-columns: 1fr; }
|
|
.app__sidebar { display: none; }
|
|
}
|
|
|
|
.app__main {
|
|
min-inline-size: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app__content {
|
|
flex: 1;
|
|
padding: var(--nv-space-6) var(--nv-layout-gutter) var(--nv-space-12);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--nv-space-6);
|
|
max-inline-size: 80rem;
|
|
inline-size: 100%;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: var(--nv-space-4);
|
|
}
|
|
|
|
/* --- Stat tiles -------------------------------------------------------------- */
|
|
|
|
.stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
|
|
gap: var(--nv-space-4);
|
|
}
|
|
|
|
.stat__value {
|
|
display: block;
|
|
margin-block: var(--nv-space-2) var(--nv-space-1);
|
|
font-size: var(--nv-font-size-3xl);
|
|
font-weight: var(--nv-font-weight-semibold);
|
|
letter-spacing: var(--nv-letter-spacing-tighter);
|
|
color: var(--nv-color-text-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* --- Chart --------------------------------------------------------------------
|
|
Drawn in semantic colors, so it follows the brand and both appearances with
|
|
no second palette to maintain. */
|
|
|
|
.chart {
|
|
inline-size: 100%;
|
|
block-size: 14rem;
|
|
display: block;
|
|
overflow: visible;
|
|
}
|
|
|
|
.chart__grid {
|
|
stroke: var(--nv-color-border-subtle);
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.chart__line {
|
|
fill: none;
|
|
stroke: var(--nv-color-accent);
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
|
|
.chart__line--compare {
|
|
stroke: var(--nv-color-border-strong);
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
|
|
.chart__area {
|
|
fill: url(#chart-fill);
|
|
}
|
|
|
|
.chart__labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-block-start: var(--nv-space-2);
|
|
}
|
|
|
|
/* --- Layout of the lower half --------------------------------------------------- */
|
|
|
|
.split {
|
|
display: grid;
|
|
gap: var(--nv-space-6);
|
|
align-items: start;
|
|
}
|
|
|
|
@media (min-width: 70rem) {
|
|
.split { grid-template-columns: 1.6fr 1fr; }
|
|
}
|
|
|
|
.activity {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.activity li {
|
|
display: flex;
|
|
gap: var(--nv-space-3);
|
|
padding-block: var(--nv-space-3);
|
|
border-block-end: var(--nv-border-width) solid var(--nv-color-border-subtle);
|
|
}
|
|
|
|
.activity li:last-child { border-block-end: 0; }
|
|
|
|
.activity__mark {
|
|
inline-size: var(--nv-space-2);
|
|
block-size: var(--nv-space-2);
|
|
border-radius: var(--nv-radius-full);
|
|
margin-block-start: 0.45em;
|
|
flex: none;
|
|
background-color: var(--nv-color-border-strong);
|
|
}
|
|
|
|
.activity__mark--danger { background-color: var(--nv-color-danger); }
|
|
.activity__mark--success { background-color: var(--nv-color-success); }
|
|
.activity__mark--accent { background-color: var(--nv-color-accent); }
|
|
.activity__mark--warning { background-color: var(--nv-color-warning); }
|
|
|
|
.service-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--nv-space-2-5);
|
|
}
|