Move generic HTMLSizeFilterField styles from newpages.less
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Aug 2018 18:33:02 +0000 (20:33 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Aug 2018 18:33:53 +0000 (20:33 +0200)
These styles should apply to all OOUI HTMLForms (and they already were
accidentally being applied to the form on Special:ProtectedPages).
Move them to mediawiki.htmlform.ooui.styles.less.

Change-Id: Ie51fbbd997648495779c822c421bbfb4a3ea74c4

resources/src/mediawiki.htmlform.ooui.styles.less
resources/src/mediawiki.special/newpages.less

index 0b56df1..a156e88 100644 (file)
                width: 100%;
        }
 
+       // Default OOUI styles produce a larger margin here
+       .mw-htmlform-field-HTMLSizeFilterField {
+               margin-top: @ooui-spacing-medium;
+       }
+
        .mw-htmlform-matrix {
                border-spacing: 0 2px;
 
index bac0846..835cab8 100644 (file)
@@ -9,7 +9,6 @@
 @ooui-spacing-medium: 12 / @ooui-font-size-browser / @ooui-font-size-base; // equals `0.8571429em`≈`12px`
 @ooui-spacing-large: 16 / @ooui-font-size-browser / @ooui-font-size-base; // equals `1.1428571em`≈`16px`
 
-.mw-htmlform-ooui .mw-htmlform-field-HTMLSizeFilterField,
 .mw-htmlform-ooui .mw-htmlform-submit-buttons + div {
        margin-top: @ooui-spacing-medium;
 }