mw.ui:checkbox: Fix indentation and add zero before decimal
authorPrateek Saxena <prtksxna@gmail.com>
Tue, 4 Nov 2014 08:38:33 +0000 (14:08 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Tue, 4 Nov 2014 08:38:33 +0000 (14:08 +0530)
'margin: 0 .4em;' can easily be misread as '0.4em'

Change-Id: I8cc8ad76ed9da9907809ac6c39b614ce5b0451b7

resources/src/mediawiki.ui/components/checkbox.less

index 4204c29..929cf61 100644 (file)
                // the pseudo before element of the label after the checkbox now looks like a checkbox
                & + label {
                        cursor: pointer;
-                       margin: 0 .4em;
+                       margin: 0 0.4em;
 
                        &::before {
-                                               content: '';
-                                               position: absolute;
-                                               left: 0;
-                                               display: inline-block;
-                                               border-radius: @borderRadius;
-                                               margin-right: 18px;
-                                               width: @checkboxSize;
-                                               height: @checkboxSize;
-                                               background-color: #fff;
-                                               border: 1px solid grey;
-                                       }
+                               content: '';
+                               position: absolute;
+                               left: 0;
+                               display: inline-block;
+                               border-radius: @borderRadius;
+                               margin-right: 18px;
+                               width: @checkboxSize;
+                               height: @checkboxSize;
+                               background-color: #fff;
+                               border: 1px solid grey;
+                       }
                }
 
                // when the input is checked, style the label pseudo before element that followed as a checked checkbox