This commit is contained in:
Felix Klement committed 2026-10-02 21:33:40 +02:00
1 parent 49850fe485
commit 39bb0f480c
10 files changed
+248 -117

No files matched your search

+49
View File
@@ -18,6 +18,24 @@
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Self-hosted JetBrains Mono, variable, latin + latin-ext. Menu bar only. */
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
@@ -92,6 +110,37 @@ p { overflow-wrap: break-word; }
font-weight: var(--weight-regular);
}
/* HUD frame: a 1px border with a small plus-shaped cross centred on each outer corner.
.hud-frame draws border and crosses; .hud-corners draws only the crosses, for an element whose
edges already sit on lines (the current menu item). Both read --line, --arm and --frame-color,
so a parent can retune them. Note: --line is redefined here as a width, not the colour token. */
.hud-frame,
.hud-corners {
--line: var(--hud-line-width);
--arm: var(--hud-arm);
--frame-color: var(--hud-line);
position: relative;
}
.hud-frame { border: var(--line) solid var(--frame-color); }
.hud-frame::after,
.hud-corners::after {
content: '';
position: absolute;
inset: calc(-1 * (var(--arm) + var(--line)));
pointer-events: none;
--len: calc(2 * var(--arm) + var(--line));
--g: linear-gradient(var(--frame-color), var(--frame-color)) no-repeat;
background:
var(--g) left 0 top var(--arm) / var(--len) var(--line),
var(--g) left var(--arm) top 0 / var(--line) var(--len),
var(--g) right 0 top var(--arm) / var(--len) var(--line),
var(--g) right var(--arm) top 0 / var(--line) var(--len),
var(--g) left 0 bottom var(--arm) / var(--len) var(--line),
var(--g) left var(--arm) bottom 0 / var(--line) var(--len),
var(--g) right 0 bottom var(--arm) / var(--len) var(--line),
var(--g) right var(--arm) bottom 0 / var(--line) var(--len);
}
/* Primitives */
.container {
width: 100%;
+19
View File
@@ -25,6 +25,8 @@
/* Type */
--font-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
/* Menu bar only: the tactical HUD labels. */
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
--step-display: clamp(2.75rem, 1.2rem + 6.2vw, 7rem);
--step-h2: clamp(1.9rem, 1.1rem + 2.6vw, 3.25rem);
@@ -33,6 +35,7 @@
--step-title: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
--step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
--step-small: 0.875rem;
--step-micro: 0.75rem;
--weight-regular: 400;
--weight-medium: 500;
@@ -40,6 +43,7 @@
--track-display: -0.03em;
--track-h2: -0.02em;
--track-h3: -0.01em;
--track-caps: 0.08em;
--leading-display: 1.02;
--leading-h2: 1.08;
@@ -81,6 +85,21 @@
/* Chrome */
--header-height: 4.5rem;
/* HUD frame (menu bar): one line width and colour for every line, borders and crosses alike. */
--hud-line-width: 1px;
--hud-arm: 7px;
--hud-line: rgb(26 26 24 / 0.3);
--hud-line-on-night: rgb(233 229 223 / 0.3);
/* Frosted glass behind the bar. One blur, kept small so it stays cheap to composite. */
--glass: rgb(233 229 223 / 0.76);
--glass-on-night: rgb(14 16 15 / 0.56);
--glass-solid: rgb(233 229 223 / 0.96);
--glass-solid-on-night: rgb(14 16 15 / 0.94);
--glass-blur: 14px;
/* Tints mixed from the text colour, so they work on either tone. */
--tint-hover: 6%;
--tint-active: 9%;
/* Focus */
--focus-width: 2px;
--focus-offset: 3px;