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
@@ -15,7 +15,7 @@
display: grid;
place-content: center;
text-align: center;
z-index: 100;
z-index: $zindex-modal;
cursor: pointer;
}
@@ -11,8 +11,8 @@
.backdrop {
position: fixed;
inset: 0;
z-index: 10;
background-color: rgba(0, 0, 0, 0.7);
z-index: $zindex-backdrop;
background-color: $backdrop-color;
transition: opacity 300ms cubic-bezier(0.45, 1.005, 0, 1.005);
&[data-starting-style],
@@ -27,7 +27,7 @@
top: 0;
right: 0;
bottom: 0;
z-index: 11;
z-index: $zindex-dialog;
width: 40rem;
height: 100vh;
@@ -70,7 +70,7 @@
.body {
flex: 1;
padding-bottom: 10vh;
overflow-y: scroll;
overflow-y: auto;
}
.footer {