mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
a4df17a922
Change-Id: I1db434584d6927cf0322fdbd6253ebb1846537c0
121 lines
2.2 KiB
Plaintext
121 lines
2.2 KiB
Plaintext
@media print {
|
|
.mw-revslider-container {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.mw-revslider-container {
|
|
/* This will flip with CSSJanus in case */
|
|
/* the interface is in RTL */
|
|
direction: ltr;
|
|
position: relative;
|
|
border: 1px solid #c8ccd1;
|
|
|
|
.mw-revslider-toggle-button.oo-ui-buttonElement-frameless.oo-ui-labelElement {
|
|
width: 100%;
|
|
text-align: center;
|
|
/* Overrule OOUI frameless button `margin` */
|
|
margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.mw-revslider-toggle-button {
|
|
.oo-ui-buttonElement-button {
|
|
width: 100%;
|
|
}
|
|
|
|
.oo-ui-iconElement-icon {
|
|
/* Overrule OOUI iconElement `left` */
|
|
left: auto !important; /* stylelint-disable-line declaration-no-important */
|
|
right: 0.28571429em;
|
|
/* For OOUI-Apex */
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.mw-revslider-slider-wrapper {
|
|
min-height: 142px;
|
|
border-top: 1px solid #c8ccd1;
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
/* Loading spinner code borrowed from
|
|
https://codepen.io/Volker_E/pen/yqNXMe */
|
|
.mw-revslider-spinner {
|
|
white-space: nowrap;
|
|
display: block;
|
|
max-width: 56px;
|
|
margin: 60px auto;
|
|
|
|
.mw-revslider-bounce,
|
|
&:before,
|
|
&:after {
|
|
content: '';
|
|
background-color: #72777d;
|
|
display: block;
|
|
float: left;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 100%;
|
|
-webkit-animation: bouncedelay 1600ms infinite ease-in-out both;
|
|
animation: bouncedelay 1600ms infinite ease-in-out both;
|
|
-webkit-animation-delay: -160ms;
|
|
animation-delay: -160ms;
|
|
}
|
|
|
|
&:before {
|
|
margin-right: 4px;
|
|
-webkit-animation-delay: -330ms;
|
|
animation-delay: -330ms;
|
|
}
|
|
|
|
&:after {
|
|
margin-left: 4px;
|
|
-webkit-animation-delay: 0s;
|
|
animation-delay: 0s;
|
|
}
|
|
}
|
|
|
|
/* Loading spinner animations */
|
|
@-webkit-keyframes bouncedelay {
|
|
0%,
|
|
50%, /* equals 800ms */
|
|
100% {
|
|
-webkit-transform: scale( 0.625 );
|
|
}
|
|
|
|
20% { /* equals 320ms */
|
|
opacity: 0.87;
|
|
-webkit-transform: scale( 1 );
|
|
}
|
|
}
|
|
|
|
@-moz-keyframes bouncedelay {
|
|
0%,
|
|
50%, /* equals 800ms */
|
|
100% {
|
|
-moz-transform: scale( 0.625 );
|
|
}
|
|
|
|
20% { /* equals 320ms */
|
|
opacity: 0.87;
|
|
-moz-transform: scale( 1 );
|
|
}
|
|
}
|
|
|
|
@keyframes bouncedelay {
|
|
0%,
|
|
50%, /* equals 800ms */
|
|
100% {
|
|
-ms-transform: scale( 0.625 );
|
|
transform: scale( 0.625 );
|
|
}
|
|
|
|
20% { /* equals 320ms */
|
|
opacity: 0.87;
|
|
-ms-transform: scale( 1 );
|
|
transform: scale( 1 );
|
|
}
|
|
}
|