refactor: reusable dialog management

This commit is contained in:
Carlos Valente
2025-06-22 11:23:45 +02:00
committed by Carlos Valente
parent e0f2830072
commit 3f3cef7d6f
15 changed files with 35 additions and 33 deletions
+6 -10
View File
@@ -25,15 +25,14 @@
.blackout {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
inset: 0;
z-index: 0;
background-color: #000;
z-index: 2;
opacity: 0;
transition: opacity $viewer-transition-time;
&--active {
z-index: calc($zindex-floating + 1);
opacity: 1;
}
}
@@ -169,17 +168,14 @@
.message-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
inset: 0;
padding: 2vw;
background: var(--background-color-override, $viewer-background-color);
opacity: 0;
transition: opacity $viewer-transition-time;
z-index: 2;
&--active {
z-index: $zindex-floating;
opacity: 1;
}
}