1 @import 'mediawiki.mixins.animation';
2 @import 'mediawiki.ui/variables';
3 @import 'mw.rcfilters.mixins';
5 /* stylelint-disable selector-class-pattern */
7 @rcfilters-spinner-size: 12px;
8 @rcfilters-head-min-height: 210px;
9 @rcfilters-head-margin-bottom: 20px;
10 @rcfilters-wl-head-min-height: 295px;
11 @rcfilters-head-min-height-collapsed: 130px;
12 @rcfilters-wl-head-min-height-collapsed: 220px;
14 // Corrections for the standard special page
20 // Reserve space for the UI while it loads
22 min-height: @rcfilters-head-min-height;
23 margin-bottom: @rcfilters-head-margin-bottom;
26 // On the watchlist, reserve a bit more
27 .mw-special-Watchlist .rcfilters-head {
28 min-height: @rcfilters-wl-head-min-height;
31 .mw-rcfilters-collapsed {
33 min-height: @rcfilters-head-min-height-collapsed;
36 // On the watchlist, reserve a bit more
37 &.mw-special-Watchlist .rcfilters-head {
38 min-height: @rcfilters-wl-head-min-height-collapsed;
42 .mw-recentchanges-toplinks {
45 &:not( .mw-recentchanges-toplinks-collapsed ) {
46 margin-top: -1px; // Make up for `border` to prevent link movement
49 border: 1px solid @colorGray12; // Same as the legend
50 padding: 0 0.5em 0.5em 0.5em;
53 /* stylelint-disable declaration-no-important */
54 .oo-ui-buttonElement > .oo-ui-buttonElement-button {
55 padding-right: 1.2em !important;
57 > .oo-ui-indicatorElement-indicator {
59 width: 0.9375em !important;
62 /* stylelint-enable declaration-no-important */
65 body:not( .mw-rcfilters-ui-initialized ) {
66 .mw-recentchanges-toplinks.mw-recentchanges-toplinks-collapsed {
67 // Similar to the watchlist-details hack, we are going to make this float left
68 // while loading to prevent jumpiness in the min-height calculation
71 .mw-recentchanges-toplinks-content {
86 .mw-rcfilters-ui-highlights {
91 // Reserve space for the highlight circles
93 table.mw-enhanced-rc {
94 .result-circle-margin();
98 // Temporarily hide the empty results section while we load rcfilters.
99 .mw-changeslist-empty {
107 body.mw-rcfilters-ui-loading .mw-changeslist {
115 // Make sure the middle of the spinner is centered, rather than its left edge
116 margin-left: -3 * @rcfilters-spinner-size / 2;
119 & .rcfilters-spinner-bounce,
123 background-color: @colorGray7;
126 width: @rcfilters-spinner-size;
127 height: @rcfilters-spinner-size;
129 .animation( rcfiltersBouncedelay 1600ms ease-in-out -160ms infinite both );
134 .animation-delay( -330ms );
139 .animation-delay( 0s );
143 body:not( .mw-rcfilters-ui-initialized ) .rcfilters-spinner {
145 // When initializing, display the spinner on top of the area where the UI will appear
146 margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 1.5;
149 body.mw-rcfilters-ui-loading .rcfilters-spinner {
151 // When loading new results, display the spinner on top of the results area
152 margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 8;
156 form#mw-watchlist-resetbutton {
160 // Why does rcfilters have a copy of this?
161 // TODO: Remove per T195256.
164 margin-bottom: 0.5em;
167 // Make the watchlist-details message display while loading, but make it not take up any
168 // space. This makes the min-height trick work better.
171 // The 20em should match the min-width we are setting up
172 // for the .mw-rcfilters-ui-watchlistTopSectionWidget-editWatchlistButton
173 // in mw.rcfilters.ui.WatchlistTopSectionWidget.less
174 width: ~'calc( 100% - 20em )';
178 .mw-rcfilters-staticfilters-selected {
182 @-webkit-keyframes rcfiltersBouncedelay {
186 -webkit-transform: scale( 0.625 );
189 20% { // equals 320ms
191 -webkit-transform: scale( 1 );
195 @-moz-keyframes rcfiltersBouncedelay {
199 -moz-transform: scale( 0.625 );
204 -moz-transform: scale( 1 );
208 @keyframes rcfiltersBouncedelay {
212 transform: scale( 0.625 );
215 20% { // equals 320ms
217 transform: scale( 1 );