Sha256: e303850076bc97398f6d373d43f9fc58cc47eb8d0be34ad86b8acdfb139cea1e
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
// Creates a list based on a ratio // Valid options for $start: 'large' or 'small' @function ratio($ratio, $steps, $start: 'small') { $x: 1; $return: (); @for $i from 0 through $steps - 1 { $xr: $x * pow($ratio, $i); $return: append($return, $xr); } @if $start == 'small' and $ratio < 1 { $return: reverse($return); } @else if $start == 'large' and $ratio > 1 { $return: reverse($return); } @return $return; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
singularity-extras-0.0.3 | stylesheets/singularity-extras/generators/_ratio.scss |
singularity-extras-0.0.2 | stylesheets/singularity-extras/generators/_ratio.scss |