Prevent results from wiggling
authorpetarpetkovic <ppetkovic@wikimedia.org>
Tue, 5 Dec 2017 22:12:51 +0000 (23:12 +0100)
committerpetarpetkovic <ppetkovic@wikimedia.org>
Tue, 5 Dec 2017 22:12:51 +0000 (23:12 +0100)
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

resources/src/mediawiki.special/mediawiki.special.changeslist.css

index 734666f..9521a2b 100644 (file)
        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;
 }