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
@@ -20,12 +20,12 @@
.editPrompt {
position: fixed;
z-index: 1;
z-index: $zindex-dialog;
left: 50%;
transform: translate(-50%, 0);
text-align: center;
background: rgba(0,0,0, 0.7);
background: $backdrop-color;
border-radius: 2px;
padding: 0.5em 2em;
color: $orange-500;
@@ -3,7 +3,7 @@
top: 10%;
left: 50%;
z-index: 2;
z-index: $zindex-dialog;
transform: translateX(-50%);
padding-inline: 1rem;
@@ -45,9 +45,6 @@
padding-block: 1rem;
display: flex;
align-items: center;
justify-content: end;
gap: 1rem;
button {
width: 100%;
}
}
@@ -4,7 +4,7 @@
bottom: calc(1.5rem + env(safe-area-inset-bottom));
left: 50%;
transform: translateX(-50%);
z-index: 1;
z-index: $zindex-floating;
display: flex;
align-items: center;
@@ -2,7 +2,7 @@
position: sticky;
top: 0;
width: 100%;
z-index: 2;
z-index: $zindex-floating;
background-color: $gray-1350;
border-bottom: 1px solid $white-10;