From: Thomas Bredin-Grey Date: Thu, 11 Aug 2016 01:37:26 +0000 (+1000) Subject: Fixed hamburger mixin flooring on spacing with units other than pixels X-Git-Tag: v6.2.4-rc1~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dffb62dadbc8c485ea1593a60ae07c406329703b;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixed hamburger mixin flooring on spacing with units other than pixels --- diff --git a/scss/util/_mixins.scss b/scss/util/_mixins.scss index 129e0db5c..0a7e5734c 100644 --- a/scss/util/_mixins.scss +++ b/scss/util/_mixins.scss @@ -65,7 +65,11 @@ $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;