From: Andy Cochran Date: Thu, 10 Mar 2016 21:47:14 +0000 (-0500) Subject: fix error when -spacing is 0 X-Git-Tag: v6.2.1~43^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c070cbbd7da197cc3fca0b8843b793634efde7;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix error when -spacing is 0 --- diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 0b9c53942..ea95e38b2 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -84,7 +84,11 @@ $buttongroup-expand-max: 6 !default; &:first-child:nth-last-child(#{$i}) { &, &:first-child:nth-last-child(#{$i}) ~ #{$selector} { display: inline-block; - width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); + @if #{$buttongroup-spacing} == '0' { + width: #{percentage(1 / $i)}; + } @else { + width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); + } margin-right: $buttongroup-spacing; } }