_gradient-positions-parser.scss 480 B

12345678910111213
  1. @function _gradient-positions-parser($gradient-type, $gradient-positions) {
  2. @if $gradient-positions
  3. and ($gradient-type == linear)
  4. and (type-of($gradient-positions) != color) {
  5. $gradient-positions: _linear-positions-parser($gradient-positions);
  6. }
  7. @else if $gradient-positions
  8. and ($gradient-type == radial)
  9. and (type-of($gradient-positions) != color) {
  10. $gradient-positions: _radial-positions-parser($gradient-positions);
  11. }
  12. @return $gradient-positions;
  13. }