From f8303ea055eb67467d29678e51cca41f8c09ac25 Mon Sep 17 00:00:00 2001 From: gastlich Date: Tue, 29 Apr 2014 21:07:44 +0100 Subject: [PATCH] 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 --- scss/foundation/components/_grid.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2