]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix incorrect flex grid output.
authorBrett Mason <brettsmason@gmail.com>
Thu, 6 Oct 2016 10:37:58 +0000 (11:37 +0100)
committerBrett Mason <brettsmason@gmail.com>
Thu, 6 Oct 2016 10:37:58 +0000 (11:37 +0100)
The output should of been `.row .column.row.row, .row .row.row.columns`

scss/grid/_flex-grid.scss

index df9a49703ced60fe46b362beeb3f34dd4feeb3ac..702e7721ff7c143ef363ea24d597a29fa15fcace 100644 (file)
 
   // Column row
   // The double .row class is needed to bump up the specificity
-  .column.row.row {
+  .column.row.row {
     float: none;
     display: block;
+  }
 
-    // To properly nest a column row, padding and margin is removed
-    & .row {
-      padding-left: 0;
-      padding-right: 0;
-      margin-left: 0;
-      margin-right: 0;
-    }
+  // To properly nest a column row, padding and margin is removed
+  .row .column.row.row {
+    padding-left: 0;
+    padding-right: 0;
+    margin-left: 0;
+    margin-right: 0;
   }
 
   @include -zf-each-breakpoint {
 
       // Auto-stacking/unstacking
       @at-root (without: media) {
-        .row.#{$-zf-size}-unstack {
+        .row.#{$-zf-size}-unstack {
           > .column {
             flex: flex-grid-column(100%);
 
     // scss-lint:disable PlaceholderInExtend
     @extend .column;
   }
-}
+}
\ No newline at end of file