From: Nicolas Coden Date: Sat, 31 Mar 2018 21:28:58 +0000 (+0200) Subject: fix: fix uncenter for last column in Float Grid #9952 X-Git-Tag: v6.6.0~3^2~245^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e7dab90;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: fix uncenter for last column in Float Grid #9952 Closes https://github.com/zurb/foundation-sites/issues/9952 See https://github.com/zurb/foundation-sites/issues/9952#issuecomment-377719417 --- diff --git a/scss/grid/_position.scss b/scss/grid/_position.scss index 3dcd29d69..ec6ef7d7e 100644 --- a/scss/grid/_position.scss +++ b/scss/grid/_position.scss @@ -32,9 +32,15 @@ /// Reset a position definition. @mixin grid-column-unposition { position: static; - float: $global-left; margin-right: 0; margin-left: 0; + + float: $global-left; + @if $grid-column-align-edge { + &:last-child:not(:first-child) { + float: $global-right; + } + } } /// Offsets a column to the right by `$n` columns.