$gutter: $grid-column-gutter
) {
// Base properties
- flex: flex-grid-column($columns);
+ @include flex-grid-size($columns);
// Gutters
@if type-of($gutter) == 'map' {
padding-left: $padding;
padding-right: $padding;
}
-
- // max-width fixes IE 10/11 not respecting the flex-basis property
- @if $columns != null and $columns != shrink {
- max-width: grid-column($columns);
- }
}
/// Creates a block grid for a flex grid row.
}
}
+/// Changes the width flex grid column.
+/// @param {Mixed} $columns [null] - Width of the column. Refer to the `flex-grid-column()` function to see possible values.
+@mixin flex-grid-size($columns: null) {
+ flex: flex-grid-column($columns);
+
+ // max-width fixes IE 10/11 not respecting the flex-basis property
+ @if $columns != null and $columns != shrink {
+ max-width: grid-column($columns);
+ }
+}
+
/// Changes the source order of a flex grid column. Columns with lower numbers appear first in the layout.
/// @param {Number} $order [0] - Order number to apply.
@mixin flex-grid-order($order: 0) {