Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/functions/_linear-gradient.scss

raw
1 @function linear-gradient($pos, $gradients...) {
2 $type: linear;
3 $pos-type: type-of(nth($pos, 1));
4
5 // if $pos doesn't exist, fix $gradient
6 @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
7 $gradients: zip($pos $gradients);
8 $pos: false;
9 }
10
11 $type-gradient: $type, $pos, $gradients;
12 @return $type-gradient;
13 }