Sha256: a271af91e8936338b15f9d9d43d1f5d6d6df8d33b2362d39c118c84c2a069d4f

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

@function _linear-gradient-parser($image) {
  // $image: unquote($image);
  // $gradients: ();
  // $start: str-index($image, "(");
  // $end: str-index($image, ",");
  // $first-val: str-slice($image, $start + 1, $end - 1);

  // $prefix: str-slice($image, 0, $start);
  // $suffix: str-slice($image, $end, str-length($image));

  // $has-multiple-vals: str-index($first-val, " ");
  // $has-single-position: unquote(_position-flipper($first-val) + "");
  // $has-angle: _is-num(str-slice($first-val, 0, 0));

  // @if $has-multiple-vals {
  //   $gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals);
  // }

  // @else if $has-single-position != "" {
  //   $pos: unquote($has-single-position + "");

  //   $gradients: (
  //     webkit-image: -webkit- + $image,
  //     spec-image: $prefix + "to " + $pos + $suffix
  //   );
  // }

  // @else if $has-angle {
  //   // Rotate degree for webkit
  //   $gradients: _linear-angle-parser($image, $first-val, $prefix, $suffix);
  // }

  // @else {
  //   $gradients: (
  //     webkit-image: -webkit- + $image,
  //     spec-image: $image
  //   );
  // }

  // @return $gradients;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refills-0.0.2 source/stylesheets/bourbon/helpers/_linear-gradient-parser.scss