/// Give some flex children some col-based widths
/// Uses the `$columns--total` value from the settings file you can override it as well
/// @group layout
/// @parameter {number} $cols The number of columns you wish the element to span
/// @parameter {number} $total-cols [$columns--total] The total number of columns in that row
/// @parameter {measure} $gutter [$column-gutter] The amount of gutter in the column
///
/// @example scss Input
///   .four-flex-cols {
///     @include flex-cols(4);
///   }
///
///   .seven-flex-cols-of-15 {
///     @include flex-cols(7, 15);
///   }
///
/// @example css Output
///   .four-flex-cols {
///     max-width: 33.33333%;
///     flex-basis: 33.33333%;
///     padding-left: 10px;
///     padding-right: 10px;}
///
///   .seven-flex-cols-of-15 {
///     max-width: 46.66667%;
///     flex-basis: 46.66667%;
///     padding-left: 10px;
///     padding-right: 10px;}

@mixin flex-cols($cols, $total-cols: $columns--total, $gutter: $column-gutter) {
  max-width: percentage($cols / $total-cols);
  flex-basis: percentage($cols / $total-cols);
  padding-left: $gutter / 2;
  padding-right: $gutter / 2;
}
