bourbon 4.2.3 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.npmignore +2 -1
  4. data/.scss-lint.yml +142 -1
  5. data/CHANGELOG.md +47 -0
  6. data/LICENSE.md +1 -1
  7. data/README.md +21 -7
  8. data/app/assets/stylesheets/_bourbon-deprecate.scss +19 -0
  9. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +28 -14
  10. data/app/assets/stylesheets/_bourbon.scss +5 -2
  11. data/app/assets/stylesheets/addons/_border-color.scss +3 -0
  12. data/app/assets/stylesheets/addons/_border-style.scss +3 -0
  13. data/app/assets/stylesheets/addons/_border-width.scss +3 -0
  14. data/app/assets/stylesheets/addons/_buttons.scss +5 -0
  15. data/app/assets/stylesheets/addons/_margin.scss +3 -0
  16. data/app/assets/stylesheets/addons/_padding.scss +3 -0
  17. data/app/assets/stylesheets/addons/_position.scss +3 -0
  18. data/app/assets/stylesheets/addons/_retina-image.scss +2 -0
  19. data/app/assets/stylesheets/addons/_size.scss +5 -0
  20. data/app/assets/stylesheets/addons/_text-inputs.scss +6 -0
  21. data/app/assets/stylesheets/css3/_animation.scss +18 -0
  22. data/app/assets/stylesheets/css3/_appearance.scss +2 -0
  23. data/app/assets/stylesheets/css3/_backface-visibility.scss +2 -0
  24. data/app/assets/stylesheets/css3/_background-image.scss +4 -2
  25. data/app/assets/stylesheets/css3/_background.scss +4 -2
  26. data/app/assets/stylesheets/css3/_border-image.scss +4 -2
  27. data/app/assets/stylesheets/css3/_calc.scss +2 -0
  28. data/app/assets/stylesheets/css3/_columns.scss +21 -1
  29. data/app/assets/stylesheets/css3/_filter.scss +2 -0
  30. data/app/assets/stylesheets/css3/_flex-box.scss +40 -0
  31. data/app/assets/stylesheets/css3/_font-face.scss +5 -0
  32. data/app/assets/stylesheets/css3/_font-feature-settings.scss +2 -0
  33. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +2 -0
  34. data/app/assets/stylesheets/css3/_hyphens.scss +2 -0
  35. data/app/assets/stylesheets/css3/_image-rendering.scss +1 -0
  36. data/app/assets/stylesheets/css3/_keyframes.scss +2 -0
  37. data/app/assets/stylesheets/css3/_linear-gradient.scss +2 -0
  38. data/app/assets/stylesheets/css3/_perspective.scss +4 -0
  39. data/app/assets/stylesheets/css3/_placeholder.scss +2 -0
  40. data/app/assets/stylesheets/css3/_radial-gradient.scss +3 -2
  41. data/app/assets/stylesheets/css3/_selection.scss +2 -0
  42. data/app/assets/stylesheets/css3/_text-decoration.scss +8 -0
  43. data/app/assets/stylesheets/css3/_transform.scss +6 -0
  44. data/app/assets/stylesheets/css3/_transition.scss +10 -0
  45. data/app/assets/stylesheets/css3/_user-select.scss +2 -0
  46. data/app/assets/stylesheets/functions/_assign-inputs.scss +5 -0
  47. data/app/assets/stylesheets/functions/_contains-falsy.scss +5 -0
  48. data/app/assets/stylesheets/functions/_contains.scss +5 -0
  49. data/app/assets/stylesheets/functions/_is-length.scss +5 -0
  50. data/app/assets/stylesheets/functions/_is-light.scss +5 -0
  51. data/app/assets/stylesheets/functions/_is-number.scss +5 -0
  52. data/app/assets/stylesheets/functions/_is-size.scss +10 -0
  53. data/app/assets/stylesheets/functions/_modular-scale.scss +5 -0
  54. data/app/assets/stylesheets/functions/_px-to-em.scss +11 -0
  55. data/app/assets/stylesheets/functions/_px-to-rem.scss +11 -0
  56. data/app/assets/stylesheets/functions/_strip-units.scss +5 -0
  57. data/app/assets/stylesheets/functions/_transition-property-name.scss +15 -0
  58. data/app/assets/stylesheets/functions/_unpack.scss +5 -0
  59. data/app/assets/stylesheets/helpers/_convert-units.scss +5 -0
  60. data/app/assets/stylesheets/helpers/_directional-values.scss +12 -0
  61. data/app/assets/stylesheets/helpers/_font-source-declaration.scss +10 -0
  62. data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +11 -0
  63. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +10 -0
  64. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +12 -2
  65. data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +18 -2
  66. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +12 -2
  67. data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +5 -0
  68. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +6 -1
  69. data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +10 -0
  70. data/app/assets/stylesheets/helpers/_render-gradients.scss +5 -0
  71. data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +5 -0
  72. data/app/assets/stylesheets/helpers/_str-to-num.scss +5 -0
  73. data/app/assets/stylesheets/settings/_deprecation-warnings.scss +8 -0
  74. data/bourbon.gemspec +6 -6
  75. data/bower.json +1 -1
  76. data/circle.yml +10 -0
  77. data/eyeglass-exports.js +7 -0
  78. data/index.js +7 -0
  79. data/lib/bourbon/version.rb +1 -1
  80. data/package.json +7 -2
  81. data/spec/bourbon/addons/text_inputs_spec.rb +1 -0
  82. data/spec/bourbon/functions/shade_spec.rb +2 -2
  83. data/spec/bourbon/functions/tint_spec.rb +2 -2
  84. data/spec/fixtures/functions/shade.scss +2 -2
  85. data/spec/fixtures/functions/tint.scss +2 -2
  86. metadata +34 -30
  87. data/.travis.yml +0 -7
