]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added !important keyword to float: none; rule of centered columns in grid system 5083/head
authorgastlich <gastlich@gmail.com>
Tue, 29 Apr 2014 20:07:44 +0000 (21:07 +0100)
committergastlich <gastlich@gmail.com>
Tue, 29 Apr 2014 20:07:44 +0000 (21:07 +0100)
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

index 769c3ff9548b2e0d300f55e92bd68c814a1ca5a2..aae0b4c3e467b7e564688db2a93c7be0116a98c7 100644 (file)
@@ -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