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

Version Path
daiblogs-0.2.1 _sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.2.0 _sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.1.5 _sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.1.4 _sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.1.2 assets/_sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.1.1 assets/_sass/bourbon/functions/_linear-gradient.scss
daiblogs-0.1.0 assets/_sass/bourbon/functions/_linear-gradient.scss
moovui-0.1.4 app/assets/stylesheets/bourbon/functions/_linear-gradient.scss
smock-0.1.268 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.267 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.266 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.265 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.264 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.263 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.262 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.261 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.260 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.258 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss
smock-0.1.256 app/assets/stylesheets/thirdparty/bourbon/functions/_linear-gradient.scss