mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
fix(frontend): give the bottom nav a wide, faint, theme-aware shadow
The bar's --r-elev-1 shadow was tight and dark enough to read as a grey rim on the light theme. It now uses a 24px blur offset 6px with a new themed --r-color-bar-shadow token: 8% black on light, 35% on dark, where a faint shadow would vanish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gd8SxSVBzdffah1Vz
This commit is contained in:
@@ -123,7 +123,7 @@ html[data-bp~="xs"] .r-bottom-nav {
|
||||
inset 0 1px 0 color-mix(in srgb, white 28%, transparent),
|
||||
inset 0 -1px 0 color-mix(in srgb, white 6%, transparent),
|
||||
inset 0 0 18px color-mix(in srgb, white 5%, transparent),
|
||||
var(--r-elev-1);
|
||||
0 6px 24px var(--r-color-bar-shadow);
|
||||
}
|
||||
|
||||
/* A translucent capsule, so the tinted icon + label carry the selection. */
|
||||
|
||||
@@ -227,6 +227,7 @@ html.r-app {
|
||||
);
|
||||
--r-color-switch-knob-on: light-dark(rgba(255, 255, 255, 0.95), #111117);
|
||||
--r-color-title-shadow: light-dark(transparent, rgba(0, 0, 0, 0.5));
|
||||
--r-color-bar-shadow: light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
|
||||
--r-color-success: light-dark(#15a34a, #4ade80);
|
||||
--r-color-warning: light-dark(#ca8a04, #fbbf24);
|
||||
--r-color-danger: light-dark(#dc2626, #ff5050);
|
||||
|
||||
@@ -167,6 +167,9 @@ export const colorDark = {
|
||||
// background art. Light theme drops it (transparent): a dark blurred halo
|
||||
// under dark-on-light text just smudges.
|
||||
titleShadow: "rgba(0, 0, 0, 0.5)",
|
||||
// Floating-bar drop shadow: wide and faint, so the bar lifts without a
|
||||
// dark edge. Dark needs more to read at all.
|
||||
barShadow: "rgba(0, 0, 0, 0.35)",
|
||||
} as const;
|
||||
|
||||
export const colorLight = {
|
||||
@@ -215,6 +218,7 @@ export const colorLight = {
|
||||
// Detail-page title shadow: none on light (a dark blurred halo under the
|
||||
// dark-on-light title just smudges; the calm light backdrop needs no lift).
|
||||
titleShadow: "transparent",
|
||||
barShadow: "rgba(0, 0, 0, 0.08)",
|
||||
} as const;
|
||||
|
||||
// Cover-overlay surfaces: fixed dark glass values that never theme-flip.
|
||||
|
||||
Reference in New Issue
Block a user