Sha256: d869bdfd0d7bedd045526f6448332e41244688e169bfd7c9140678749cf4446a

Contents?: true

Size: 467 Bytes

Versions: 15

Compression:

Stored size: 467 Bytes

Contents

@function gutter-span($gutter: false, $grid: false, $gutter-style: false) {

  // Find the columns and gutters
  $grid: find-grid($grid);
  $gutter: find-gutter($gutter);
  $gutter-style: find-gutter-style($gutter-style);

  @if fixed-gutter($grid, $gutter, $gutter-style) {
    @return nth($gutter, 1);
  }

  // Combine the columns and gutters
  $grid-and-gutters: column-sum($grid, $gutter, $gutter-style);

  @return (nth($gutter, 1) / $grid-and-gutters) * 100%
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
singularitygs-1.8.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.7.1 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.7.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.6.2 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.6.1 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.5.1 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.5.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.4.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.3.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.3 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.1 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.0 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.0.rc.6 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.0.rc.3 stylesheets/singularitygs/math/_gutters.scss
singularitygs-1.2.0.rc.1 stylesheets/singularitygs/math/_gutters.scss