From: Andy Cochran Date: Fri, 29 Apr 2016 13:37:57 +0000 (-0400) Subject: prevent rounding bug causing last expanded button in group to wrap X-Git-Tag: v6.2.2-rc1~33^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8616%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git prevent rounding bug causing last expanded button in group to wrap --- diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 12e9911be..8d14b67e1 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -80,12 +80,11 @@ $buttongroup-expand-max: 6 !default; &:first-child:nth-last-child(#{$i}) { &, &:first-child:nth-last-child(#{$i}) ~ #{$selector} { display: inline-block; - @if #{$buttongroup-spacing} == '0' { - width: #{percentage(1 / $i)}; - } @else { - width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); - } + width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); margin-#{$global-right}: $buttongroup-spacing; + &:last-child { + margin-#{$global-right}: $buttongroup-spacing * -$buttongroup-expand-max; + } } } }