]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix error when -spacing is 0
authorAndy Cochran <acochran@council.nyc.gov>
Thu, 10 Mar 2016 21:47:14 +0000 (16:47 -0500)
committerGeoff Kimball <geoff@zurb.com>
Wed, 16 Mar 2016 16:42:37 +0000 (09:42 -0700)
scss/components/_button-group.scss

index 0b9c539423002dc335d346013ff9d7aeb73a8aa6..ea95e38b214b3dfb04f7c9d8bb8007c1937307c8 100644 (file)
@@ -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;
           }
         }