]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed hamburger mixin flooring on spacing with units other than pixels 9100/head
authorThomas Bredin-Grey <tbredin@gmail.com>
Thu, 11 Aug 2016 01:37:26 +0000 (11:37 +1000)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2016 01:37:26 +0000 (11:37 +1000)
scss/util/_mixins.scss

index 129e0db5c2703c130cd13c681559a421ec99d85c..0a7e5734cc5e11ad9b665106da464f22355a20a3 100644 (file)
   $hover-shadow: ();
 
   // Spacing between bars is calculated based on the total height of the icon and the weight of each bar
-  $spacing: floor(($height - ($weight * $bars)) / ($bars - 1));
+  $spacing: ($height - ($weight * $bars)) / ($bars - 1);
+
+  @if unit($spacing) == 'px' {
+    $spacing: floor($spacing);
+  }
 
   // Icon container
   position: relative;