Sha256: 7641c3ce53164f639c5786abf1e3c9ba6533613d130fb91f03a8c2d773d15224

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

@function _radial-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));

  // $is-spec-syntax: str-index($first-val, "at");

  // @if $is-spec-syntax and $is-spec-syntax > 1 {
  //   $keyword: str-slice($first-val, 1, $is-spec-syntax - 2);
  //   $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));
  //   $pos: append($pos, $keyword, comma);

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

  // @else if $is-spec-syntax == 1 {
  //   $pos: str-slice($first-val, $is-spec-syntax + 3, str-length($first-val));

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

  // @else if str-index($image, "cover") or str-index($image, "contain") {
  //   @warn "Radial-gradient needs to be updated to conform to latest spec.";

  //   $gradients: (
  //     webkit-image: null,
  //     spec-image: $image
  //   )
  // }

  // @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/_radial-gradient-parser.scss