mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-10-10 19:42:13 -03:00
fix(theme): use opaque surface tokens for modals and sticky layers
The elevated surface tokens (--bg-elevated / --surface-elevated) are translucent, so sticky modal footers and table headers double-composited over the modal surface and showed a visible lighter seam in light themes. Add derived opaque tokens (--bg-elevated-solid / --surface-elevated-solid, aliased as --lora-surface-solid) and use them for .modal-content, the download/import modal sticky action footers, and the refresh result table's sticky header, so the modal surface and its sticky layers always share one opaque color across every theme and preset.
This commit is contained in:
@@ -82,6 +82,17 @@
|
||||
--favorite-glow: oklch(65% 0.15 85 / 0.5);
|
||||
}
|
||||
|
||||
/* Opaque variants of the elevated surfaces. The elevated tokens are
|
||||
translucent; a layer stacked on top of an elevated surface (sticky modal
|
||||
footers, sticky table headers) must use the solid variant, otherwise the
|
||||
translucent layer double-composites over the surface and shows as a
|
||||
visible seam in light themes. Derived here so every theme/preset override
|
||||
of the source tokens is picked up automatically. */
|
||||
:root {
|
||||
--bg-elevated-solid: oklch(from var(--bg-elevated) l c h / 1);
|
||||
--surface-elevated-solid: oklch(from var(--surface-elevated) l c h / 1);
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--bg-base: #1a1a1a;
|
||||
--bg-elevated: oklch(25% 0.02 256 / 0.98);
|
||||
|
||||
Reference in New Issue
Block a user