Minor UI fixes
This commit is contained in:
1 parent
6410273cf8
commit
7a93594e69
34 files changed
+254
-117
No files matched your search
@@ -6,10 +6,11 @@
|
||||
Palette: cool signal-blue accent on a blue-grey neutral ground (was a
|
||||
warm teal/green), semantic status colors kept independent of the
|
||||
accent. Radius: a sharp 2/3/4/6px scale (was 6/10/16px + pill) — status
|
||||
badges are square tags, not pills. Typography: --font-display
|
||||
(IBM Plex Mono, already vendored) carries headings/nav/labels/table
|
||||
heads — an operations-console register — while --font-ui (Manrope)
|
||||
stays on body copy and form microcopy for readability at length.
|
||||
badges are square tags, not pills. Typography: --font-display and
|
||||
--font-mono are both JetBrains Mono — one unified operations-console
|
||||
monospace register for headings/nav/labels/table heads *and* raw data
|
||||
(addresses, counters) alike — while --font-ui (IBM Plex Sans) stays on
|
||||
body copy and form microcopy for readability at length.
|
||||
Both a light and a dark palette are defined. The bare :root (no
|
||||
data-theme attribute) follows the OS/browser color-scheme; the sidebar
|
||||
toggle (see layout.html) stamps documentElement with
|
||||
@@ -48,14 +49,13 @@
|
||||
--shadow-sm: 0 1px 2px rgba(12, 18, 30, .06), 0 1px 1px rgba(12, 18, 30, .05);
|
||||
--shadow-md: 0 10px 28px rgba(12, 18, 30, .16);
|
||||
|
||||
--font-ui: "Manrope", -apple-system, "Segoe UI", sans-serif;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
|
||||
/* Same physical face as --font-mono today (only Plex Mono is vendored)
|
||||
but a distinct token: it marks the "console chrome" role (headings,
|
||||
nav, labels, table heads) versus --font-mono's "raw data" role
|
||||
(addresses, counters), so the two can diverge later without a
|
||||
find-and-replace. */
|
||||
--font-display: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
|
||||
--font-ui: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
|
||||
--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
|
||||
/* Same value as --font-mono: kept as a distinct token because it marks
|
||||
a different semantic role (console chrome — headings, nav, labels,
|
||||
table heads — versus --font-mono's "raw data" role), so the two can
|
||||
diverge later without a find-and-replace. */
|
||||
--font-display: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
|
||||
|
||||
color-scheme: light;
|
||||
}
|
||||
@@ -136,18 +136,31 @@ body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
a { color: inherit; }
|
||||
::selection { background: var(--accent-soft); color: var(--text); }
|
||||
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* faint technical grid texture on the page ground, behind .shell */
|
||||
.bg-grid {
|
||||
position: fixed; inset: 0; z-index: 0; pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(var(--border-soft) 1px, transparent 1px),
|
||||
linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
opacity: .35;
|
||||
-webkit-mask-image: linear-gradient(to bottom, black, transparent 640px);
|
||||
mask-image: linear-gradient(to bottom, black, transparent 640px);
|
||||
}
|
||||
|
||||
h1, h2, h3 { text-wrap: balance; }
|
||||
h1 {
|
||||
font-family: var(--font-display);
|
||||
font-size: 19px; font-weight: 500; letter-spacing: -.005em;
|
||||
font-size: 19px; font-weight: 700; letter-spacing: -.005em;
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
h2.section-title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .07em;
|
||||
color: var(--text-muted);
|
||||
@@ -157,7 +170,7 @@ section:first-of-type h2.section-title,
|
||||
main > h2.section-title:first-child { margin-top: 0; }
|
||||
|
||||
/* ---------- shell layout ---------- */
|
||||
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
|
||||
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
|
||||
.sidebar {
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--border);
|
||||
@@ -179,7 +192,7 @@ main > h2.section-title:first-child { margin-top: 0; }
|
||||
.brand-mark svg { width: 15px; height: 15px; }
|
||||
.brand-name {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500; font-size: 13px; letter-spacing: -.005em; line-height: 1.2;
|
||||
font-weight: 700; font-size: 13px; letter-spacing: -.005em; line-height: 1.2;
|
||||
}
|
||||
.brand-name small { display: block; font-weight: 400; font-size: 10.5px; color: var(--text-faint); letter-spacing: .02em; }
|
||||
|
||||
@@ -192,7 +205,7 @@ nav.nav-groups { display: flex; flex-direction: column; gap: 1px; }
|
||||
text-decoration: none;
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
font-size: 12.5px;
|
||||
transition: background .12s ease, color .12s ease, border-color .12s ease;
|
||||
}
|
||||
@@ -219,7 +232,10 @@ nav.nav-groups { display: flex; flex-direction: column; gap: 1px; }
|
||||
background: var(--success);
|
||||
box-shadow: 0 0 0 3px var(--success-soft);
|
||||
flex-shrink: 0;
|
||||
animation: pulse 2.2s ease-in-out infinite;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
|
||||
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
|
||||
|
||||
.theme-toggle {
|
||||
display: grid; place-items: center;
|
||||
@@ -264,16 +280,18 @@ nav.nav-groups { display: flex; flex-direction: column; gap: 1px; }
|
||||
.stat-card { background: var(--surface); padding: 12px 14px; }
|
||||
.stat-card .value {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 22px; font-weight: 500;
|
||||
font-size: 22px; font-weight: 700;
|
||||
display: block;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.stat-card .label {
|
||||
font-family: var(--font-display);
|
||||
font-size: 10.5px; color: var(--text-muted); font-weight: 500;
|
||||
font-size: 10.5px; color: var(--text-muted); font-weight: 600;
|
||||
text-transform: uppercase; letter-spacing: .06em;
|
||||
}
|
||||
.stat-card.accented .value { color: var(--accent); }
|
||||
.stat-card.warn .value { color: var(--warning); }
|
||||
.stat-card.bad .value { color: var(--danger); }
|
||||
|
||||
/* ---------- panels ---------- */
|
||||
.panel {
|
||||
@@ -285,13 +303,20 @@ nav.nav-groups { display: flex; flex-direction: column; gap: 1px; }
|
||||
}
|
||||
.panel + .panel { margin-top: 14px; }
|
||||
.panel-body { padding: 16px 18px; }
|
||||
.panel-head {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
background: var(--surface-alt);
|
||||
}
|
||||
.panel-head h2 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
|
||||
|
||||
/* ---------- forms ---------- */
|
||||
.field-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
|
||||
.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 220px; }
|
||||
.field label {
|
||||
font-family: var(--font-display);
|
||||
font-size: 10.5px; font-weight: 500;
|
||||
font-size: 10.5px; font-weight: 700;
|
||||
text-transform: uppercase; letter-spacing: .05em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
@@ -318,7 +343,7 @@ input:focus, textarea:focus, select:focus {
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
font-size: 12.5px;
|
||||
padding: 8px 13px;
|
||||
border-radius: var(--radius-xs);
|
||||
@@ -348,7 +373,7 @@ thead th {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--text-faint);
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
padding: 9px 18px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--surface-alt);
|
||||
@@ -368,7 +393,7 @@ td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; colo
|
||||
border-radius: var(--radius-xs);
|
||||
font-family: var(--font-display);
|
||||
font-size: 10.5px;
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .02em;
|
||||
white-space: nowrap;
|
||||
@@ -401,6 +426,7 @@ td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; colo
|
||||
|
||||
.muted { color: var(--text-faint); font-size: 12px; }
|
||||
code.inline { font-family: var(--font-mono); background: var(--surface-alt); border: 1px solid var(--border-soft); padding: 1px 6px; border-radius: var(--radius-xs); font-size: 12px; }
|
||||
.section-note { padding: 14px 16px 4px; font-size: 12.5px; color: var(--text-muted); }
|
||||
|
||||
.inline-form { display: flex; gap: 6px; align-items: center; }
|
||||
.inline-form input, .inline-form textarea { margin: 0; }
|
||||
@@ -432,7 +458,7 @@ code.inline { font-family: var(--font-mono); background: var(--surface-alt); bor
|
||||
background: var(--surface);
|
||||
position: sticky; top: 0; z-index: 30;
|
||||
}
|
||||
.topbar-mobile strong { font-family: var(--font-display); font-weight: 500; font-size: 13px; }
|
||||
.topbar-mobile strong { font-family: var(--font-display); font-size: 13px; }
|
||||
label.burger {
|
||||
width: 32px; height: 32px; border-radius: var(--radius-xs);
|
||||
border: 1px solid var(--border);
|
||||
|
||||
Reference in new issue
Block a user