2014-06-03 06:26:00 +00:00
|
|
|
@import "mediawiki.mixins.animation";
|
|
|
|
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( @x, @y ) {
|
|
|
|
-webkit-transform: translate( @x, @y );
|
|
|
|
-moz-transform: translate( @x, @y );
|
|
|
|
-ms-transform: translate( @x, @y );
|
|
|
|
-o-transform: translate( @x, @y );
|
|
|
|
transform: translate( @x, @y );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
/* FIXME: Use Phuedx's approach to make this cleaner
|
|
|
|
https://gist.github.com/phuedx/0639a279b6efb1a71474 */
|
2014-05-27 11:28:10 +00:00
|
|
|
@-webkit-keyframes mwe-popups-fade-in-up {
|
|
|
|
.mwe-popups-fade-in-up-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@-moz-keyframes mwe-popups-fade-in-up {
|
|
|
|
.mwe-popups-fade-in-up-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@-o-keyframes mwe-popups-fade-in-up {
|
|
|
|
.mwe-popups-fade-in-up-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@keyframes mwe-popups-fade-in-up {
|
|
|
|
.mwe-popups-fade-in-up-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
@-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;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes mwe-popups-fade-in-down {
|
|
|
|
.mwe-popups-fade-in-down-frames;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mwe-popups-fade-in-down {
|
|
|
|
.mwe-popups-fade-in-down-frames;
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@-webkit-keyframes mwe-popups-fade-out-down {
|
|
|
|
.mwe-popups-fade-out-down-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@-moz-keyframes mwe-popups-fade-out-down {
|
|
|
|
.mwe-popups-fade-out-down-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@-o-keyframes mwe-popups-fade-out-down {
|
|
|
|
.mwe-popups-fade-out-down-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
@keyframes mwe-popups-fade-out-down {
|
|
|
|
.mwe-popups-fade-out-down-frames;
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
@-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;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes mwe-popups-fade-out-up {
|
|
|
|
.mwe-popups-fade-out-up-frames;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mwe-popups-fade-out-up {
|
|
|
|
.mwe-popups-fade-out-up-frames;
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
.mwe-popups-fade-in-up-frames() {
|
2014-02-06 11:11:29 +00:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 20px );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 0 );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
.mwe-popups-fade-in-down-frames() {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, -20px );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 0 );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
.mwe-popups-fade-out-down-frames() {
|
2014-02-06 11:11:29 +00:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 0 );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 20px );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
.mwe-popups-fade-out-up-frames() {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, 0 );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
2016-12-16 11:11:54 +00:00
|
|
|
.mwe-popups-translate( 0, -20px );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
.mwe-popups-fade-in-up {
|
2016-12-16 11:11:54 +00:00
|
|
|
.animation( mwe-popups-fade-in-up, 0.2s, ease, forwards );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:42:47 +00:00
|
|
|
.mwe-popups-fade-in-down {
|
2016-12-16 11:11:54 +00:00
|
|
|
.animation( mwe-popups-fade-in-down, 0.2s, ease, forwards );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|
|
|
|
|
2014-05-27 11:28:10 +00:00
|
|
|
.mwe-popups-fade-out-down {
|
2016-12-16 11:11:54 +00:00
|
|
|
.animation( mwe-popups-fade-out-down, 0.2s, ease, forwards );
|
2014-02-06 11:11:29 +00:00
|
|
|
}
|
2014-05-27 11:42:47 +00:00
|
|
|
|
|
|
|
.mwe-popups-fade-out-up {
|
2016-12-16 11:11:54 +00:00
|
|
|
.animation( mwe-popups-fade-out-up, 0.2s, ease, forwards );
|
2014-05-27 11:42:47 +00:00
|
|
|
}
|