summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss
diff options
context:
space:
mode:
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss')
-rw-r--r--debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss
new file mode 100644
index 0000000..3169a9c
--- /dev/null
+++ b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_radial-positions-parser.scss
@@ -0,0 +1,28 @@
+@function _radial-positions-parser($gradient-pos) {
+ @if $output-bourbon-deprecation-warnings == true {
+ @warn "[Bourbon] [Deprecation] `_radial-positions-parser` is " +
+ "deprecated and will be removed in 5.0.0.";
+ }
+
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
+ $output-bourbon-deprecation-warnings: false !global;
+
+ $shape-size: nth($gradient-pos, 1);
+ $pos: nth($gradient-pos, 2);
+ $shape-size-spec: _shape-size-stripper($shape-size);
+
+ $pre-spec: unquote(if($pos, "#{$pos}, ", null))
+ unquote(if($shape-size, "#{$shape-size},", null));
+ $pos-spec: if($pos, "at #{$pos}", null);
+
+ $spec: "#{$shape-size-spec} #{$pos-spec}";
+
+ // Add comma
+ @if ($spec != " ") {
+ $spec: "#{$spec},";
+ }
+
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
+
+ @return $pre-spec $spec;
+}