Watch
0
0
Fork
You've already forked hyperhive
0

frontend: one scale for z-index, corner radius and the floating-box shadow

z-index ran through eleven values (1 to 1100), border-radius through about
twenty and floating boxes had six different shadows, with no names, so each new
box picked its own. theme.css now defines --z-bar, --z-popover, --z-skip,
--z-modal, --z-toast, --radius-sm, --radius-md, --radius-pill and --shadow-pop,
and every stylesheet and the toast host use them. Corners and shadows move by
a pixel or two at most; the stacking order is unchanged. css-vars.md lists them.
This commit is contained in:
iris 2026-11-25 21:29:08 +01:00
commit c205c6115b
8 changed files with 143 additions and 109 deletions

View file

@ -13,7 +13,7 @@
gap: 0.35em;
padding: 0.7em 0.5em 0.6em;
border: 1px solid var(--border);
border-radius: 0.5em;
border-radius: var(--radius-md);
background: var(--bg);
cursor: pointer;
}

View file

@ -36,7 +36,7 @@
.create-agent-step-tab {
padding: 0.3em 0.7em;
border: 1px solid var(--border);
border-radius: 999px;
border-radius: var(--radius-pill);
background: var(--bg);
color: var(--muted);
font: inherit;

View file

@ -19,7 +19,7 @@
gap: 0.4em;
padding: 0.2em 0.6em;
border: 1px solid var(--border);
border-radius: 999px;
border-radius: var(--radius-pill);
background: var(--bg);
font-size: 0.9em;
}

View file

@ -2,7 +2,7 @@
.agents-selection-bar {
position: sticky;
bottom: 0.75em;
z-index: 5;
z-index: var(--z-bar);
display: flex;
flex-wrap: wrap;
align-items: center;
@ -10,7 +10,7 @@
margin-top: 0.75em;
padding: 0.6em 1em;
border: 1px solid var(--purple);
border-radius: 0.5em;
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--bg-elev) 92%, var(--purple));
box-shadow: 0 0.4em 1.2em color-mix(in srgb, var(--crust) 60%, transparent);
animation: agents-selection-bar-in 180ms ease;

View file

@ -15,7 +15,7 @@
.ui-broadcast-filter {
display: inline-flex;
border: 1px solid var(--border);
border-radius: 0.4em;
border-radius: var(--radius-sm);
overflow: hidden;
}
.ui-broadcast-filter button {

View file

@ -77,7 +77,7 @@
.notify-chip {
padding: 0.2em 0.7em;
border: 1.5px solid var(--border);
border-radius: 999px;
border-radius: var(--radius-pill);
background: var(--bg-elev);
color: var(--fg);
font: inherit;
@ -99,10 +99,10 @@
.notify-ghost {
position: fixed;
z-index: 10;
z-index: var(--z-popover);
padding: 0.2em 0.6em;
border: 1.5px solid var(--fg);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--bg-elev);
color: var(--fg);
pointer-events: none;
@ -122,7 +122,7 @@
user-select: none;
overflow: auto;
border: 1px solid var(--border);
border-radius: 6px;
border-radius: var(--radius-md);
background: var(--bg);
}
@ -226,7 +226,7 @@
margin: 0;
padding: 0.6em 0.8em 0.8em;
border: 1px solid var(--border);
border-radius: 6px;
border-radius: var(--radius-md);
}
.notify-inspector legend {
@ -259,7 +259,7 @@
margin-bottom: 0.5em;
padding: 0.4em 0.6em;
border: 1px solid var(--red);
border-radius: 6px;
border-radius: var(--radius-md);
}
.notify-name {

View file

@ -27,7 +27,7 @@
gap: 0.6em;
padding: 0.75em;
border: 1px solid var(--border);
border-radius: 0.5em;
border-radius: var(--radius-md);
}
.ui-tryout-classification-row {
align-items: end;

View file

@ -10,7 +10,7 @@
padding: 0.5em 0.75em;
border: 1px solid var(--yellow);
border-left-width: 4px;
border-radius: 0.4em;
border-radius: var(--radius-sm);
background: color-mix(in srgb, var(--yellow) 12%, transparent);
}
/* The egress card: the swarm-wide allowed domains, one per line. */
@ -45,5 +45,5 @@
padding: 0.4em 0.7em;
border: 1px solid var(--yellow);
border-left-width: 4px;
border-radius: 0.4em;
border-radius: var(--radius-sm);
}