bourbon 4.2.7 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/README.md +1 -1
  4. data/app/assets/stylesheets/_bourbon-deprecate.scss +19 -0
  5. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +28 -14
  6. data/app/assets/stylesheets/_bourbon.scss +5 -2
  7. data/app/assets/stylesheets/addons/_retina-image.scss +2 -0
  8. data/app/assets/stylesheets/css3/_animation.scss +18 -0
  9. data/app/assets/stylesheets/css3/_appearance.scss +2 -0
  10. data/app/assets/stylesheets/css3/_backface-visibility.scss +2 -0
  11. data/app/assets/stylesheets/css3/_background-image.scss +2 -0
  12. data/app/assets/stylesheets/css3/_background.scss +2 -0
  13. data/app/assets/stylesheets/css3/_border-image.scss +2 -0
  14. data/app/assets/stylesheets/css3/_calc.scss +2 -0
  15. data/app/assets/stylesheets/css3/_columns.scss +21 -1
  16. data/app/assets/stylesheets/css3/_filter.scss +2 -0
  17. data/app/assets/stylesheets/css3/_flex-box.scss +40 -0
  18. data/app/assets/stylesheets/css3/_font-feature-settings.scss +2 -0
  19. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +2 -0
  20. data/app/assets/stylesheets/css3/_hyphens.scss +2 -0
  21. data/app/assets/stylesheets/css3/_image-rendering.scss +1 -0
  22. data/app/assets/stylesheets/css3/_keyframes.scss +2 -0
  23. data/app/assets/stylesheets/css3/_linear-gradient.scss +2 -0
  24. data/app/assets/stylesheets/css3/_perspective.scss +4 -0
  25. data/app/assets/stylesheets/css3/_placeholder.scss +2 -0
  26. data/app/assets/stylesheets/css3/_radial-gradient.scss +1 -0
  27. data/app/assets/stylesheets/css3/_selection.scss +2 -0
  28. data/app/assets/stylesheets/css3/_text-decoration.scss +8 -0
  29. data/app/assets/stylesheets/css3/_transform.scss +6 -0
  30. data/app/assets/stylesheets/css3/_transition.scss +10 -0
  31. data/app/assets/stylesheets/css3/_user-select.scss +2 -0
  32. data/app/assets/stylesheets/functions/_assign-inputs.scss +5 -0
  33. data/app/assets/stylesheets/functions/_contains-falsy.scss +5 -0
  34. data/app/assets/stylesheets/functions/_contains.scss +5 -0
  35. data/app/assets/stylesheets/functions/_is-length.scss +5 -0
  36. data/app/assets/stylesheets/functions/_is-light.scss +5 -0
  37. data/app/assets/stylesheets/functions/_is-number.scss +5 -0
  38. data/app/assets/stylesheets/functions/_is-size.scss +5 -0
  39. data/app/assets/stylesheets/functions/_px-to-em.scss +5 -0
  40. data/app/assets/stylesheets/functions/_px-to-rem.scss +5 -0
  41. data/app/assets/stylesheets/functions/_strip-units.scss +5 -0
  42. data/app/assets/stylesheets/functions/_transition-property-name.scss +10 -0
  43. data/app/assets/stylesheets/functions/_unpack.scss +5 -0
  44. data/app/assets/stylesheets/helpers/_convert-units.scss +5 -0
  45. data/app/assets/stylesheets/helpers/_directional-values.scss +7 -0
  46. data/app/assets/stylesheets/helpers/_font-source-declaration.scss +10 -0
  47. data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +5 -0
  48. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +5 -0
  49. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +5 -0
  50. data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +10 -0
  51. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +5 -0
  52. data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +5 -0
  53. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +5 -0
  54. data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +5 -0
  55. data/app/assets/stylesheets/helpers/_render-gradients.scss +5 -0
  56. data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +5 -0
  57. data/app/assets/stylesheets/helpers/_str-to-num.scss +5 -0
  58. data/app/assets/stylesheets/settings/_deprecation-warnings.scss +8 -0
  59. data/bower.json +1 -1
  60. data/circle.yml +10 -0
  61. data/lib/bourbon/version.rb +1 -1
  62. data/package.json +1 -1
  63. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faad64dcf4e5a764f6b162047c5e175d42ad3f11
4
- data.tar.gz: 14c3da34345024eea59c2d75e9cb6064b19121b9
3
+ metadata.gz: 9788bebf327840e86da4bded8c10e8f6ff27e6da
4
+ data.tar.gz: c66a685e0b67c27178e40212c3b15542425f850a
5
5
  SHA512:
