mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02: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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user