| 1 |
@function _radial-positions-parser($gradient-pos) { |
| 2 |
@if $output-bourbon-deprecation-warnings == true { |
| 3 |
@warn "[Bourbon] [Deprecation] `_radial-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 |
$shape-size: nth($gradient-pos, 1); |
| 11 |
$pos: nth($gradient-pos, 2); |
| 12 |
$shape-size-spec: _shape-size-stripper($shape-size); |
| 13 |
|
| 14 |
$pre-spec: unquote(if($pos, "#{$pos}, ", null)) |
| 15 |
unquote(if($shape-size, "#{$shape-size},", null)); |
| 16 |
$pos-spec: if($pos, "at #{$pos}", null); |
| 17 |
|
| 18 |
$spec: "#{$shape-size-spec} #{$pos-spec}"; |
| 19 |
|
| 20 |
// Add comma |
| 21 |
@if ($spec != " ") { |
| 22 |
$spec: "#{$spec},"; |
| 23 |
} |
| 24 |
|
| 25 |
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global; |
| 26 |
|
| 27 |
@return $pre-spec $spec; |
| 28 |
} |