]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix nested collapsed flex-grid row 9568/head
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 25 Dec 2016 22:30:43 +0000 (23:30 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 25 Dec 2016 22:30:43 +0000 (23:30 +0100)
Bug: columns in collapsed row doesn't have padding, but nested
collapsed flex-grid row still have negative margins.

Fix: apply the same path than in classic grids.

Note: Grids and flex-grids have a lot of bugs like this one and should
be refactorized. Please beat me if you see this commit 6 months later
and nothing changed.

scss/grid/_flex-grid.scss

index f0471d06475c26c929464f27bd947a130370cf66..c68d34176eb7e279ef8dadf45f86ef5d77dd3493 100644 (file)
     // Nesting behavior
     & .row {
       @include flex-grid-row(nest, $base: false);
+
+      &.collapse {
+        margin-right: 0;
+        margin-left: 0;
+      }
     }
 
     // Expanded row