Skip to content

Commit dd8b336

Browse files
committed
fix(dialog): fix positioning, remove animation
1 parent c91056b commit dd8b336

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/assets/global.scss

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,8 @@ label:has([type="checkbox"]) {
242242
}
243243
}
244244
}
245-
@keyframes fade-in {
246-
from {
247-
opacity: 0;
248-
transform: translateY(-15%);
249-
}
250-
to {
251-
opacity: 1;
252-
transform: translateY(0%);
253-
}
254-
}
255245
dialog {
256-
position: fixed;
246+
left: 50%;
257247
width: 100%;
258248
max-width: 25rem;
259249
max-height: 85dvh;
@@ -262,11 +252,12 @@ dialog {
262252
background-color: var(--background);
263253
border: 1px solid var(--base-dimmed);
264254
border-radius: 0.25rem;
255+
transform: translateX(-50%);
265256
&::backdrop {
266257
background-color: rgba(0 0 0 / 35%)
267258
}
268-
&[open] {
269-
animation: fade-in .3s ease;
259+
&:not([open]) {
260+
pointer-events: none;
270261
}
271262
&.invalid {
272263
border-color: var(--negative);

0 commit comments

Comments
 (0)