Sha256: 08c1d4dd370720c5606ed6776eace639433e910737023d7deb71f775f4f0fe30
Contents?: true
Size: 553 Bytes
Versions: 5
Compression:
Stored size: 553 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); } @if $singularity-debug { @debug "Grid compounded to #{length($return)} columns"; } @return $return; }
Version data entries
5 entries across 5 versions & 1 rubygems