From: Ben Abbott Date: Fri, 14 Nov 2014 01:29:29 +0000 (+1300) Subject: Omit unnecessary "px" identifiers from "0px" in multiple .scss files X-Git-Tag: v5.5.0~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6034%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Omit unnecessary "px" identifiers from "0px" in multiple .scss files This commit removes all the unnecessary unit identifiers where the value of a property is 0. --- diff --git a/scss/foundation/components/_button-groups.scss b/scss/foundation/components/_button-groups.scss index 5bf15f034..c989dfbaf 100644 --- a/scss/foundation/components/_button-groups.scss +++ b/scss/foundation/components/_button-groups.scss @@ -66,7 +66,7 @@ $button-group-border-width: 1px !default; > button, .button { border-top: $button-group-border-width solid; border-color: rgba(255, 255, 255, 0.5); - border-left-width: 0px; + border-left-width: 0; margin:0; display: block; } diff --git a/scss/foundation/components/_buttons.scss b/scss/foundation/components/_buttons.scss index d5e8477b7..0e7a58f8c 100644 --- a/scss/foundation/components/_buttons.scss +++ b/scss/foundation/components/_buttons.scss @@ -34,7 +34,7 @@ $button-font-align: center !default; $button-function-factor: -20% !default; // We use these to control button border styles. -$button-border-width: 0px !default; +$button-border-width: 0 !default; $button-border-style: solid !default; $button-bg-color: $primary-color !default; $button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor) !default; diff --git a/scss/foundation/components/_forms.scss b/scss/foundation/components/_forms.scss index bc2b9cb6c..6a2602dfd 100644 --- a/scss/foundation/components/_forms.scss +++ b/scss/foundation/components/_forms.scss @@ -324,7 +324,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default; // We use this mixin to style select elements @mixin form-select { -webkit-appearance: none !important; - border-radius: 0px; + border-radius: 0; background-color: $select-bg-color; // Hide the dropdown arrow shown in newer IE versions @@ -414,7 +414,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default; /* We use this to get basic styling on all basic form elements */ #{text-inputs(all, 'input')} { -webkit-appearance: none; - border-radius: 0px; + border-radius: 0; @include form-element; @if $input-include-glowing-effect == false { @include single-transition(all, 0.15s, linear); @@ -455,7 +455,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default; input[type="submit"] { -webkit-appearance: none; - border-radius: 0px; + border-radius: 0; } /* Respect enforced amount of rows for textarea */ diff --git a/scss/foundation/components/_global.scss b/scss/foundation/components/_global.scss index e23e14c05..f70dd3e87 100644 --- a/scss/foundation/components/_global.scss +++ b/scss/foundation/components/_global.scss @@ -154,14 +154,14 @@ $base-line-height: 1.5 !default; } box-shadow: - 0 0px 0 $thickness $color, + 0 0 0 $thickness $color, 0 $gap + $thickness 0 $thickness $color, 0 (2 * $gap + 2*$thickness) 0 $thickness $color; width: $width; } span:hover:after { box-shadow: - 0 0px 0 $thickness $hover-color, + 0 0 0 $thickness $hover-color, 0 $gap + $thickness 0 $thickness $hover-color, 0 (2 * $gap + 2*$thickness) 0 $thickness $hover-color; } diff --git a/scss/foundation/components/_orbit.scss b/scss/foundation/components/_orbit.scss index 36a516ebf..685e8f934 100644 --- a/scss/foundation/components/_orbit.scss +++ b/scss/foundation/components/_orbit.scss @@ -116,7 +116,7 @@ $orbit-timer-hide-for-small: true !default; } } - + .orbit-container { overflow: hidden; width: 100%; @@ -205,7 +205,7 @@ $orbit-timer-hide-for-small: true !default; & > span { display: none; position: absolute; - top: 0px; + top: 0; #{$opposite-direction}: 0; width: 11px; height: 14px; @@ -213,26 +213,26 @@ $orbit-timer-hide-for-small: true !default; border-top: none; border-bottom: none; } - + // Pause button &.paused { & > span { #{$opposite-direction}: -4px; - top: 0px; + top: 0; width: 11px; height: 14px; border: inset 8px; border-left-style: solid; border-color: transparent; border-left-color: $white; - &.dark { + &.dark { border-left-color: $oil; } } } } - - + + &:hover .orbit-timer > span { display: block; } diff --git a/scss/foundation/components/_top-bar.scss b/scss/foundation/components/_top-bar.scss index 87b131d59..4b8d5f589 100644 --- a/scss/foundation/components/_top-bar.scss +++ b/scss/foundation/components/_top-bar.scss @@ -270,7 +270,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text span::after { // Shh, don't tell, but box-shadows create the menu icon :) // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above - box-shadow: 0 0px 0 1px $topbar-menu-icon-color-toggled, + box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled, 0 7px 0 1px $topbar-menu-icon-color-toggled, 0 14px 0 1px $topbar-menu-icon-color-toggled; }