From: gastlich Date: Tue, 29 Apr 2014 20:07:44 +0000 (+0100) Subject: Added !important keyword to float: none; rule of centered columns in grid system X-Git-Tag: v5.2.3~37^2~4^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F5083%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added !important keyword to float: none; rule of centered columns in grid system Currently selectors: [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; } [class*="column"] + [class*="column"].end { float: $default-float; } are more specific (specifity= 3) than rules for centered columns (specifity=2), and if centered column is the last one in a row it will use f.e. float: right; rule instead of float: none; from centered classes --- diff --git a/scss/foundation/components/_grid.scss b/scss/foundation/components/_grid.scss index 769c3ff95..aae0b4c3e 100644 --- a/scss/foundation/components/_grid.scss +++ b/scss/foundation/components/_grid.scss @@ -140,7 +140,7 @@ $total-columns: 12 !default; @if $center { margin-#{$default-float}: auto; margin-#{$opposite-direction}: auto; - float: none; + float: none !important; } // If offset, calculate appropriate margins