feat(webui): animated login background + three independent motion settings

Login page now has a mouse-reactive wavy-line background (ported a-waves +
embedded Perlin noise, themed to the accent, rendered behind the card which
sits on a 95%-opaque blurred surface so content stays readable). A "我觉得这个
界面很卡怎么办?" link opens a dialog that toggles it off — a device-local
preference (localStorage, works pre-auth, defaults off when the OS prefers
reduced motion), independent of the system motion settings.

Motion settings are now three:
- 关闭登录页的动效 — the login background toggle above (device-local).
- 减弱动效 (reduceMotion) — soft: transforms/springs off, durations
  collapsed, page/sidebar instant; gentle entrance fades remain.
- 关闭全部动效 (disableMotion, NEW appearance field) — everything reduce does
  plus data-no-motion CSS (kills pulse dots; spinners excluded so "busy"
  stays legible) and the entrance opacity fades gated off across
  overview/processes/logs/config lists.
This commit is contained in:
DrSmoothl committed 2026-06-14 00:41:18 +08:00
1 parent 9dd46198cb
commit 985dfd4705
12 files changed
+363 -33

No files matched your search

+24
View File
@@ -216,6 +216,17 @@ html[data-reduce-motion="1"] *::after {
scroll-behavior: auto !important;
}
/* 关闭全部动效: harder than reduce — remove CSS animations outright (e.g. the
pulsing status dots) rather than just collapsing their duration. Framer
entrance fades are gated in components on `disableMotion`. */
html[data-no-motion="1"] *:not(.animate-spin),
html[data-no-motion="1"] *::before,
html[data-no-motion="1"] *::after {
/* Exclude .animate-spin: loading spinners encode "busy", not decoration —
freezing them reads as a hang. Everything else (e.g. pulse dots) stops. */
animation: none !important;
}
/* ──────────────────────────────────────────────
Native scrollbars — themed to match. Radix ScrollArea hides its own
native bar and renders a custom thumb, so this only styles plain overflow
@@ -238,6 +249,19 @@ html {
}
::-webkit-scrollbar-corner { background: transparent; }
/* ──────────────────────────────────────────────
Login background — wavy SVG line field (see <LoginWaves>). Themed to the
accent so it reads as a subtle decorative backdrop behind the login card.
────────────────────────────────────────────── */
.login-waves {
color: color-mix(in oklab, var(--primary) 26%, transparent);
}
.login-waves path {
fill: none;
stroke: currentColor;
stroke-width: 1px;
}
/* ──────────────────────────────────────────────
Custom range slider (via the <Slider> component, class `.slider`).
The component sets `--slider-pct` for the WebKit filled track; Firefox