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
|
|
@ -20,15 +20,15 @@
|
|||
position: absolute;
|
||||
top: calc(100% + 0.25em);
|
||||
left: 0;
|
||||
z-index: 20;
|
||||
z-index: var(--z-popover);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 12em;
|
||||
padding: 0.25em;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.35);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-pop);
|
||||
}
|
||||
.ui-dropdown-item {
|
||||
display: flex;
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
min-height: 2.75em;
|
||||
padding: 0.4em 0.7em;
|
||||
border: none;
|
||||
border-radius: 0.35em;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue