Sha256: d61f12998fbca6fd9eebc73226510f1ac1232abdfe709af0faeec727e3ac07c1
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
// Find column count @function column-count($columns) { @if type-of($columns) == number { @return $columns; } @if type-of($columns) == list { @return length($columns); } } // Context of gutters @function gutter-context($gutter, $context) { @return $gutter * 100% / $context; } // First or last column? $grid-location: ''; @mixin grid-location($span, $location, $columns) { $grid-location: ''; @if ($span + $location) > column-count($columns) { $grid-location: 'last'; } @else if $location == 1 { $grid-location: 'first'; } @else if $location == column-count($columns) { $grid-location: 'last'; } @else { $grid-location: 'middle'; } }
Version data entries
4 entries across 4 versions & 1 rubygems