6
- metadata.gz: 1e0f3bdec7d7f61b3c76672fa1649811f5c035c3348d1fb6d2b3398e1f9d98a75e2e1a5602ad2024775b2dbdbf62c5e54ab96e21619c3157569f844d9e1d003d
7
- data.tar.gz: 0ab9d64bb283150e4283e7829f2a0bb448e67248437f6ae7d59bb0310e7247e8bd28a3a31ac5cdd8180d1668e29ef79a12d91dd755fcb7eeef9e4d8b53e7af89
6
+ metadata.gz: ce80d9b3d28c0500aab49f6afcb1685d5bc970f1367726f081386f1cb7cfb8bd950811cc8379d2931285f30863dc3c120a7e04c64b0a9328c2f16d0049bef6c3
7
+ data.tar.gz: 056d1b5e791a4a1c77179cabe8bde056eaebd7d0ad95c52003a1247cf59a27cd9dc5fdb1e5934b3525b4a8b5a54cc91035e315cf71ab5ca1fd3e47d9f71091bd
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright © 2011–2015 [thoughtbot, inc.](http://thoughtbot.com)
3
+ Copyright © 2011–2017 [thoughtbot, inc.](http://thoughtbot.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the “Software”), to deal
data/README.md CHANGED
@@ -135,7 +135,7 @@ Also check out [Proteus](https://github.com/thoughtbot/proteus), a collection of
135
135
 
136
136
  ## License
137
137
 
138
- Copyright © 2011–2015 [thoughtbot, inc](http://thoughtbot.com).
138
+ Copyright © 2011–2017 [thoughtbot, inc](http://thoughtbot.com).
139
139
  Bourbon is free software,
140
140
  and may be redistributed under the terms specified in the [license](LICENSE.md).
141
141
 
@@ -0,0 +1,19 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Throws Sass warnings to announce library deprecations. You can disable them
4
+ /// by setting the `$output-bourbon-deprecation-warnings` variable to `false`.
5
+ ///
6
+ /// @access private
7
+
8
+ @mixin _bourbon-deprecate($feature, $message: null) {
9
+ @if $output-bourbon-deprecation-warnings == true {
10
+ @warn "[Bourbon] [Deprecation] `#{$feature}` is deprecated and will be " +
11
+ "removed in 5.0.0. #{$message}";
12
+ @content;
13
+ }
14
+ }
15
+
16
+ @mixin _bourbon-deprecate-for-prefixing($feature) {
17
+ @include _bourbon-deprecate($feature, "We suggest using an automated " +
18
+ "prefixing tool, like Autoprefixer.");
19
+ }
@@ -1,12 +1,13 @@
1
1
  // The following features have been deprecated and will be removed in the next MAJOR version release
2
2
 
3
3
  @mixin inline-block {
4
- display: inline-block;
4
+ @include _bourbon-deprecate("inline-block");
5
5
 
6
- @warn "The inline-block mixin is deprecated and will be removed in the next major version release";
6
+ display: inline-block;
7
7
  }
8
8
 
9
9
  @mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
10
+ @include _bourbon-deprecate("button");
10
11
 
11
12
  @if type-of($style) == string and type-of($base-color) == color {
12
13
  @include buttonstyle($style, $base-color, $text-size, $padding);
@@ -60,8 +61,6 @@
60
61
  cursor: not-allowed;
61
62
  opacity: 0.5;
62
63
  }
63
-
64
- @warn "The button mixin is deprecated and will be removed in the next major version release";
65
64
  }
66
65
 
67
66
  // Selector Style Button
@@ -377,35 +376,50 @@
377
376
 
378
377
  // Flexible grid
379
378
  @function flex-grid($columns, $container-columns: $fg-max-columns) {
379
+ @if $output-bourbon-deprecation-warnings == true {
380
+ @warn "[Bourbon] [Deprecation] `flex-grid` is deprecated and will be " +
381
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
382
+ "Neat.";
383
+ }
384
+
380
385
  $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
381
386
  $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
382
387
  @return percentage($width / $container-width);
383
-
384
- @warn "The flex-grid function is deprecated and will be removed in the next major version release";
385
388
  }
386
389
 
387
390
  // Flexible gutter
388
391
  @function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
392
+ @if $output-bourbon-deprecation-warnings == true {
393
+ @warn "[Bourbon] [Deprecation] `flex-gutter` is deprecated and will be " +
394
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
395
+ "Neat.";
396
+ }
397
+
389
398
  $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
390
399
  @return percentage($gutter / $container-width);
391
-
392
- @warn "The flex-gutter function is deprecated and will be removed in the next major version release";
393
400
  }
394
401
 
395
402
  @function grid-width($n) {
396
- @return $n * $gw-column + ($n - 1) * $gw-gutter;
403
+ @if $output-bourbon-deprecation-warnings == true {
404
+ @warn "[Bourbon] [Deprecation] `grid-width` is deprecated and will be " +
405
+ "removed in 5.0.0. For grid functions, check out Bourbon's sister library" +
406
+ "Neat.";
407
+ }
397
408
 
398
- @warn "The grid-width function is deprecated and will be removed in the next major version release";
409
+ @return $n * $gw-column + ($n - 1) * $gw-gutter;
399
410
  }
400
411
 
401
412
  @function golden-ratio($value, $increment) {
402
- @return modular-scale($increment, $value, $ratio: $golden);
413
+ @if $output-bourbon-deprecation-warnings == true {
414
+ @warn "[Bourbon] [Deprecation] `golden-ratio` is deprecated and will be " +
415
+ "removed in 5.0.0. You can use the `modular-scale` function instead.";
416
+ }
403
417
 
404
- @warn "The golden-ratio function is deprecated and will be removed in the next major version release. Please use the modular-scale function, instead.";
418
+ @return modular-scale($increment, $value, $ratio: $golden);
405
419
  }
406
420
 
407
421
  @mixin box-sizing($box) {
408
- @include prefixer(box-sizing, $box, webkit moz spec);
422
+ @include _bourbon-deprecate-for-prefixing("box-sizing");
409
423
 
410
- @warn "The box-sizing mixin is deprecated and will be removed in the next major version release. This property can now be used un-prefixed.";
424
+ @include prefixer(box-sizing, $box, webkit moz spec);
411
425
  }
@@ -1,12 +1,15 @@
1
- // Bourbon 4.2.7
1
+ // Bourbon 4.3.0
2
2
  // http://bourbon.io
3
- // Copyright 2011-2015 thoughtbot, inc.
3
+ // Copyright 2011-2017 thoughtbot, inc.
4
4
  // MIT License
5
5
 
6
+ @import "settings/deprecation-warnings";
6
7
  @import "settings/prefixer";
7
8
  @import "settings/px-to-em";
8
9
  @import "settings/asset-pipeline";
9
10
 
11
+ @import "bourbon-deprecate";
12
+
10
13
  @import "functions/assign-inputs";
11
14
  @import "functions/contains";
12
15
  @import "functions/contains-falsy";
@@ -1,4 +1,6 @@
1
1
  @mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
2
+ @include _bourbon-deprecate("retina-image");
3
+
2
4
  @if $asset-pipeline {
3
5
  background-image: image-url("#{$filename}.#{$extension}");
4
6
  } @else {
@@ -2,42 +2,60 @@
2
2
  // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
3
3
 
4
4
  @mixin animation($animations...) {
5
+ @include _bourbon-deprecate-for-prefixing("animation");
6
+
5
7
  @include prefixer(animation, $animations, webkit moz spec);
6
8
  }
7
9
 
8
10
  @mixin animation-name($names...) {
11
+ @include _bourbon-deprecate-for-prefixing("animation-name");
12
+
9
13
  @include prefixer(animation-name, $names, webkit moz spec);
10
14
  }
11
15
 
12
16
  @mixin animation-duration($times...) {
17
+ @include _bourbon-deprecate-for-prefixing("animation-duration");
18
+
13
19
  @include prefixer(animation-duration, $times, webkit moz spec);
14
20
  }
15
21
 
16
22
  @mixin animation-timing-function($motions...) {
23
+ @include _bourbon-deprecate-for-prefixing("animation-timing-function");
24
+
17
25
  // ease | linear | ease-in | ease-out | ease-in-out
18
26
  @include prefixer(animation-timing-function, $motions, webkit moz spec);
19
27
  }
20
28
 
21
29
  @mixin animation-iteration-count($values...) {
30
+ @include _bourbon-deprecate-for-prefixing("animation-iteration-count");
31
+
22
32
  // infinite | <number>
23
33
  @include prefixer(animation-iteration-count, $values, webkit moz spec);
24
34
  }
25
35
 
26
36
  @mixin animation-direction($directions...) {
37
+ @include _bourbon-deprecate-for-prefixing("animation-direction");
38
+
27
39
  // normal | alternate
28
40
  @include prefixer(animation-direction, $directions, webkit moz spec);
29
41
  }
30
42
 
31
43
  @mixin animation-play-state($states...) {
44
+ @include _bourbon-deprecate-for-prefixing("animation-play-state");
45
+
32
46
  // running | paused
33
47
  @include prefixer(animation-play-state, $states, webkit moz spec);
34
48
  }
35
49
 
36
50
  @mixin animation-delay($times...) {
51
+ @include _bourbon-deprecate-for-prefixing("animation-delay");
52
+
37
53
  @include prefixer(animation-delay, $times, webkit moz spec);
38
54
  }
39
55
 
40
56
  @mixin animation-fill-mode($modes...) {
57
+ @include _bourbon-deprecate-for-prefixing("animation-fill-mode");
58
+
41
59
  // none | forwards | backwards | both
42
60
  @include prefixer(animation-fill-mode, $modes, webkit moz spec);
43
61
  }
@@ -1,3 +1,5 @@
1
1
  @mixin appearance($value) {
2
+ @include _bourbon-deprecate-for-prefixing("appearance");
3
+
2
4
  @include prefixer(appearance, $value, webkit moz ms o spec);
3
5
  }
@@ -1,3 +1,5 @@
1
1
  @mixin backface-visibility($visibility) {
2
+ @include _bourbon-deprecate-for-prefixing("backface-visibility");
3
+
2
4
  @include prefixer(backface-visibility, $visibility, webkit spec);
3
5
  }
@@ -4,6 +4,8 @@
4
4
  //************************************************************************//
5
5
 
6
6
  @mixin background-image($images...) {
7
+ @include _bourbon-deprecate-for-prefixing("background-image");
8
+
7
9
  $webkit-images: ();
8
10
  $spec-images: ();
9
11
 
@@ -4,6 +4,8 @@
4
4
  //************************************************************************//
5
5
 
6
6
  @mixin background($backgrounds...) {
7
+ @include _bourbon-deprecate-for-prefixing("background");
8
+
7
9
  $webkit-backgrounds: ();
8
10
  $spec-backgrounds: ();
9
11
 
@@ -1,4 +1,6 @@
1
1
  @mixin border-image($borders...) {
2
+ @include _bourbon-deprecate-for-prefixing("border-image");
3
+
2
4
  $webkit-borders: ();
3
5
  $spec-borders: ();
4
6
 
@@ -1,4 +1,6 @@
1
1
  @mixin calc($property, $value) {
2
+ @include _bourbon-deprecate-for-prefixing("calc");
3
+
2
4
  #{$property}: -webkit-calc(#{$value});
3
5
  #{$property}: calc(#{$value});
4
6
  }
@@ -1,47 +1,67 @@
1
1
  @mixin columns($arg: auto) {
2
+ @include _bourbon-deprecate-for-prefixing("columns");
3
+
2
4
  // <column-count> || <column-width>
3
5
  @include prefixer(columns, $arg, webkit moz spec);
4
6
  }
5
7
 
6
8
  @mixin column-count($int: auto) {
9
+ @include _bourbon-deprecate-for-prefixing("column-count");
10
+
7
11
  // auto || integer
8
12
  @include prefixer(column-count, $int, webkit moz spec);
9
13
  }
10
14
 
11
15
  @mixin column-gap($length: normal) {
16
+ @include _bourbon-deprecate-for-prefixing("column-gap");
17
+
12
18
  // normal || length
13
19
  @include prefixer(column-gap, $length, webkit moz spec);
14
20
  }
15
21
 
16
22
  @mixin column-fill($arg: auto) {
23
+ @include _bourbon-deprecate-for-prefixing("column-fill");
24
+
17
25
  // auto || length
18
26
  @include prefixer(column-fill, $arg, webkit moz spec);
19
27
  }
20
28
 
21
29
  @mixin column-rule($arg) {
30
+ @include _bourbon-deprecate-for-prefixing("column-rule");
31
+
22
32
  // <border-width> || <border-style> || <color>
23
33
  @include prefixer(column-rule, $arg, webkit moz spec);
24
34
  }
25
35
 
26
36
  @mixin column-rule-color($color) {
37
+ @include _bourbon-deprecate-for-prefixing("column-rule-color");
38
+
27
39
  @include prefixer(column-rule-color, $color, webkit moz spec);
28
40
  }
29
41
 
30
42
  @mixin column-rule-style($style: none) {
43
+ @include _bourbon-deprecate-for-prefixing("column-rule-style");
44
+
31
45
  // none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
32
46
  @include prefixer(column-rule-style, $style, webkit moz spec);
33
47
  }
34
48
 
35
- @mixin column-rule-width ($width: none) {
49
+ @mixin column-rule-width($width: none) {
50
+ @include _bourbon-deprecate-for-prefixing("column-rule-width");
51
+
36
52
  @include prefixer(column-rule-width, $width, webkit moz spec);
37
53
  }
38
54
 
39
55
  @mixin column-span($arg: none) {
56
+ @include _bourbon-deprecate-for-prefixing("column-span");
57
+
40
58
  // none || all
41
59
  @include prefixer(column-span, $arg, webkit moz spec);
42
60
  }
43
61
 
44
62
  @mixin column-width($length: auto) {
63
+ @include _bourbon-deprecate-for-prefixing("column-width");
64
+
45
65
  // auto || length
46
66
  @include prefixer(column-width, $length, webkit moz spec);
47
67
  }
@@ -1,4 +1,6 @@
1
1
  @mixin filter($function: none) {
2
+ @include _bourbon-deprecate-for-prefixing("filter");
3
+
2
4
  // <filter-function> [<filter-function]* | none
3
5
  @include prefixer(filter, $function, webkit spec);
4
6
  }
@@ -2,6 +2,8 @@
2
2
 
3
3
  // Custom shorthand notation for flexbox
4
4
  @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
5
+ @include _bourbon-deprecate-for-prefixing("box");
6
+
5
7
  @include display-box;
6
8
  @include box-orient($orient);
7
9
  @include box-pack($pack);
@@ -9,6 +11,8 @@
9
11
  }
10
12
 
11
13
  @mixin display-box {
14
+ @include _bourbon-deprecate-for-prefixing("display-box");
15
+
12
16
  display: -webkit-box;
13
17
  display: -moz-box;
14
18
  display: -ms-flexbox; // IE 10
@@ -16,44 +20,60 @@
16
20
  }
17
21
 
18
22
  @mixin box-orient($orient: inline-axis) {
23
+ @include _bourbon-deprecate-for-prefixing("box-orient");
24
+
19
25
  // horizontal|vertical|inline-axis|block-axis|inherit
20
26
  @include prefixer(box-orient, $orient, webkit moz spec);
21
27
  }
22
28
 
23
29
  @mixin box-pack($pack: start) {
30
+ @include _bourbon-deprecate-for-prefixing("box-pack");
31
+
24
32
  // start|end|center|justify
25
33
  @include prefixer(box-pack, $pack, webkit moz spec);
26
34
  -ms-flex-pack: $pack; // IE 10
27
35
  }
28
36
 
29
37
  @mixin box-align($align: stretch) {
38
+ @include _bourbon-deprecate-for-prefixing("box-align");
39
+
30
40
  // start|end|center|baseline|stretch
31
41
  @include prefixer(box-align, $align, webkit moz spec);
32
42
  -ms-flex-align: $align; // IE 10
33
43
  }
34
44
 
35
45
  @mixin box-direction($direction: normal) {
46
+ @include _bourbon-deprecate-for-prefixing("box-direction");
47
+
36
48
  // normal|reverse|inherit
37
49
  @include prefixer(box-direction, $direction, webkit moz spec);
38
50
  -ms-flex-direction: $direction; // IE 10
39
51
  }
40
52
 
41
53
  @mixin box-lines($lines: single) {
54
+ @include _bourbon-deprecate-for-prefixing("box-lines");
55
+
42
56
  // single|multiple
43
57
  @include prefixer(box-lines, $lines, webkit moz spec);
44
58
  }
45
59
 
46
60
  @mixin box-ordinal-group($int: 1) {
61
+ @include _bourbon-deprecate-for-prefixing("box-ordinal-group");
62
+
47
63
  @include prefixer(box-ordinal-group, $int, webkit moz spec);
48
64
  -ms-flex-order: $int; // IE 10
49
65
  }
50
66
 
51
67
  @mixin box-flex($value: 0) {
68
+ @include _bourbon-deprecate-for-prefixing("box-flex");
69
+
52
70
  @include prefixer(box-flex, $value, webkit moz spec);
53
71
  -ms-flex: $value; // IE 10
54
72
  }
55
73
 
56
74
  @mixin box-flex-group($int: 1) {
75
+ @include _bourbon-deprecate-for-prefixing("box-flex-group");
76
+
57
77
  @include prefixer(box-flex-group, $int, webkit moz spec);
58
78
  }
59
79
 
@@ -64,6 +84,8 @@
64
84
  // 2011 - display (flexbox | inline-flexbox)
65
85
  // 2012 - display (flex | inline-flex)
66
86
  @mixin display($value) {
87
+ @include _bourbon-deprecate-for-prefixing("display");
88
+
67
89
  // flex | inline-flex
68
90
  @if $value == "flex" {
69
91
  // 2009
@@ -94,6 +116,7 @@
94
116
  // 2011 - flex (decimal | width decimal)
95
117
  // 2012 - flex (integer integer width)
96
118
  @mixin flex($value) {
119
+ @include _bourbon-deprecate-for-prefixing("flex");
97
120
 
98
121
  // Grab flex-grow for older browsers.
99
122
  $flex-grow: nth($value, 1);
@@ -110,6 +133,7 @@
110
133
  // 2011 - flex-direction (row | row-reverse | column | column-reverse)
111
134
  // 2012 - flex-direction (row | row-reverse | column | column-reverse)
112
135
  @mixin flex-direction($value: row) {
136
+ @include _bourbon-deprecate-for-prefixing("flex-direction");
113
137
 
114
138
  // Alt values.
115
139
  $value-2009: $value;
@@ -143,6 +167,8 @@
143
167
  // 2011 - flex-wrap (nowrap | wrap | wrap-reverse)
144
168
  // 2012 - flex-wrap (nowrap | wrap | wrap-reverse)
145
169
  @mixin flex-wrap($value: nowrap) {
170
+ @include _bourbon-deprecate-for-prefixing("flex-wrap");
171
+
146
172
  // Alt values
147
173
  $alt-value: $value;
148
174
  @if $value == nowrap {
@@ -161,6 +187,8 @@
161
187
  // 2011 - TODO: parse values into flex-direction/flex-wrap
162
188
  // 2012 - flex-flow (flex-direction || flex-wrap)
163
189
  @mixin flex-flow($value) {
190
+ @include _bourbon-deprecate-for-prefixing("flex-flow");
191
+
164
192
  @include prefixer(flex-flow, $value, webkit moz spec);
165
193
  }
166
194
 
@@ -168,6 +196,8 @@
168
196
  // 2011 - flex-order (integer)
169
197
  // 2012 - order (integer)
170
198
  @mixin order($int: 0) {
199
+ @include _bourbon-deprecate-for-prefixing("order");
200
+
171
201
  // 2009
172
202
  @include prefixer(box-ordinal-group, $int, webkit moz spec);
173
203
 
@@ -180,18 +210,24 @@
180
210
 
181
211
  // 2012 - flex-grow (number)
182
212
  @mixin flex-grow($number: 0) {
213
+ @include _bourbon-deprecate-for-prefixing("flex-grow");
214
+
183
215
  @include prefixer(flex-grow, $number, webkit moz spec);
184
216
  -ms-flex-positive: $number;
185
217
  }
186
218
 
187
219
  // 2012 - flex-shrink (number)
188
220
  @mixin flex-shrink($number: 1) {
221
+ @include _bourbon-deprecate-for-prefixing("flex-shrink");
222
+
189
223
  @include prefixer(flex-shrink, $number, webkit moz spec);
190
224
  -ms-flex-negative: $number;
191
225
  }
192
226
 
193
227
  // 2012 - flex-basis (number)
194
228
  @mixin flex-basis($width: auto) {
229
+ @include _bourbon-deprecate-for-prefixing("flex-basis");
230
+
195
231
  @include prefixer(flex-basis, $width, webkit moz spec);
196
232
  -ms-flex-preferred-size: $width;
197
233
  }
@@ -200,6 +236,7 @@
200
236
  // 2011 - flex-pack (start | end | center | justify)
201
237
  // 2012 - justify-content (flex-start | flex-end | center | space-between | space-around)
202
238
  @mixin justify-content($value: flex-start) {
239
+ @include _bourbon-deprecate-for-prefixing("justify-content");
203
240
 
204
241
  // Alt values.
205
242
  $alt-value: $value;
@@ -227,6 +264,7 @@
227
264
  // 2011 - flex-align (start | end | center | baseline | stretch)
228
265
  // 2012 - align-items (flex-start | flex-end | center | baseline | stretch)
229
266
  @mixin align-items($value: stretch) {
267
+ @include _bourbon-deprecate-for-prefixing("align-items");
230
268
 
231
269
  $alt-value: $value;
232
270
 
@@ -249,6 +287,7 @@
249
287
  // 2011 - flex-item-align (auto | start | end | center | baseline | stretch)
250
288
  // 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch)
251
289
  @mixin align-self($value: auto) {
290
+ @include _bourbon-deprecate-for-prefixing("align-self");
252
291
 
253
292
  $value-2011: $value;
254
293
  @if $value == "flex-start" {
@@ -267,6 +306,7 @@
267
306
  // 2011 - flex-line-pack (start | end | center | justify | distribute | stretch)
268
307
  // 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch)
269
308
  @mixin align-content($value: stretch) {
309
+ @include _bourbon-deprecate-for-prefixing("align-content");
270
310
 
271
311
  $value-2011: $value;
272
312
  @if $value == "flex-start" {
@@ -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);
@@ -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,11 @@
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
+
11
16
  @return is-length($value)
12
17
  or contains("fill" "fit-content" "min-content" "max-content", $value);
13
18
  }
@@ -3,6 +3,11 @@
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
+
6
11
  @if not unitless($pxval) {
7
12
  $pxval: strip-units($pxval);
8
13
  }
@@ -3,6 +3,11 @@
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
+
6
11
  @if not unitless($pxval) {
7
12
  $pxval: strip-units($pxval);
8
13
  }
@@ -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. Use the renamed `strip-unit` function instead.";
19
+ }
20
+
16
21
  @return ($value / ($value * 0 + 1));
17
22
  }
@@ -2,6 +2,11 @@
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
+
5
10
  $new-props: ();
6
11
 
7
12
  @each $prop in $props {
@@ -12,6 +17,11 @@
12
17
  }
13
18
 
14
19
  @function transition-property-name($prop, $vendor: false) {
20
+ @if $output-bourbon-deprecation-warnings == true {
21
+ @warn "[Bourbon] [Deprecation] `transition-property-name` is deprecated " +
22
+ "and will be removed in 5.0.0.";
23
+ }
24
+
15
25
  // put other properties that need to be prefixed here aswell
16
26
  @if $vendor and $prop == transform {
17
27
  @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);
@@ -27,6 +27,11 @@
27
27
  /// @return {List}
28
28
 
29
29
  @function collapse-directionals($vals) {
30
+ @if $output-bourbon-deprecation-warnings == true {
31
+ @warn "[Bourbon] [Deprecation] `collapse-directionals` is deprecated and " +
32
+ "will be removed in 5.0.0.";
33
+ }
34
+
30
35
  $output: null;
31
36
 
32
37
  $a: nth($vals, 1);
@@ -62,6 +67,8 @@
62
67
  /// @require {function} contains-falsy
63
68
 
64
69
  @mixin directional-property($pre, $suf, $vals) {
70
+ @include _bourbon-deprecate("directional-property");
71
+
65
72
  // Property Names
66
73
  $top: $pre + "-top" + if($suf, "-#{$suf}", "");
67
74
  $bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
@@ -2,6 +2,11 @@
2
2
  // Reference: http://goo.gl/Ru1bKP
3
3
 
4
4
  @function font-url-prefixer($asset-pipeline) {
5
+ @if $output-bourbon-deprecation-warnings == true {
6
+ @warn "[Bourbon] [Deprecation] `font-url-prefixer` is deprecated and " +
7
+ "will be removed in 5.0.0.";
8
+ }
9
+
5
10
  @if $asset-pipeline == true {
6
11
  @return font-url;
7
12
  } @else {
@@ -16,6 +21,11 @@
16
21
  $file-formats,
17
22
  $font-url) {
18
23
 
24
+ @if $output-bourbon-deprecation-warnings == true {
25
+ @warn "[Bourbon] [Deprecation] `font-source-declaration` is deprecated " +
26
+ "and will be removed in 5.0.0.";
27
+ }
28
+
19
29
  $src: ();
20
30
 
21
31
  $formats-map: (
@@ -1,4 +1,9 @@
1
1
  @function _gradient-positions-parser($gradient-type, $gradient-positions) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_gradient-positions-parser` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  @if $gradient-positions
3
8
  and ($gradient-type == linear)
4
9
  and (type-of($gradient-positions) != color) {
@@ -1,5 +1,10 @@
1
1
  // Private function for linear-gradient-parser
2
2
  @function _linear-angle-parser($image, $first-val, $prefix, $suffix) {
3
+ @if $output-bourbon-deprecation-warnings == true {
4
+ @warn "[Bourbon] [Deprecation] `_linear-angle-parser` is " +
5
+ "deprecated and will be removed in 5.0.0.";
6
+ }
7
+
3
8
  $offset: null;
4
9
  $unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val));
5
10
  $unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val));
@@ -1,4 +1,9 @@
1
1
  @function _linear-gradient-parser($image) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_linear-gradient-parser` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  $image: unquote($image);
3
8
  $gradients: ();
4
9
  $start: str-index($image, "(");
@@ -1,4 +1,9 @@
1
1
  @function _linear-positions-parser($pos) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_linear-positions-parser` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  $type: type-of(nth($pos, 1));
3
8
  $spec: null;
4
9
  $degree: null;
@@ -54,6 +59,11 @@
54
59
  }
55
60
 
56
61
  @function _position-flipper($pos) {
62
+ @if $output-bourbon-deprecation-warnings == true {
63
+ @warn "[Bourbon] [Deprecation] `_position-flipper` is " +
64
+ "deprecated and will be removed in 5.0.0.";
65
+ }
66
+
57
67
  @return if($pos == left, right, null)
58
68
  if($pos == right, left, null)
59
69
  if($pos == top, bottom, null)
@@ -1,5 +1,10 @@
1
1
  // Private function for linear-gradient-parser
2
2
  @function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
3
+ @if $output-bourbon-deprecation-warnings == true {
4
+ @warn "[Bourbon] [Deprecation] `_linear-side-corner-parser` is " +
5
+ "deprecated and will be removed in 5.0.0.";
6
+ }
7
+
3
8
  $val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
4
9
  $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
5
10
  $val-3: null;
@@ -1,4 +1,9 @@
1
1
  @function _radial-arg-parser($g1, $g2, $pos, $shape-size) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_radial-arg-parser` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  @each $value in $g1, $g2 {
3
8
  $first-val: nth($value, 1);
4
9
  $pos-type: type-of($first-val);
@@ -1,4 +1,9 @@
1
1
  @function _radial-gradient-parser($image) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_radial-gradient-parser` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  $image: unquote($image);
3
8
  $gradients: ();
4
9
  $start: str-index($image, "(");
@@ -1,4 +1,9 @@
1
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
+
2
7
  $shape-size: nth($gradient-pos, 1);
3
8
  $pos: nth($gradient-pos, 2);
4
9
  $shape-size-spec: _shape-size-stripper($shape-size);
@@ -1,6 +1,11 @@
1
1
  // User for linear and radial gradients within background-image or border-image properties
2
2
 
3
3
  @function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) {
4
+ @if $output-bourbon-deprecation-warnings == true {
5
+ @warn "[Bourbon] [Deprecation] `_render-gradients` is " +
6
+ "deprecated and will be removed in 5.0.0.";
7
+ }
8
+
4
9
  $pre-spec: null;
5
10
  $spec: null;
6
11
  $vendor-gradients: null;
@@ -1,4 +1,9 @@
1
1
  @function _shape-size-stripper($shape-size) {
2
+ @if $output-bourbon-deprecation-warnings == true {
3
+ @warn "[Bourbon] [Deprecation] `_shape-size-stripper` is " +
4
+ "deprecated and will be removed in 5.0.0.";
5
+ }
6
+
2
7
  $shape-size-spec: null;
3
8
  @each $value in $shape-size {
4
9
  @if ($value == "cover") or ($value == "contain") {
@@ -3,6 +3,11 @@
3
3
  // Source: http://sassmeister.com/gist/9647408
4
4
  //************************************************************************//
5
5
  @function _str-to-num($string) {
6
+ @if $output-bourbon-deprecation-warnings == true {
7
+ @warn "[Bourbon] [Deprecation] `_str-to-num` is " +
8
+ "deprecated and will be removed in 5.0.0.";
9
+ }
10
+
6
11
  // Matrices
7
12
  $strings: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
8
13
  $numbers: 0 1 2 3 4 5 6 7 8 9;
@@ -0,0 +1,8 @@
1
+ @charset "UTF-8";
2
+
3
+ /// Enable or disable output of Bourbon’s deprecation-related Sass warnings.
4
+ /// This variable must be declared _before_ importing Bourbon.
5
+ ///
6
+ /// @type Bool
7
+
8
+ $output-bourbon-deprecation-warnings: true !default;
data/bower.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bourbon",
3
3
  "description": "A simple and lightweight mixin library for Sass.",
4
- "version": "4.2.7",
4
+ "version": "4.3.0",
5
5
  "main": "app/assets/stylesheets/_bourbon.scss",
6
6
  "license": "MIT",
7
7
  "ignore": [
data/circle.yml ADDED
@@ -0,0 +1,10 @@
1
+ general:
2
+ branches:
3
+ ignore:
4
+ - gh-pages
5
+ machine:
6
+ ruby:
7
+ version: 2.3.0
8
+ test:
9
+ override:
10
+ - bundle exec rake
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "4.2.7"
2
+ VERSION = "4.3.0"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bourbon",
3
- "version": "4.2.7",
3
+ "version": "4.3.0",
4
4
  "description": "A simple and lightweight mixin library for Sass.",
5
5
  "keywords": [
6
6
  "css",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.7
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andres Mejia
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: bin
24
24
  cert_chain: []
25
- date: 2016-04-15 00:00:00.000000000 Z
25
+ date: 2017-02-03 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sass
@@ -141,6 +141,7 @@ files:
141
141
  - LICENSE.md
142
142
  - README.md
143
143
  - Rakefile
144
+ - app/assets/stylesheets/_bourbon-deprecate.scss
144
145
  - app/assets/stylesheets/_bourbon-deprecated-upcoming.scss
145
146
  - app/assets/stylesheets/_bourbon.scss
146
147
  - app/assets/stylesheets/addons/_border-color.scss
@@ -217,11 +218,13 @@ files:
217
218
  - app/assets/stylesheets/helpers/_shape-size-stripper.scss
218
219
  - app/assets/stylesheets/helpers/_str-to-num.scss
219
220
  - app/assets/stylesheets/settings/_asset-pipeline.scss
221
+ - app/assets/stylesheets/settings/_deprecation-warnings.scss
220
222
  - app/assets/stylesheets/settings/_prefixer.scss
221
223
  - app/assets/stylesheets/settings/_px-to-em.scss
222
224
  - bin/bourbon
223
225
  - bourbon.gemspec
224
226
  - bower.json
227
+ - circle.yml
225
228
  - eyeglass-exports.js
226
229
  - features/install.feature
227
230
  - features/step_definitions/bourbon_steps.rb
@@ -337,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
340
  version: '0'
338
341
  requirements: []
339
342
  rubyforge_project:
340
- rubygems_version: 2.5.2
343
+ rubygems_version: 2.5.1
341
344
  signing_key:
342
345
  specification_version: 4
343
346
  summary: A simple and lightweight mixin library for Sass