frontend: one glass token pair in place of three copied light and dark blocks
Headers, badges, terminal panes, the message box and the dashboard's bars read --glass-clear and --glass-filter from theme.css; the light palette (colors.css) and the solid-backgrounds setting set them. Each surface keeps a single rule, the per-theme override blocks and the quiet-badge specificity workaround go, and the dashboard and agent page now follow the light palette like the swarm UI.
This commit is contained in:
parent
2a719a52e8
commit
1ca82b3e09
1 changed files with 93 additions and 122 deletions
|
|
@ -1,25 +1,9 @@
|
|||
/* The frosted surfaces, made opaque while `data-solid="true"` is on `<html>`
|
||||
(`solid-backgrounds.tsx`). Each rule names the same surface as the rule that
|
||||
makes it see-through, with `html:root` in front so it outranks that rule's
|
||||
theme variants whatever order the stylesheets load in. The dialog scrim is
|
||||
left alone: it dims the page on purpose. */
|
||||
html:root[data-solid="true"] .shell-header {
|
||||
background: var(--bg-elev);
|
||||
-webkit-backdrop-filter: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
html:root[data-solid="true"] .ui-badge:not(.ui-badge-quiet) {
|
||||
background: var(--purple-dim);
|
||||
-webkit-backdrop-filter: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
html:root[data-solid="true"] .terminal-wrap {
|
||||
background: var(--code-bg);
|
||||
-webkit-backdrop-filter: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
html:root[data-solid="true"] .ui-agent-input-form {
|
||||
background: var(--bg-elev);
|
||||
-webkit-backdrop-filter: none;
|
||||
backdrop-filter: none;
|
||||
(`solid-backgrounds.tsx`): the two glass tokens of `theme.css` go to solid,
|
||||
and every glass surface follows. `html:root` outranks theme.css's `:root`
|
||||
whatever order the stylesheets load in. The dialog scrim is left alone: it
|
||||
dims the page on purpose. */
|
||||
html:root[data-solid="true"] {
|
||||
--glass-clear: 0;
|
||||
--glass-filter: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue