summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss
diff options
context:
space:
mode:
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss')
-rw-r--r--debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss
new file mode 100644
index 0000000..25980f4
--- /dev/null
+++ b/debian/missing-sources/bourbon/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss
@@ -0,0 +1,41 @@
+// Private function for linear-gradient-parser
+@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
+ @if $output-bourbon-deprecation-warnings == true {
+ @warn "[Bourbon] [Deprecation] `_linear-side-corner-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;
+
+ $val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
+ $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
+ $val-3: null;
+ $has-val-3: str-index($val-2, " ");
+
+ @if $has-val-3 {
+ $val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
+ $val-2: str-slice($val-2, 1, $has-val-3 - 1);
+ }
+
+ $pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
+ $pos: unquote($pos + "");
+
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
+
+ // Use old spec for webkit
+ @if $val-1 == "to" {
+ @return (
+ webkit-image: -webkit- + $prefix + $pos + $suffix,
+ spec-image: $image
+ );
+ }
+
+ // Bring the code up to spec
+ @else {
+ @return (
+ webkit-image: -webkit- + $image,
+ spec-image: $prefix + "to " + $pos + $suffix
+ );
+ }
+}