Amend expanded HTMLForm legend styling
authorVolker E <volker.e@wikimedia.org>
Mon, 23 Sep 2019 19:08:21 +0000 (12:08 -0700)
committerVolker E <volker.e@wikimedia.org>
Mon, 23 Sep 2019 19:08:21 +0000 (12:08 -0700)
Follow-up to I6964296bc68705 providing same top and bottom padding
when expanded.

Change-Id: Ib69f730f9fa713bc8a6d7bf0fdbb7a6d26b1f0ab

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

index e345d41..22dc924 100644 (file)
                padding: @ooui-spacing-small;
                // Make space for toggle icon defined below.
                padding-left: 24 / @ooui-font-size-browser / @ooui-font-size-base;
+
+               .oo-ui-labelElement-label {
+                       margin-bottom: 0;
+               }
        }
 
        // Trigger only when collapsible & JS is available via `.mw-collapsed`.
                min-height: 30px;
                // Negative margin to match the reduced distance on the top caused by the previous rule.
                margin-bottom: -@ooui-spacing-medium;
-
-               .oo-ui-labelElement-label {
-                       margin-bottom: 0;
-               }
        }
 }