Sha256: 76c4a8efa1b085ee8393326e27d0216bc819ca603e6105c969f1da1248637a0c
Contents?: true
Size: 802 Bytes
Versions: 1
Compression:
Stored size: 802 Bytes
Contents
// Replaces $old by $new in $list // ------------------------------------------------------------------------------- // @documentation http://sassylists.com/documentation.html#replace // ------------------------------------------------------------------------------- // @param $list [list] : list // @param $old [literal] : value to replace // @param $value [literal] : new value for $old // ------------------------------------------------------------------------------- // @return [list] @function flint-replace($list, $old, $value) { $running: true; @while $running { $index: index($list, $old); @if not $index { $running: false; } @else { $list: set-nth($list, $index, $value); } } @return if(not flint-is-true($value), flint-purge($list), $list); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flint-gs-1.7.1 | stylesheets/flint/functions/lib/_replace.scss |