style(webui): remove decorative ambient glow
This commit is contained in:
1 parent
3d4d630c0a
commit
5888791dc3
5 files changed
+4
-32
No files matched your search
+1
-1
@@ -58,7 +58,7 @@ Prompt navigation retains at most three server pages. Static ready Blocks appear
|
||||
|
||||
## Theme artwork and surface motion
|
||||
|
||||
The application theme remains the single owner for paired day/night artwork. The Sidebar keeps the original daytime mark and uses a sleeping-cap variant in dark mode; the Star invitation pairs matching day/night illustrations. Both layers reserve the same geometry. `.theme-art` blends opacity for System changes and browsers without native snapshots; a native root View Transition owns the whole-frame fade instead. Reduced motion switches artwork directly. Warm/cool decoration is limited to entry and empty states, not conversation reading surfaces.
|
||||
The application theme remains the single owner for paired day/night artwork. The Sidebar keeps the original daytime mark and uses a sleeping-cap variant in dark mode; the Star invitation pairs matching day/night illustrations. Both layers reserve the same geometry. `.theme-art` blends opacity for System changes and browsers without native snapshots; a native root View Transition owns the whole-frame fade instead. Reduced motion switches artwork directly. Entry and conversation surfaces keep their normal theme colors without decorative ambient glow.
|
||||
|
||||
Dropdowns and popovers use Radix's resolved transform origin and side, so motion stays attached to the trigger after collision handling. Radix owns their presence and focus. `SidebarPanel` retains its content until the slot and surface finish their actual exit animations, ignores descendant activity, and cancels teardown when reopened. Closing content is inert and hidden from assistive navigation; callers still own focus restoration. Disclosures keep their existing in-flow height transition and draft retention.
|
||||
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user