1 @import 'mediawiki.mixins.animation';
2 @import 'mediawiki.ui/variables';
3 @import 'mw.rcfilters.mixins';
5 @rcfilters-spinner-width: 70px;
6 @rcfilters-head-min-height: 250px;
7 @rcfilters-wl-head-min-height: 320px;
9 // Corrections for the standard special page
15 // Reserve space for the UI while it loads
17 min-height: @rcfilters-head-min-height;
20 // On the watchlist, reserve a bit more
21 .mw-special-Watchlist .rcfilters-head {
22 min-height: @rcfilters-wl-head-min-height;
25 .mw-recentchanges-toplinks {
28 &:not( .mw-recentchanges-toplinks-collapsed ) {
30 border: 1px solid @colorGray12; // Same as the legend
31 padding: 0 0.5em 0.5em 0.5em;
35 body:not( .mw-rcfilters-ui-initialized ) {
36 .mw-recentchanges-toplinks.mw-recentchanges-toplinks-collapsed {
37 // Similar to the watchlist-details hack, we are going to make this float left
38 // while loading to prevent jumpiness in the min-height calculation
41 .mw-recentchanges-toplinks-content {
57 .rcfilters-container {
63 // Reserve space for the highlight circles
65 table.mw-enhanced-rc {
66 .result-circle-margin();
70 // Temporarily hide any 'empty' or 'timeout' message while we
72 .mw-changeslist-empty,
73 .mw-changeslist-timeout {
77 body.mw-rcfilters-ui-loading .mw-changeslist {
85 width: @rcfilters-spinner-width;
86 // Make sure the middle of the spinner is centered, rather than its left edge
87 margin-left: -@rcfilters-spinner-width/2;
92 & .rcfilters-spinner-bounce,
96 display: inline-block;
99 background-color: @colorGray12;
101 .animation( rcfiltersBouncedelay 1.5s ease-in-out -0.16s infinite both );
105 .animation-delay( -0.33s );
109 .animation-delay( 0s );
112 body:not( .mw-rcfilters-ui-initialized ) .rcfilters-spinner {
114 // When initializing, display the spinner on top of the area where the UI will appear
115 margin-top: -@rcfilters-head-min-height/2;
117 body.mw-rcfilters-ui-loading .rcfilters-spinner {
119 // When loading new results, display the spinner on top of the results area
124 form#mw-watchlist-resetbutton {
128 // Make the watchlist-details message display while loading, but make it not take up any
129 // space. This makes the min-height trick work better.
135 .mw-rcfilters-staticfilters-selected {
139 @-webkit-keyframes rcfiltersBouncedelay {
143 -webkit-transform: scale( 0.7 );
144 transform: scale( 0.7 );
147 background-color: @colorGray10;
148 -webkit-transform: scale( 1 );
149 transform: scale( 1 );
153 @-moz-keyframes rcfiltersBouncedelay {
157 -moz-transform: scale( 0.7 );
158 transform: scale( 0.7 );
161 background-color: @colorGray10;
162 -moz-transform: scale( 0.7 );
163 transform: scale( 1 );
167 @keyframes rcfiltersBouncedelay {
171 transform: scale( 0.7 );
174 background-color: @colorGray10;
175 transform: scale( 1 );