mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 01:48:28 +00:00
web/DialogHolder: fix bottom margin on mobile during the close animation
This commit is contained in:
parent
59f5560802
commit
6072fbac5c
@ -120,21 +120,24 @@
|
|||||||
will-change: transform;
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.open .dialog-body) {
|
:global(dialog.open .dialog-body) {
|
||||||
animation: modal-in 0.35s;
|
animation: modal-in 0.35s;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.closing .dialog-body) {
|
:global(dialog.closing .dialog-body) {
|
||||||
animation: modal-out 0.15s;
|
animation: modal-out 0.15s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 535px) {
|
@media screen and (max-width: 535px) {
|
||||||
:global(.open .dialog-body) {
|
:global(dialog.open .dialog-body) {
|
||||||
animation: modal-in-mobile 0.4s;
|
animation: modal-in-mobile 0.4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(dialog .dialog-body) {
|
||||||
margin-bottom: calc(
|
margin-bottom: calc(
|
||||||
var(--padding) / 2 + env(safe-area-inset-bottom)
|
var(--padding) / 2 + env(safe-area-inset-bottom)
|
||||||
);
|
) !important;
|
||||||
box-shadow: 0 0 0 2px var(--popup-stroke) inset;
|
box-shadow: 0 0 0 2px var(--popup-stroke) inset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user