From 4fce2fa2efab5e041291c91386c751d5f4624748 Mon Sep 17 00:00:00 2001 From: petarpetkovic Date: Tue, 5 Dec 2017 23:12:51 +0100 Subject: [PATCH] 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 --- .../mediawiki.special/mediawiki.special.changeslist.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.20.1