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

View file

@ -5,7 +5,7 @@
the shape is a plain tinted block. */
.ui-skeleton {
display: block;
border-radius: 0.3em;
border-radius: var(--radius-sm);
background-color: color-mix(in srgb, var(--muted) 22%, transparent);
background-image: linear-gradient(
90deg,
@ -26,7 +26,7 @@
border-radius: 50%;
}
.ui-skeleton-block {
border-radius: 0.5em;
border-radius: var(--radius-md);
}
@keyframes ui-skeleton-shimmer {
to {
@ -80,7 +80,7 @@
box-sizing: border-box; /* as the button it stands in for */
min-height: 2.75em;
padding-inline: 0.8em;
border-radius: 999px;
border-radius: var(--radius-pill);
}
.ui-skeleton-badge .ui-skeleton {
display: inline-block;