@@ -6,6 +6,9 @@
6
6
  $asset-pipeline: $asset-pipeline,
7
7
  $file-formats: eot woff2 woff ttf svg) {
8
8
 
9
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
10
+ $output-bourbon-deprecation-warnings: false !global;
11
+
9
12
  $font-url-prefix: font-url-prefixer($asset-pipeline);
10
13
 
11
14
  @font-face {
@@ -21,4 +24,6 @@
21
24
  $font-url-prefix
22
25
  );
23
26
  }
27
+
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
24
29
  }
@@ -1,4 +1,6 @@
1
1
  @mixin font-feature-settings($settings...) {
2
+ @include _bourbon-deprecate-for-prefixing("font-feature-settings");
3
+
2
4
  @if length($settings) == 0 { $settings: none; }
3
5
  @include prefixer(font-feature-settings, $settings, webkit moz ms spec);
4
6
  }
@@ -1,5 +1,7 @@
1
1
  // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
2
2
  @mixin hidpi($ratio: 1.3) {
3
+ @include _bourbon-deprecate-for-prefixing("hidpi");
4
+
3
5
  @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
4
6
  only screen and (min--moz-device-pixel-ratio: $ratio),
5
7
  only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
@@ -1,4 +1,6 @@
1
1
  @mixin hyphens($hyphenation: none) {
2
+ @include _bourbon-deprecate-for-prefixing("hyphens");
3
+
2
4
  // none | manual | auto
3
5
  @include prefixer(hyphens, $hyphenation, webkit moz ms spec);
4
6
  }
@@ -1,4 +1,5 @@
1
1
  @mixin image-rendering ($mode:auto) {
2
+ @include _bourbon-deprecate-for-prefixing("image-rendering");
2
3
 
3
4
  @if ($mode == crisp-edges) {
4
5
  -ms-interpolation-mode: nearest-neighbor; // IE8+
@@ -1,5 +1,7 @@
1
1
  // Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
2
2
  @mixin keyframes($name) {
3
+ @include _bourbon-deprecate-for-prefixing("keyframes");
4
+
3
5
  $original-prefix-for-webkit: $prefix-for-webkit;
4
6
  $original-prefix-for-mozilla: $prefix-for-mozilla;
5
7
  $original-prefix-for-microsoft: $prefix-for-microsoft;
@@ -4,6 +4,8 @@
4
4
  $g7: null, $g8: null,
5
5
  $g9: null, $g10: null,
6
6
  $fallback: null) {
7
+ @include _bourbon-deprecate-for-prefixing("linear-gradient");
8
+
7
9
  // Detect what type of value exists in $pos
8
10
  $pos-type: type-of(nth($pos, 1));
9
11
  $pos-spec: null;
@@ -1,8 +1,12 @@
1
1
  @mixin perspective($depth: none) {
2
+ @include _bourbon-deprecate-for-prefixing("perspective");
3
+
2
4
  // none | <length>
3
5
  @include prefixer(perspective, $depth, webkit moz spec);
4
6
  }
5
7
 
6
8
  @mixin perspective-origin($value: 50% 50%) {
9
+ @include _bourbon-deprecate-for-prefixing("perspective-origin");
10
+
7
11
  @include prefixer(perspective-origin, $value, webkit moz spec);
8
12
  }
@@ -1,4 +1,6 @@
1
1
  @mixin placeholder {
2
+ @include _bourbon-deprecate-for-prefixing("placeholder");
3
+
2
4
  $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
3
5
  @each $placeholder in $placeholders {
4
6
  &:#{$placeholder}-placeholder {
@@ -7,6 +7,7 @@
7
7
  $pos: null,
8
8
  $shape-size: null,
9
9
  $fallback: null) {
10
+ @include _bourbon-deprecate-for-prefixing("radial-gradient");
10
11
 
11
12
  $data: _radial-arg-parser($g1, $g2, $pos, $shape-size);
12
13
  $g1: nth($data, 1);
@@ -34,6 +35,6 @@
34
35
  $shape-size-spec: if(($shape-size-spec != " ") and ($pos == null), "#{$shape-size-spec}, ", "#{$shape-size-spec} ");
35
36
 
36
37
  background-color: $fallback-color;
37
- background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full}));
38
- background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})");
38
+ background-image: -webkit-radial-gradient(#{$pos}#{$shape-size}#{$full});
39
+ background-image: radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full});
39
40
  }
