Sha256: 785d1514b82e3b14a25583fa439d8495e2e25f804696fda22f3513fb77cac18d
Contents?: true
Size: 529 Bytes
Versions: 10
Compression:
Stored size: 529 Bytes
Contents
@mixin col-span($span: $columns of $total-columns, $gutter: 0) { $columns: nth($span, 1); $container-columns: nth($span, 3); @if ($gutter != 0 and unit($gutter) != "%") { @error "The col-span mixin can only be used if there is no gutter or the gutter's unit is %"; } $single-column-width: (100% - ($gutter * ($container-columns - 1))) / $container-columns; $spanned-width: $single-column-width * $columns; $spanned-gutters-width: $gutter * ($columns - 1); width: $spanned-width + $spanned-gutters-width; }
Version data entries
10 entries across 10 versions & 1 rubygems