DateInputWidget: Remove focus reflow
authorVolker E <volker.e@wikimedia.org>
Thu, 28 Mar 2019 23:08:22 +0000 (16:08 -0700)
committerVolker E <volker.e@wikimedia.org>
Thu, 28 Mar 2019 23:08:22 +0000 (16:08 -0700)
Also removing unnecessary properties already inherited from
TextInputWidget or obsolete top and bottom `margin`s.

Change-Id: I1b5beee6553a4b16c777c36155526a8fea170d47

resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.styles.less

index 3758bd7..06c3445 100644 (file)
 .mw-widget-dateInputWidget {
        &.oo-ui-textInputWidget {
                display: inline-block;
-               position: relative;
                width: 21em;
-               margin-top: 0.25em;
                // .oo-ui-inline-spacing( 0.5em ); already inherited from `.oo-ui-inputWidget`
-               margin-bottom: 0.25em;
-               margin-left: 0;
        }
 
        // Note that this block applies to both the PHP widget and the JS widget
                border-radius: @border-radius-base;
                padding: @padding-input-text;
                line-height: @line-height-widget-singleline;
+
+               > .oo-ui-labelElement-label {
+                       line-height: @line-height-widget-singleline;
+               }
        }
 
        &.oo-ui-widget-enabled {