mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-20 12:31:27 -03:00
fix(ui): unify modal backdrop blur across all modals
This commit is contained in:
@@ -1,10 +1,3 @@
|
|||||||
/* Blurred backdrop for the model modal to match the recipe modal */
|
|
||||||
#modelModal {
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
backdrop-filter: blur(6px);
|
|
||||||
-webkit-backdrop-filter: blur(6px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lora Modal Header */
|
/* Lora Modal Header */
|
||||||
.modal-header {
|
.modal-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - var(--header-height, 48px)); /* Adjust height to exclude header */
|
height: calc(100% - var(--header-height, 48px)); /* Adjust height to exclude header */
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: var(--modal-backdrop-bg, rgba(0, 0, 0, 0.5));
|
||||||
|
backdrop-filter: blur(var(--modal-backdrop-blur, 6px));
|
||||||
|
-webkit-backdrop-filter: blur(var(--modal-backdrop-blur, 6px));
|
||||||
z-index: var(--z-modal);
|
z-index: var(--z-modal);
|
||||||
overflow: auto; /* Change from hidden to auto to allow scrolling */
|
overflow: auto; /* Change from hidden to auto to allow scrolling */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,10 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
/* Darker than --modal-backdrop-bg to stress destructive actions, but keeps the shared blur */
|
||||||
background: rgba(0, 0, 0, 0.8);
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
backdrop-filter: blur(var(--modal-backdrop-blur, 6px));
|
||||||
|
-webkit-backdrop-filter: blur(var(--modal-backdrop-blur, 6px));
|
||||||
z-index: var(--z-overlay);
|
z-index: var(--z-overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,13 +104,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Darker, blurred backdrop keeps the busy page behind the modal from bleeding through */
|
|
||||||
#recipeModal {
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
backdrop-filter: blur(6px);
|
|
||||||
-webkit-backdrop-filter: blur(6px);
|
|
||||||
}
|
|
||||||
|
|
||||||
#recipeModal .modal-content {
|
#recipeModal .modal-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
--shadow-dialog: 0 10px 24px rgba(0, 0, 0, 0.25);
|
--shadow-dialog: 0 10px 24px rgba(0, 0, 0, 0.25);
|
||||||
--shadow-inset-top: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
--shadow-inset-top: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
--modal-backdrop-bg: rgba(0, 0, 0, 0.5);
|
||||||
|
--modal-backdrop-blur: 6px;
|
||||||
|
|
||||||
--transition-fast: 150ms ease;
|
--transition-fast: 150ms ease;
|
||||||
--transition-base: 200ms ease;
|
--transition-base: 200ms ease;
|
||||||
--transition-slow: 300ms ease;
|
--transition-slow: 300ms ease;
|
||||||
|
|||||||
Reference in New Issue
Block a user