From: petarpetkovic Date: Tue, 5 Dec 2017 22:12:51 +0000 (+0100) Subject: Prevent results from wiggling X-Git-Tag: 1.31.0-rc.0~1271^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=4fce2fa2efab5e041291c91386c751d5f4624748;p=lhc%2Fweb%2Fwiklou.git Prevent results from wiggling The patch Ifecaaff572 introduces clearing to the right for the first result list item, when grouping is disabled. The difference between cleared vs non-cleared result becomes visible when legend is toggled, causing really small (around a pixel), but annoying wiggle. Change-Id: Ida6fb6f8ad0caf666258e3f1e770c6da9e24af58 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.changeslist.css b/resources/src/mediawiki.special/mediawiki.special.changeslist.css index 734666f18e..9521a2b513 100644 --- a/resources/src/mediawiki.special/mediawiki.special.changeslist.css +++ b/resources/src/mediawiki.special/mediawiki.special.changeslist.css @@ -45,8 +45,12 @@ display: none; } +.mw-changeslist-legend.mw-collapsed { + margin: 0; +} + /* Prevent pushing down of content if legend is initially collapsed */ -.mw-changeslist-legend.mw-collapsed ~ ul.special > li:first-child { +.mw-changeslist-legend.mw-collapsed ~ ul:first-of-type > li:first-child { clear: right; } @@ -55,5 +59,4 @@ background-color: #fff; position: absolute; right: 0; - margin-top: -0.5em; }