Sha256: 0947e9c693b0d03a22abaa76eccbac0d52b6cc3d8a5ac6a887e67989bba04a27

Contents?: true

Size: 674 Bytes

Versions: 8

Compression:

Stored size: 674 Bytes

Contents

@charset "UTF-8";
/// Determine the ratio of `$columns` to the total column count.
/// If `$columns` is more than one value, they are handed to
/// `_neat-parse-columns()` which will detirmine the total columns and use this
/// value instead of `total-columns`.
///
/// @argument {map} $grid
///
/// @argument {number | list} $columns
///
/// @return {number}
///
/// @example scss
///   _neat-column-ratio($grid, 3)
///
/// @access private

@function _neat-column-ratio($grid, $columns) {
  @if length($columns) > 1 {
    @return nth($columns, 1) / _neat-parse-columns($columns);
  } @else if $columns {
    @return $columns / _retrieve-neat-setting($grid, columns);
  }
}

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
personally-developed-2.1.0 _sass/personally-developed/neat/functions/_neat-column-ratio.scss
personally-developed-2.0.0 _sass/personally-developed/neat/functions/_neat-column-ratio.scss
dta_rapid-0.2.5 _sass/vendor/neat/neat/functions/_neat-column-ratio.scss
dta_rapid-0.2.4 _sass/vendor/neat/neat/functions/_neat-column-ratio.scss
neat-2.0.0 core/neat/functions/_neat-column-ratio.scss
neat-2.0.0.beta.2 core/neat/functions/_neat-column-ratio.scss
neat-2.0.0.beta.1 core/neat/functions/_neat-column-ratio.scss
neat-2.0.0.alpha.1 core/neat/functions/_neat-column-ratio.scss