Sha256: f398e995fc411fd32c277a3714761747e892510b356858a4c70c45f219944b22
Contents?: true
Size: 341 Bytes
Versions: 308
Compression:
Stored size: 341 Bytes
Contents
@function linear-gradient($pos, $gradients...) { $type: linear; $pos-type: type-of(nth($pos, 1)); // if $pos doesn't exist, fix $gradient @if ($pos-type == color) or (nth($pos, 1) == "transparent") { $gradients: zip($pos $gradients); $pos: false; } $type-gradient: $type, $pos, $gradients; @return $type-gradient; }
Version data entries
308 entries across 302 versions & 9 rubygems