From dffb62dadbc8c485ea1593a60ae07c406329703b Mon Sep 17 00:00:00 2001 From: Thomas Bredin-Grey Date: Thu, 11 Aug 2016 11:37:26 +1000 Subject: [PATCH] Fixed hamburger mixin flooring on spacing with units other than pixels --- scss/util/_mixins.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.47.2