From: S Page Date: Thu, 14 Nov 2013 23:14:24 +0000 (-0800) Subject: minor LESS CSS fixes (zero units, dimensions) X-Git-Tag: 1.31.0-rc.0~16808 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=ad3449ccc2a768dc4185667bbb6ae74072f7eb5b;p=lhc%2Fweb%2Fwiklou.git minor LESS CSS fixes (zero units, dimensions) A few zero values included units, and some margin and padding dimensions had redundant values on the end. Regarding the latter, since CSS 1 "if there are two or three, the missing values are taken from the opposite side". Leaving values off hurts clarity (I can never remember if the order is top-left-bottom-right) but both Chromium and Firebug's CSS inspector will display margin: 0 0 15px 0; as margin: 0 0 15px; anyway. Bug: 57083 Change-Id: Ic51b2ac196a434857f19d51cd2a92686d53c4877 --- diff --git a/resources/mediawiki.ui/components/default/forms.less b/resources/mediawiki.ui/components/default/forms.less index 66f4487989..5c6aa6ac2b 100644 --- a/resources/mediawiki.ui/components/default/forms.less +++ b/resources/mediawiki.ui/components/default/forms.less @@ -66,7 +66,7 @@ .box-sizing(border-box); .agora-label-styling(); width: auto; - margin: 0 0 0.2em 0; + margin: 0 0 0.2em; padding: 0; } @@ -103,7 +103,7 @@ .error { .box-sizing(border-box); font-size: 0.9em; - margin: 0 0 1em 0; + margin: 0 0 1em; padding: 0.5em; color: #cc0000; border: 1px solid #fac5c5; @@ -134,7 +134,7 @@ // XXX DRY: This repeats earlier styling, use an @include agora-div-styling ? .mw-ui-vform-div { display: block; - margin: 0 0 15px 0; + margin: 0 0 15px; padding: 0; width: 100%; } diff --git a/resources/mediawiki.ui/mixins/forms.less b/resources/mediawiki.ui/mixins/forms.less index b32e4e79ff..20f42a01fa 100644 --- a/resources/mediawiki.ui/mixins/forms.less +++ b/resources/mediawiki.ui/mixins/forms.less @@ -12,7 +12,7 @@ outline: 0; // Removes OS field focus } - box-shadow: @colorProgressiveShadow 0px 0px 5px; + box-shadow: @colorProgressiveShadow 0 0 5px; border-color: @colorProgressiveShadow; } @@ -46,7 +46,7 @@ & > input[type="radio"] { width: auto; height: auto; - margin: 0 0.1em 0em 0; + margin: 0 0.1em 0 0; padding: 0; border: 1px solid @colorGrayLight; cursor: pointer;