]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix nested column rows being misaligned, fixes #7365
authorGeoff Kimball <geoff@zurb.com>
Tue, 8 Dec 2015 18:50:30 +0000 (10:50 -0800)
committerGeoff Kimball <geoff@zurb.com>
Tue, 8 Dec 2015 18:50:30 +0000 (10:50 -0800)
scss/grid/_classes.scss

index a6f297a7dfd272e54f0da2d66ca6c3265285a294..e22c3726170ff526944e4ea6ef4dde24ca6baaa1 100644 (file)
   // The double .row class is needed to bump up the specificity
   .#{$column}.#{$row}.#{$row} {
     float: none;
+
+    // To properly nest a column row, padding and margin is removed
+    .#{$row} & {
+      padding-left: 0;
+      padding-right: 0;
+      margin-left: 0;
+      margin-right: 0;
+    }
   }
 
   @each $size in $breakpoints {