style(webui): refine shared surface depth
Add theme-neutral media keylines and layered card shadows so avatars, previews, pickers, and shared cards remain separated without relying on hard borders. Keep the message composer radius hierarchy concentric across appearance settings and remove redundant nested canvas surfaces from forwarded-message editors. This changes visual presentation only; message composition behavior and emitted payloads remain unchanged.
This commit is contained in:
6 files changed
+60
-13
No files matched your search
@@ -59,6 +59,14 @@
|
||||
--sidebar-accent-foreground: oklch(35% 0.08 230);
|
||||
--sidebar-border: oklch(92% 0.01 240);
|
||||
--sidebar-ring: oklch(68.5% 0.155 230);
|
||||
--media-outline: oklch(0% 0 0 / 0.1);
|
||||
|
||||
/* Cards need depth without turning every surface into a hard outlined box.
|
||||
The short shadow separates the edge; the long, faint shadow establishes
|
||||
elevation without looking like a floating modal. */
|
||||
--shadow-card:
|
||||
0 1px 2px oklch(20% 0.03 250 / 0.05),
|
||||
0 12px 32px -22px oklch(20% 0.03 250 / 0.28);
|
||||
}
|
||||
|
||||
.dark {
|
||||
@@ -108,6 +116,12 @@
|
||||
--sidebar-accent-foreground: oklch(85% 0.1 230);
|
||||
--sidebar-border: oklch(26% 0.02 250);
|
||||
--sidebar-ring: oklch(75% 0.14 230);
|
||||
--media-outline: oklch(100% 0 0 / 0.12);
|
||||
|
||||
--shadow-card:
|
||||
0 1px 2px oklch(0% 0 0 / 0.36),
|
||||
0 16px 38px -24px oklch(0% 0 0 / 0.72),
|
||||
inset 0 1px oklch(100% 0 0 / 0.025);
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
@@ -193,6 +207,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* Shared media keyline: an inset outline remains visible on both pale and
|
||||
dark images without changing layout or shrinking the image content. */
|
||||
.media-outline {
|
||||
outline: 1px solid var(--media-outline);
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.ui-card {
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* ──────────────────────────────────────────────
|
||||
Customization layers (driven by ThemeContext via
|
||||
data-* attributes + CSS vars on <html>)
|
||||
|
||||
Reference in new issue
Block a user