Replace mixin by inline styles
authorVolker E <volker.e@wikimedia.org>
Thu, 22 Nov 2018 02:13:45 +0000 (18:13 -0800)
committerVolker E <volker.e@wikimedia.org>
Thu, 22 Nov 2018 02:13:45 +0000 (18:13 -0800)
Replacing `.agora-label-styling()` by inline styles.
It is not useful to have a mixin for this only used in two selectors
of forms.less

Change-Id: I807fdbdca11d2ad6fea120d76c3a56471260c8cb

resources/src/mediawiki.less/mediawiki.ui/mixins.less
resources/src/mediawiki.ui/components/forms.less

index 58319f5..ddf847d 100644 (file)
@@ -1,15 +1,3 @@
-// ----------------------------------------------------------------------------
-// Form styling mixins
-// ----------------------------------------------------------------------------
-.agora-label-styling() {
-       font-size: 0.9em;
-       color: @colorText;
-
-       * {
-               font-weight: normal;
-       }
-}
-
 // ----------------------------------------------------------------------------
 // Button styling
 // ----------------------------------------------------------------------------
index 892ba4e..a018d4e 100644 (file)
 
        > label {
                display: block;
+               color: @colorText;
                .box-sizing( border-box );
-               .agora-label-styling();
                width: auto;
                margin: 0 0 0.2em;
                padding: 0;
+               font-size: 0.9em;
+
+               * {
+                       font-weight: normal;
+               }
        }
 
        // Override input styling just for checkboxes and radio inputs.
 // You generally don't need to use this class if <label> is within an Agora
 // form container such as mw-ui-vform
 .mw-ui-label {
-       .agora-label-styling();
+       color: @colorText;
+       font-size: 0.9em;
+
+       * {
+               font-weight: normal;
+       }
 }