1 @import 'mediawiki.mixins.animation';
2 @import 'mediawiki.ui/variables';
3 @import 'mw.rcfilters.mixins';
5 @rcfilters-spinner-size: 12px;
6 @rcfilters-head-min-height: 210px;
7 @rcfilters-head-margin-bottom: 20px;
8 @rcfilters-wl-head-min-height: 300px;
10 // Corrections for the standard special page
16 // Reserve space for the UI while it loads
18 min-height: @rcfilters-head-min-height;
19 margin-bottom: @rcfilters-head-margin-bottom;
22 // On the watchlist, reserve a bit more
23 .mw-special-Watchlist .rcfilters-head {
24 min-height: @rcfilters-wl-head-min-height;
27 .mw-recentchanges-toplinks {
30 &:not( .mw-recentchanges-toplinks-collapsed ) {
31 margin-top: -1px; // Make up for `border` to prevent link movement
34 border: 1px solid @colorGray12; // Same as the legend
35 padding: 0 0.5em 0.5em 0.5em;
38 /* stylelint-disable declaration-no-important */
39 .oo-ui-buttonElement > .oo-ui-buttonElement-button {
40 padding-right: 1.2em !important;
42 > .oo-ui-indicatorElement-indicator {
44 width: 0.9375em !important;
47 /* stylelint-enable declaration-no-important */
50 body:not( .mw-rcfilters-ui-initialized ) {
51 .mw-recentchanges-toplinks.mw-recentchanges-toplinks-collapsed {
52 // Similar to the watchlist-details hack, we are going to make this float left
53 // while loading to prevent jumpiness in the min-height calculation
56 .mw-recentchanges-toplinks-content {
73 // Reserve space for the highlight circles
75 table.mw-enhanced-rc {
76 .result-circle-margin();
80 // Temporarily hide the empty results section while we load rcfilters.
81 .mw-changeslist-empty {
89 body.mw-rcfilters-ui-loading .mw-changeslist {
97 // Make sure the middle of the spinner is centered, rather than its left edge
98 margin-left: -3 * @rcfilters-spinner-size / 2;
103 & .rcfilters-spinner-bounce,
107 display: inline-block;
108 width: @rcfilters-spinner-size;
109 height: @rcfilters-spinner-size;
110 background-color: @colorGray12;
112 .animation( rcfiltersBouncedelay 1.5s ease-in-out -0.16s infinite both );
116 .animation-delay( -0.33s );
120 .animation-delay( 0s );
123 body:not( .mw-rcfilters-ui-initialized ) .rcfilters-spinner {
125 // When initializing, display the spinner on top of the area where the UI will appear
126 margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 2;
128 body.mw-rcfilters-ui-loading .rcfilters-spinner {
130 // When loading new results, display the spinner on top of the results area
135 form#mw-watchlist-resetbutton {
139 // Why does rcfilters have a copy of this?
140 // TODO: Remove per T195256.
143 margin-bottom: 0.5em;
146 // Make the watchlist-details message display while loading, but make it not take up any
147 // space. This makes the min-height trick work better.
153 .mw-rcfilters-staticfilters-selected {
157 @-webkit-keyframes rcfiltersBouncedelay {
161 -webkit-transform: scale( 0.7 );
162 transform: scale( 0.7 );
165 background-color: @colorGray10;
166 -webkit-transform: scale( 1 );
167 transform: scale( 1 );
171 @-moz-keyframes rcfiltersBouncedelay {
175 -moz-transform: scale( 0.7 );
176 transform: scale( 0.7 );
179 background-color: @colorGray10;
180 -moz-transform: scale( 0.7 );
181 transform: scale( 1 );
185 @keyframes rcfiltersBouncedelay {
189 transform: scale( 0.7 );
192 background-color: @colorGray10;
193 transform: scale( 1 );