@@ -22,6 +22,8 @@
22
22
  /// }
23
23
 
24
24
  @mixin selection($current-selector: false) {
25
+ @include _bourbon-deprecate-for-prefixing("selection");
26
+
25
27
  @if $current-selector {
26
28
  &::-moz-selection {
27
29
  @content;
@@ -1,19 +1,27 @@
1
1
  @mixin text-decoration($value) {
2
+ @include _bourbon-deprecate-for-prefixing("text-decoration");
3
+
2
4
  // <text-decoration-line> || <text-decoration-style> || <text-decoration-color>
3
5
  @include prefixer(text-decoration, $value, moz);
4
6
  }
5
7
 
6
8
  @mixin text-decoration-line($line: none) {
9
+ @include _bourbon-deprecate-for-prefixing("text-decoration-line");
10
+
7
11
  // none || underline || overline || line-through
8
12
  @include prefixer(text-decoration-line, $line, moz);
9
13
  }
10
14
 
11
15
  @mixin text-decoration-style($style: solid) {
16
+ @include _bourbon-deprecate-for-prefixing("text-decoration-style");
17
+
12
18
  // solid || double || dotted || dashed || wavy
13
19
  @include prefixer(text-decoration-style, $style, moz webkit);
14
20
  }
15
21
 
16
22
  @mixin text-decoration-color($color: currentColor) {
23
+ @include _bourbon-deprecate-for-prefixing("text-decoration-color");
24
+
17
25
  // currentColor || <color>
18
26
  @include prefixer(text-decoration-color, $color, moz);
19
27
  }
@@ -1,9 +1,13 @@
1
1
  @mixin transform($property: none) {
2
+ @include _bourbon-deprecate-for-prefixing("transform");
3
+
2
4
  // none | <transform-function>
3
5
  @include prefixer(transform, $property, webkit moz ms o spec);
4
6
  }
5
7
 
6
8
  @mixin transform-origin($axes: 50%) {
9
+ @include _bourbon-deprecate-for-prefixing("transform-origin");
10
+
7
11
  // x-axis - left | center | right | length | %
8
12
  // y-axis - top | center | bottom | length | %
9
13
  // z-axis - length
@@ -11,5 +15,7 @@
11
15
  }
12
16
 
13
17
  @mixin transform-style($style: flat) {
18
+ @include _bourbon-deprecate-for-prefixing("transform-style");
19
+
14
20
  @include prefixer(transform-style, $style, webkit moz ms o spec);
15
21
  }
@@ -4,6 +4,8 @@
4
4
  // @include transition-property (transform, opacity);
5
5
 
6
6
  @mixin transition($properties...) {
7
+ @include _bourbon-deprecate-for-prefixing("transition");
8
+
7
9
  // Fix for vendor-prefix transform property
8
10
  $needs-prefixes: false;
9
11
  $webkit: ();
@@ -52,20 +54,28 @@
52
54
  }
53
55
 
54
56
  @mixin transition-property($properties...) {
57
+ @include _bourbon-deprecate-for-prefixing("transition-property");
58
+
55
59
  -webkit-transition-property: transition-property-names($properties, "webkit");
56
60
  -moz-transition-property: transition-property-names($properties, "moz");
57
61
  transition-property: transition-property-names($properties, false);
58
62
  }
59
63
 
60
64
  @mixin transition-duration($times...) {
65
+ @include _bourbon-deprecate-for-prefixing("transition-duration");
66
+
61
67
  @include prefixer(transition-duration, $times, webkit moz spec);
62
68
  }
63
69
 
64
70
  @mixin transition-timing-function($motions...) {
71
+ @include _bourbon-deprecate-for-prefixing("transition-timing-function");
72
+
65
73
  // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
66
74
  @include prefixer(transition-timing-function, $motions, webkit moz spec);
67
75
  }
68
76
 
69
77
  @mixin transition-delay($times...) {
78
+ @include _bourbon-deprecate-for-prefixing("transition-delay");
79
+
70
80
  @include prefixer(transition-delay, $times, webkit moz spec);
71
81
  }
@@ -1,3 +1,5 @@
1
1
  @mixin user-select($value: none) {
2
+ @include _bourbon-deprecate-for-prefixing("user-select");
3
+
2
4
  @include prefixer(user-select, $value, webkit moz ms spec);
3
5
  }
@@ -1,4 +1,9 @@
1
1
  @function assign-inputs($inputs, $pseudo: null) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `assign-inputs` is deprecated and will be " +
4
+ "removed in 5.0.0.";
5
+ }
6
+
2
7
  $list: ();
3
8
 
4
9
  @each $input in $inputs {
@@ -10,6 +10,11 @@
10
10
  /// @return {Bool}
11
11
 
12
12
  @function contains-falsy($list) {
13
+ @if $output-bourbon-deprecation-warnings == true {
14
+ @warn "[Bourbon] [Deprecation] `contains-falsy` is deprecated and will be " +
15
+ "removed in 5.0.0.";
16
+ }
17
+
13
18
  @each $item in $list {
14
19
  @if not $item {
15
20
  @return true;
@@ -16,6 +16,11 @@
16
16
  /// @return {Bool}
17
17
 
18
18
  @function contains($list, $values...) {
19
+ @if $output-bourbon-deprecation-warnings == true {
20
+ @warn "[Bourbon] [Deprecation] `contains` is deprecated and will be " +
21
+ "removed in 5.0.0.";
22
+ }
23
+
19
24
  @each $value in $values {
20
25
  @if type-of(index($list, $value)) != "number" {
21
26
  @return false;
@@ -5,6 +5,11 @@
5
5
  /// @param {String} $value
6
6
 
7
7
  @function is-length($value) {
8
+ @if $output-bourbon-deprecation-warnings == true {
9
+ @warn "[Bourbon] [Deprecation] `is-length` is deprecated and will be " +
10
+ "removed in 5.0.0.";
11
+ }
12
+
8
13
  @return type-of($value) != "null" and (str-slice($value + "", 1, 4) == "calc"
9
14
  or index(auto inherit initial 0, $value)
10
15
  or (type-of($value) == "number" and not(unitless($value))));
@@ -12,6 +12,11 @@
12
12
  /// @return {Bool}
13
13
 
14
14
  @function is-light($hex-color) {
15
+ @if $output-bourbon-deprecation-warnings == true {
16
+ @warn "[Bourbon] [Deprecation] `is-light` is deprecated and will be " +
17
+ "removed in 5.0.0.";
18
+ }
19
+
15
20
  $-local-red: red(rgba($hex-color, 1));
16
21
  $-local-green: green(rgba($hex-color, 1));
17
22
  $-local-blue: blue(rgba($hex-color, 1));
@@ -7,5 +7,10 @@
7
7
  /// @require {function} contains
8
8
 
9
9
  @function is-number($value) {
10
+ @if $output-bourbon-deprecation-warnings == true {
11
+ @warn "[Bourbon] [Deprecation] `is-number` is deprecated and will be " +
12
+ "removed in 5.0.0.";
13
+ }
14
+
10
15
  @return contains("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" 0 1 2 3 4 5 6 7 8 9, $value);
11
16
  }
@@ -8,6 +8,16 @@
8
8
  /// @require {function} is-length
9
9
 
10
10
  @function is-size($value) {
11
+ @if $output-bourbon-deprecation-warnings == true {
12
+ @warn "[Bourbon] [Deprecation] `is-size` is deprecated and will be " +
13
+ "removed in 5.0.0.";
14
+ }
15
+
16
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
17
+ $output-bourbon-deprecation-warnings: false !global;
18
+
11
19
  @return is-length($value)
12
20
  or contains("fill" "fit-content" "min-content" "max-content", $value);
21
+
22
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
13
23
  }
@@ -17,9 +17,14 @@ $major-eleventh: 2.667;
17
17
  $major-twelfth: 3;
18
18
  $double-octave: 4;
19
19
 
20
+ $user-output-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
21
+ $output-bourbon-deprecation-warnings: false;
22
+
20
23
  $modular-scale-ratio: $perfect-fourth !default;
21
24
  $modular-scale-base: em($em-base) !default;
22
25
 
26
+ $output-bourbon-deprecation-warnings: $user-output-deprecation-warnings-setting;
27
+
23
28
  @function modular-scale($increment, $value: $modular-scale-base, $ratio: $modular-scale-ratio) {
24
29
  $v1: nth($value, 1);
25
30
  $v2: nth($value, length($value));
@@ -3,11 +3,22 @@
3
3
  // if the parent is another value say 24px write em(12, 24)
4
4
 
5
5
  @function em($pxval, $base: $em-base) {
6
+ @if $output-bourbon-deprecation-warnings == true {
7
+ @warn "[Bourbon] [Deprecation] `em` is deprecated and will be " +
8
+ "removed in 5.0.0.";
9
+ }
10
+
11
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
12
+ $output-bourbon-deprecation-warnings: false !global;
13
+
6
14
  @if not unitless($pxval) {
7
15
  $pxval: strip-units($pxval);
8
16
  }
9
17
  @if not unitless($base) {
10
18
  $base: strip-units($base);
11
19
  }
20
+
21
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
22
+
12
23
  @return ($pxval / $base) * 1em;
13
24
  }
@@ -3,6 +3,14 @@
3
3
  // Assumes $em-base is the font-size of <html>
4
4
 
5
5
  @function rem($pxval) {
6
+ @if $output-bourbon-deprecation-warnings == true {
7
+ @warn "[Bourbon] [Deprecation] `rem` is deprecated and will be " +
8
+ "removed in 5.0.0.";
9
+ }
10
+
11
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
12
+ $output-bourbon-deprecation-warnings: false !global;
13
+
6
14
  @if not unitless($pxval) {
7
15
  $pxval: strip-units($pxval);
8
16
  }
@@ -11,5 +19,8 @@
11
19
  @if not unitless($base) {
12
20
  $base: strip-units($base);
13
21
  }
22
+
23
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
24
+
14
25
  @return ($pxval / $base) * 1rem;
15
26
  }
@@ -13,5 +13,10 @@
13
13
  /// @return {Number (Unitless)}
14
14
 
15
15
  @function strip-units($value) {
16
+ @if $output-bourbon-deprecation-warnings == true {
17
+ @warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
18
+ "removed in 5.0.0 and replaced by the `strip-unit` function.";
19
+ }
20
+
16
21
  @return ($value / ($value * 0 + 1));
17
22
  }
@@ -2,16 +2,31 @@
2
2
  // Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
3
3
  //************************************************************************//
4
4
  @function transition-property-names($props, $vendor: false) {
5
+ @if $output-bourbon-deprecation-warnings == true {
6
+ @warn "[Bourbon] [Deprecation] `transition-property-names` is deprecated " +
7
+ "and will be removed in 5.0.0.";
8
+ }
9
+
10
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
11
+ $output-bourbon-deprecation-warnings: false !global;
12
+
5
13
  $new-props: ();
6
14
 
7
15
  @each $prop in $props {
8
16
  $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
9
17
  }
10
18
 
19
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
20
+
11
21
  @return $new-props;
12
22
  }
13
23
 
14
24
  @function transition-property-name($prop, $vendor: false) {
25
+ @if $output-bourbon-deprecation-warnings == true {
26
+ @warn "[Bourbon] [Deprecation] `transition-property-name` is deprecated " +
27
+ "and will be removed in 5.0.0.";
28
+ }
29
+
15
30
  // put other properties that need to be prefixed here aswell
16
31
  @if $vendor and $prop == transform {
17
32
  @return unquote('-'+$vendor+'-'+$prop);
@@ -15,6 +15,11 @@
15
15
  /// }
16
16
 
17
17
  @function unpack($shorthand) {
18
+ @if $output-bourbon-deprecation-warnings == true {
19
+ @warn "[Bourbon] [Deprecation] `unpack` is deprecated and will be " +
20
+ "removed in 5.0.0.";
21
+ }
22
+
18
23
  @if length($shorthand) == 1 {
19
24
  @return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
20
25
  } @else if length($shorthand) == 2 {
@@ -3,6 +3,11 @@
3
3
  // Source: http://sassmeister.com/gist/9647408
4
4
  //************************************************************************//
5
5
  @function _convert-units($number, $unit) {
6
+ @if $output-bourbon-deprecation-warnings == true {
7
+ @warn "[Bourbon] [Deprecation] `_convert-units` is deprecated and will " +
8
+ "be removed in 5.0.0.";
9
+ }
10
+
6
11
  $strings: "px", "cm", "mm", "%", "ch", "pica", "in", "em", "rem", "pt", "pc", "ex", "vw", "vh", "vmin", "vmax", "deg", "rad", "grad", "turn";
7
12
  $units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn;
8
13
  $index: index($strings, $unit);