| 1 |
@function _gradient-positions-parser($gradient-type, $gradient-positions) { |
| 2 |
@if $output-bourbon-deprecation-warnings == true { |
| 3 |
@warn "[Bourbon] [Deprecation] `_gradient-positions-parser` is " + |
| 4 |
"deprecated and will be removed in 5.0.0."; |
| 5 |
} |
| 6 |
|
| 7 |
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings; |
| 8 |
$output-bourbon-deprecation-warnings: false !global; |
| 9 |
|
| 10 |
@if $gradient-positions |
| 11 |
and ($gradient-type == linear) |
| 12 |
and (type-of($gradient-positions) != color) { |
| 13 |
$gradient-positions: _linear-positions-parser($gradient-positions); |
| 14 |
} |
| 15 |
@else if $gradient-positions |
| 16 |
and ($gradient-type == radial) |
| 17 |
and (type-of($gradient-positions) != color) { |
| 18 |
$gradient-positions: _radial-positions-parser($gradient-positions); |
| 19 |
} |
| 20 |
|
| 21 |
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global; |
| 22 |
|
| 23 |
@return $gradient-positions; |
| 24 |
} |