mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Work around a Safari bug causing shadows to remain when the popup is removed
Bug: T297266 Change-Id: Id6c4c140d8e49ad995dbabeb95ef0e41aabba024
This commit is contained in:
parent
69ba8582a9
commit
4242b848d8
|
@ -223,12 +223,18 @@ span[ data-mw-comment-start ] {
|
|||
.oo-ui-popupWidget& {
|
||||
// Animations
|
||||
opacity: 0;
|
||||
transform: translate( 0, -20px );
|
||||
// Support: Safari
|
||||
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
|
||||
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
|
||||
transform: translate3d( 0, -20px, 0 );
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
|
||||
&-fadein {
|
||||
opacity: 1;
|
||||
transform: translate( 0, 0 );
|
||||
// Support: Safari
|
||||
// 3D transform is needed to work around a Safari bug, which causes shadows to remain when the
|
||||
// popup is removed (T297266, T226872). Otherwise this should just use 2D translate().
|
||||
transform: translate3d( 0, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue