mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/DialogHolder: fix dialog animation jumping on new safari versions
WebKit/WebKit@ce08f32453 breaks this animation on newer versions of safari. why? i guess we'll never know
This commit is contained in:
parent
a21c9e7632
commit
d7d707e666
1 changed files with 9 additions and 8 deletions
|
@ -57,12 +57,6 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 535px) {
|
||||
:global(dialog) {
|
||||
justify-content: end;
|
||||
}
|
||||
}
|
||||
|
||||
#dialog-holder {
|
||||
position: absolute;
|
||||
padding-top: env(safe-area-inset-bottom);
|
||||
|
@ -130,6 +124,10 @@
|
|||
}
|
||||
|
||||
@media screen and (max-width: 535px) {
|
||||
:global(dialog) {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
:global(dialog.open .dialog-body) {
|
||||
animation: modal-in-mobile 0.4s;
|
||||
}
|
||||
|
@ -170,10 +168,13 @@
|
|||
}
|
||||
|
||||
@keyframes modal-in-mobile {
|
||||
from {
|
||||
transform: translateY(200px);
|
||||
0% {
|
||||
transform: translateY(0);
|
||||
opacity: 0;
|
||||
}
|
||||
1% {
|
||||
transform: translateY(200px);
|
||||
}
|
||||
30% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue