X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.rcfilters%2Fstyles%2Fmw.rcfilters.less;h=390d873277971438c211c1874368b9286d79be52;hb=7c31dc8870851774a471e18f44c790556e9b508d;hp=11972de06cc255f85e8c41eda719db4a40cc507c;hpb=6d7677df1f6dcac08fe565235032dffab6bbfaee;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less b/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less index 11972de06c..390d873277 100644 --- a/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less +++ b/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less @@ -5,7 +5,9 @@ @rcfilters-spinner-size: 12px; @rcfilters-head-min-height: 210px; @rcfilters-head-margin-bottom: 20px; -@rcfilters-wl-head-min-height: 270px; +@rcfilters-wl-head-min-height: 295px; +@rcfilters-head-min-height-collapsed: 130px; +@rcfilters-wl-head-min-height-collapsed: 220px; // Corrections for the standard special page .client-js { @@ -22,6 +24,18 @@ // On the watchlist, reserve a bit more .mw-special-Watchlist .rcfilters-head { min-height: @rcfilters-wl-head-min-height; + + } + + .mw-rcfilters-collapsed { + .rcfilters-head { + min-height: @rcfilters-head-min-height-collapsed; + } + + // On the watchlist, reserve a bit more + &.mw-special-Watchlist .rcfilters-head { + min-height: @rcfilters-wl-head-min-height-collapsed; + } } .mw-recentchanges-toplinks { @@ -69,6 +83,10 @@ } } + .mw-rcfilters-ui-highlights { + display: none; + } + .mw-changeslist { // Reserve space for the highlight circles ul, @@ -123,12 +141,12 @@ body:not( .mw-rcfilters-ui-initialized ) .rcfilters-spinner { display: block; // When initializing, display the spinner on top of the area where the UI will appear - margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 2; + margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 1.5; } body.mw-rcfilters-ui-loading .rcfilters-spinner { display: block; // When loading new results, display the spinner on top of the results area - margin-top: 2em; + margin-top: -( @rcfilters-head-min-height + @rcfilters-head-margin-bottom ) / 8; } #contentSub, @@ -147,6 +165,10 @@ // space. This makes the min-height trick work better. .watchlistDetails { float: left; + // The 20em should match the min-width we are setting up + // for the .mw-rcfilters-ui-watchlistTopSectionWidget-editWatchlistButton + // in mw.rcfilters.ui.WatchlistTopSectionWidget.less + width: ~'calc( 100% - 20em )'; } }