/// @type Number
$flex-source-ordering-count: 6 !default;
+/// Quickly disable/enable Responsive breakpoints for Vanilla Flex Helpers.
+/// @type Boolean
+$flexbox-responsive-breakpoints: true !default;
+
+@mixin flex-helpers {
+ .flex-container {
+ @include flex;
+ }
+
+ .flex-child-auto {
+ flex: 1 1 auto;
+ }
+
+ .flex-child-grow {
+ flex: 1 0 auto;
+ }
+
+ .flex-child-shrink {
+ flex: 0 1 auto;
+ }
+
+ @each $dir, $prop in $-zf-flex-direction {
+ .flex-dir-#{$dir} {
+ @include flex-direction($prop);
+ }
+ }
+
+ @if ($flexbox-responsive-breakpoints) {
+ // Loop through Responsive Breakpoints
+ @each $size in $breakpoint-classes {
+ @include breakpoint($size) {
+ @if $size != $-zf-zero-breakpoint {
+ .#{$size}-flex-container {
+ @include flex;
+ }
+
+ .#{$size}-flex-child-auto {
+ flex: 1 1 auto;
+ }
+
+ .#{$size}-flex-child-grow {
+ flex: 1 0 auto;
+ }
+
+ .#{$size}-flex-child-shrink {
+ flex: 0 1 auto;
+ }
+
+ @each $dir, $prop in $-zf-flex-direction {
+ .#{$size}-flex-dir-#{$dir} {
+ @include flex-direction($prop);
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
@mixin foundation-flex-classes {
// Horizontal alignment using justify-content
@each $hdir, $prop in map-remove($-zf-flex-justify, 'left') {
}
}
}
+
+ // Vanilla Flexbox Helpers
+ @include flex-helpers;
}
padding-left: 0;
}
-
- .flex-container {
- @include flex;
- }
-
- .flex-child-auto {
- flex: 1 1 auto;
- }
-
- .flex-child-grow {
- flex: 1 0 auto;
- }
-
- .flex-child-shrink {
- flex: 0 1 auto;
- }
-
- @each $dir, $prop in $-zf-flex-direction {
- .flex-dir-#{$dir} {
- @include flex-direction($prop);
- }
- }
-
@include -zf-each-breakpoint {
@for $i from 1 through $grid-column-count {
// Sizing (percentage)
}
}
- // direction helper classes
- @each $dir, $prop in $-zf-flex-direction {
- .#{$-zf-size}-flex-dir-#{$dir} {
- @include flex-direction($prop);
- }
- }
- // child helper classes
- .#{$-zf-size}-flex-child-auto {
- flex: 1 1 auto;
- }
-
- .#{$-zf-size}-flex-child-grow {
- flex: 1 0 auto;
- }
-
- .#{$-zf-size}-flex-child-shrink {
- flex: 0 1 auto;
- }
-
// Auto-stacking/unstacking
@at-root (without: media) {
.row.#{$-zf-size}-unstack {