]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove switch.components.scss extra vertical space 8854/head
authorSaad Shahd <dev.saad.shahd@gmail.com>
Thu, 26 May 2016 13:08:08 +0000 (15:08 +0200)
committerSaad Shahd <dev.saad.shahd@gmail.com>
Thu, 26 May 2016 13:08:08 +0000 (15:08 +0200)
scss/components/_switch.scss

index f623af7c85d00fc0647844e05e72b7c94b13d799..e38a4e13bec1258dbce45ac49d57cdd7a7973b11 100644 (file)
@@ -75,6 +75,7 @@ $switch-paddle-transition: all 0.25s ease-out !default;
 @mixin switch-input {
   opacity: 0;
   position: absolute;
+  margin-bottom: 0;
 }
 
 /// Adds styles for the background and paddle of a switch. Apply this to a `<label>` within a switch.
@@ -168,6 +169,8 @@ $switch-paddle-transition: all 0.25s ease-out !default;
   $paddle-height: $height - ($paddle-offset * 2);
   $paddle-left-active: $width - $paddle-width - $paddle-offset;
 
+  height: $height;
+  
   .switch-paddle {
     width: $width;
     height: $height;
@@ -187,6 +190,7 @@ $switch-paddle-transition: all 0.25s ease-out !default;
 @mixin foundation-switch {
   // Container class
   .switch {
+    height: $switch-height;
     @include switch-container;
   }