mediawiki-extensions-Popups/resources/ext.popups/styles/ext.popups.animation.less
Volker E eebf17ac3f Remove obsolete vendor prefixed properties and at-rules
Opera 12.10 supported unprefixed animations, gradients, transforms &
transitions. See http://www.opera.com/docs/changelogs/unified/1210/
Removing support for Opera 12.0x versions.

Change-Id: I3476db173433c430f654e12ea1f17d2721410b83
Depends-on: Ie8edbcd7f85c713ea2156706ea3a3a7b423d8d9d
2017-07-31 21:39:42 +02:00

123 lines
2.2 KiB
Plaintext

@import 'mediawiki.mixins.animation';
.mwe-popups-translate( @x, @y ) {
-webkit-transform: translate( @x, @y );
-moz-transform: translate( @x, @y );
-ms-transform: translate( @x, @y );
transform: translate( @x, @y );
}
/* FIXME: Use Phuedx's approach to make this cleaner
https://gist.github.com/phuedx/0639a279b6efb1a71474 */
@-webkit-keyframes mwe-popups-fade-in-up {
.mwe-popups-fade-in-up-frames;
}
@-moz-keyframes mwe-popups-fade-in-up {
.mwe-popups-fade-in-up-frames;
}
@keyframes mwe-popups-fade-in-up {
.mwe-popups-fade-in-up-frames;
}
@-webkit-keyframes mwe-popups-fade-in-down {
.mwe-popups-fade-in-down-frames;
}
@-moz-keyframes mwe-popups-fade-in-down {
.mwe-popups-fade-in-down-frames;
}
@keyframes mwe-popups-fade-in-down {
.mwe-popups-fade-in-down-frames;
}
@-webkit-keyframes mwe-popups-fade-out-down {
.mwe-popups-fade-out-down-frames;
}
@-moz-keyframes mwe-popups-fade-out-down {
.mwe-popups-fade-out-down-frames;
}
@keyframes mwe-popups-fade-out-down {
.mwe-popups-fade-out-down-frames;
}
@-webkit-keyframes mwe-popups-fade-out-up {
.mwe-popups-fade-out-up-frames;
}
@-moz-keyframes mwe-popups-fade-out-up {
.mwe-popups-fade-out-up-frames;
}
@keyframes mwe-popups-fade-out-up {
.mwe-popups-fade-out-up-frames;
}
.mwe-popups-fade-in-up-frames() {
0% {
opacity: 0;
.mwe-popups-translate( 0, 20px );
}
100% {
opacity: 1;
.mwe-popups-translate( 0, 0 );
}
}
.mwe-popups-fade-in-down-frames() {
0% {
opacity: 0;
.mwe-popups-translate( 0, -20px );
}
100% {
opacity: 1;
.mwe-popups-translate( 0, 0 );
}
}
.mwe-popups-fade-out-down-frames() {
0% {
opacity: 1;
.mwe-popups-translate( 0, 0 );
}
100% {
opacity: 0;
.mwe-popups-translate( 0, 20px );
}
}
.mwe-popups-fade-out-up-frames() {
0% {
opacity: 1;
.mwe-popups-translate( 0, 0 );
}
100% {
opacity: 0;
.mwe-popups-translate( 0, -20px );
}
}
.mwe-popups-fade-in-up {
.animation( mwe-popups-fade-in-up, 0.2s, ease, forwards );
}
.mwe-popups-fade-in-down {
.animation( mwe-popups-fade-in-down, 0.2s, ease, forwards );
}
.mwe-popups-fade-out-down {
.animation( mwe-popups-fade-out-down, 0.2s, ease, forwards );
}
.mwe-popups-fade-out-up {
.animation( mwe-popups-fade-out-up, 0.2s, ease, forwards );
}