Sha256: 0a86de8120bb0d4e373f7e455021f0b7168ee3f9665f0200c15502322fa03b24
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 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, comma); } @if $start == 'small' and $ratio < 1 { $return: reverse($return); } @else if $start == 'large' and $ratio > 1 { $return: reverse($return); } @return $return; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
singularity-extras-0.0.1 | stylesheets/singularity-extras/generators/_ratio.scss |