]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Omit unnecessary "px" identifiers from "0px" in multiple .scss files 6034/head
authorBen Abbott <jaminscript@gmail.com>
Fri, 14 Nov 2014 01:29:29 +0000 (14:29 +1300)
committerBen Abbott <jaminscript@gmail.com>
Fri, 14 Nov 2014 01:29:29 +0000 (14:29 +1300)
This commit removes all the unnecessary unit identifiers where the value
of a property is 0.

scss/foundation/components/_button-groups.scss
scss/foundation/components/_buttons.scss
scss/foundation/components/_forms.scss
scss/foundation/components/_global.scss
scss/foundation/components/_orbit.scss
scss/foundation/components/_top-bar.scss

index 5bf15f0340f7224463261e6f225212210651bbce..c989dfbaf076ba7095c7694b02e67009197d3db6 100644 (file)
@@ -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;
     }
index d5e8477b7f4940d2817d5cb70ac4ae0c05d6cf8f..0e7a58f8c2337a2f79b2e4e70829fabb75a91413 100644 (file)
@@ -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;
index bc2b9cb6c19bb45bd7b495acbea5575c8a346334..6a2602dfd295ebe836895c7efe371e343ba0a8e0 100644 (file)
@@ -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 */
index e23e14c055053fcfa14b82c87152583aea37a2b0..f70dd3e87e9c2fb8e0b1c75a053a135dc932f428 100644 (file)
@@ -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;
   }
index 36a516ebf0af15a6f42e21ab60f24d370479a607..685e8f9341504ef2f28144c9a536884540c0c8a7 100644 (file)
@@ -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; }
 
index 87b131d594261e822e425468d51e1987ecec9597..4b8d5f5895e3869b333cac46cbabaa2149465b88 100644 (file)
@@ -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;
             }