style(webui): remove decorative ambient glow

This commit is contained in:
Xubin Ren committed 2026-11-07 23:19:32 +08:00
1 parent 3d4d630c0a
commit 5888791dc3
5 files changed
+4 -32

No files matched your search

+1 -1
View File
@@ -407,7 +407,7 @@ function AuthForm({
aria-labelledby="webui-auth-title"
className="w-full max-w-xs"
>
<div className="brand-atmosphere text-center">
<div className="text-center">
<img
src="/brand/nanobot_mark.svg"
alt=""
@@ -10,7 +10,7 @@ export function AboutSettingsLayout({ versionCheck, links, starLink }: {
starLink: ReactNode;
}) {
return <div className="flex flex-1 flex-col gap-5">
<div className="brand-atmosphere flex flex-col items-center gap-3 py-6 text-center">
<div className="flex flex-col items-center gap-3 py-6 text-center">
<img src="/brand/nanobot_mark.svg" alt="" className="h-16 w-16 select-none" draggable={false} />
<h1><img src="/brand/nanobot_wordmark.svg" alt="nanobot" width={800} height={164} className="h-auto w-40 select-none dark:brightness-150" draggable={false} /></h1>
</div>
+1 -1
View File
@@ -1471,7 +1471,7 @@ export function ThreadShell({
const emptyState = initialHistoryLoading ? (
<ThreadLoadingSkeleton />
) : (
<div className="brand-atmosphere brand-atmosphere-welcome flex w-full flex-col items-center text-center animate-in fade-in-0 slide-in-from-bottom-2 [animation-duration:220ms] motion-reduce:animate-none">
<div className="flex w-full flex-col items-center text-center animate-in fade-in-0 slide-in-from-bottom-2 [animation-duration:220ms] motion-reduce:animate-none">
<HeroGreeting text={t(heroGreetingKey)} />
</div>
);
-28
View File
@@ -144,7 +144,6 @@
--sidebar-border: 40 8% 90.5%;
--settings-canvas: var(--background);
--settings-surface: 60 6% 96.7%;
--brand-ambient: 36 96% 78%;
--automation-view-track: hsl(0 0% 91%);
--scrollbar-thumb: hsl(var(--muted-foreground) / 0.26);
--scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.42);
@@ -217,39 +216,12 @@
--sidebar-border: var(--border);
--settings-canvas: var(--background);
--settings-surface: var(--card);
--brand-ambient: 219 58% 58%;
--automation-view-track: hsl(var(--muted) / 0.65);
--scrollbar-thumb: hsl(var(--muted-foreground) / 0.28);
--scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.44);
}
}
/* Decoration belongs to entry/empty states, never to conversation reading surfaces. */
.brand-atmosphere {
position: relative;
isolation: isolate;
}
.brand-atmosphere::before {
content: "";
position: absolute;
z-index: -1;
pointer-events: none;
top: -72px;
left: 50%;
width: min(420px, 100%);
height: 240px;
transform: translateX(-50%);
background: radial-gradient(ellipse at center, hsl(var(--brand-ambient) / 0.22), transparent 68%);
}
.brand-atmosphere-welcome::before {
top: -100px;
width: min(620px, 100%);
height: 250px;
opacity: 0.65;
}
@layer base {
* {
@apply border-border;