Sha256: f965538e5c9ea192ba5a4a2fb9472f8387fa78035e93dc008ff7b63c44c30330

Contents?: true

Size: 667 Bytes

Versions: 14

Compression:

Stored size: 667 Bytes

Contents

@charset "UTF-8";
/// Return a calulated column width that can then be passed in to a `calc()`.
///
/// @argument {map} $grid
///
/// @argument {number} $columns
///
/// @return {string}
///
/// @example scss
///   _neat-column-width($neat-grid, 4)
///
/// @access private

@function _neat-column-width($grid, $columns) {
  $_column-ratio: _neat-column-ratio($grid, $columns);
  $_gutter: _retrieve-neat-setting($grid, gutter);

  @if $_gutter == 0 {
    @return unquote("#{percentage($_column-ratio)}");
  } @else {
    $_gutter-affordance: $_gutter + ($_gutter * $_column-ratio);
    @return unquote("#{percentage($_column-ratio)} - #{$_gutter-affordance}");
  }
}

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
neat-4.0.0 core/neat/functions/_neat-column-width.scss
neat-3.0.1 core/neat/functions/_neat-column-width.scss
neat-3.0.0 core/neat/functions/_neat-column-width.scss
lifenode-0.0.0 _sass/lifenode/neat/neat/functions/_neat-column-width.scss
dream-theme-0.1.0 _sass/neat/neat/functions/_neat-column-width.scss
neat-2.1.0 core/neat/functions/_neat-column-width.scss
personally-developed-2.1.0 _sass/personally-developed/neat/functions/_neat-column-width.scss
personally-developed-2.0.0 _sass/personally-developed/neat/functions/_neat-column-width.scss
dta_rapid-0.2.5 _sass/vendor/neat/neat/functions/_neat-column-width.scss
dta_rapid-0.2.4 _sass/vendor/neat/neat/functions/_neat-column-width.scss
neat-2.0.0 core/neat/functions/_neat-column-width.scss
neat-2.0.0.beta.2 core/neat/functions/_neat-column-width.scss
neat-2.0.0.beta.1 core/neat/functions/_neat-column-width.scss
neat-2.0.0.alpha.1 core/neat/functions/_neat-column-width.scss