diff options
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-angle-parser.scss')
-rw-r--r-- | debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-angle-parser.scss | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-angle-parser.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-angle-parser.scss new file mode 100644 index 0000000..8948860 --- /dev/null +++ b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-angle-parser.scss @@ -0,0 +1,35 @@ +// Private function for linear-gradient-parser +@function _linear-angle-parser($image, $first-val, $prefix, $suffix) { + @if $output-bourbon-deprecation-warnings == true { + @warn "[Bourbon] [Deprecation] `_linear-angle-parser` is " + + "deprecated and will be removed in 5.0.0."; + } + + $offset: null; + $unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val)); + $unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val)); + + @if ($unit-long == "grad") or + ($unit-long == "turn") { + $offset: if($unit-long == "grad", -100grad * 3, -0.75turn); + } + + @else if ($unit-short == "deg") or + ($unit-short == "rad") { + $offset: if($unit-short == "deg", -90 * 3, 1.6rad); + } + + @if $offset { + $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings; + $output-bourbon-deprecation-warnings: false !global; + + $num: _str-to-num($first-val); + + $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global; + + @return ( + webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix, + spec-image: $image + ); + } +} |