@charset "UTF-8";

///
/// Determine the ratio of `$columns` to the total $grid-column count.
///
/// If `$columns` is more than one value, they are handed to
/// `flex-parse-columns()` which will determine the total columns and use this
/// value instead of `total-columns`.
///
/// @name flex-column-ratio
///
/// @param {String} $columns - The total number of columns in the grid. Default 12
/// @param {String} $su-grid-columns - The number of columns for the item to span
///
/// @group mixin
@function flex-column-ratio($columns, $grid-columns: $su-grid-columns) {
  @if length($columns) > 1 {
    @return nth($columns, 1) / flex-parse-columns($columns);
  }
  @else if $columns {
    @return $columns / $grid-columns;
  }
}
