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
|
|
@ -40,7 +40,7 @@ body.screen-shell {
|
|||
background: var(--border);
|
||||
color: var(--subtext0);
|
||||
border: 1px solid var(--purple-dim);
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
.tbtn.active {
|
||||
|
|
@ -78,7 +78,7 @@ body.screen-shell {
|
|||
font-size: 0.72rem;
|
||||
font-family: ui-monospace, monospace;
|
||||
padding: 0.4rem 0.6rem;
|
||||
z-index: 100;
|
||||
z-index: var(--z-popover);
|
||||
display: none; /* toggled by the debug button */
|
||||
}
|
||||
#debug-log .dbg-line {
|
||||
|
|
@ -131,7 +131,7 @@ body.screen-shell {
|
|||
transform: translateX(-50%);
|
||||
background: var(--border);
|
||||
color: var(--yellow);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--radius-md);
|
||||
padding: 0.4rem 0.9rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue