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:
parent
0876ff4de8
commit
c205c6115b
1 changed files with 143 additions and 109 deletions
|
|
@ -58,8 +58,8 @@
|
|||
background: var(--bg-elev);
|
||||
color: var(--fg);
|
||||
border: 1px solid var(--purple-dim);
|
||||
border-radius: 0.4em;
|
||||
box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.3);
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: var(--shadow-pop);
|
||||
font: inherit;
|
||||
}
|
||||
.ui-select-option {
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
gap: 0.75em;
|
||||
min-height: 2.5em;
|
||||
padding: 0.3em 0.6em;
|
||||
border-radius: 0.3em;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
.ui-select-option-active {
|
||||
|
|
|
|||
Loading…
Reference in a new issue