Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: the agent terminal's message box is frosted glass

This commit is contained in:
iris 2026-11-16 23:43:08 +01:00 • committed by mara
commit 8cb7f3b6e1
2 changed files with 30 additions and 2 deletions

View file

@ -18,3 +18,8 @@ html:root[data-solid="true"] .terminal-wrap {
-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;
}

View file

@ -24,11 +24,34 @@
padding: 0.25em 0.25em 0.25em 1.1em;
border: 1px solid var(--purple-dim);
border-radius: 999px;
background: var(--bg-elev);
/* Frosted glass, the recipe of the badges (`Badge.css`): translucent over a
blur, so the rows scroll behind it. Dark only, as there: on a light page
the busy content behind would wash the text out, so light keeps the solid
fill. */
background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
-webkit-backdrop-filter: blur(10px) saturate(140%);
backdrop-filter: blur(10px) saturate(140%);
box-shadow:
0 0.3em 1em rgba(0, 0, 0, 0.45),
0 0 0 1px color-mix(in srgb, var(--purple) 12%, transparent);
}
@media (prefers-color-scheme: light) {
.ui-agent-input-form {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}
:root[data-theme="light"] .ui-agent-input-form {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
:root[data-theme="dark"] .ui-agent-input-form {
background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
-webkit-backdrop-filter: blur(10px) saturate(140%);
backdrop-filter: blur(10px) saturate(140%);
}
.ui-agent-input-form:focus-within {
border-color: var(--purple);
box-shadow: