]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add grow to xy-cell-base
authorKerry <flatline-studios@users.noreply.github.com>
Sun, 1 Oct 2017 14:36:37 +0000 (15:36 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Oct 2017 14:36:37 +0000 (15:36 +0100)
Added the ability to use the xy-cell-base mixin to grow the flex item to take up all available space.

This is effectively the same as: `.flex-child-grow`, found @ https://foundation.zurb.com/sites/docs/flexbox-utilities.html#vanilla-flexbox-helper-classes - But there isn't a way to do this through the SASS mixins.

scss/xy-grid/_cell.scss

index 10f70a64a5a0a20e1576679752108c6fa15abadd..27aa12ab64ef3e3c75ec9b57ab75f48abc48f92f 100644 (file)
@@ -58,6 +58,9 @@
   @elseif ($size == 'shrink') {
     flex: 0 0 auto;
   }
+  @elseif ($size == 'grow') {
+    flex: 1 0 auto;
+  }
 }
 
 /// Resets a cells width (or height if vertical is true) as well as strips its gutters.