isso/docs/_static/css/bourbon/functions/_linear-gradient.scss

14 lines
341 B
SCSS
Raw Normal View History

2013-11-24 20:43:57 +00:00
@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;
}