bourbon 4.3.4 → 5.0.0.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.npmignore +1 -0
  4. data/.scss-lint.yml +2 -143
  5. data/.travis.yml +8 -0
  6. data/LICENSE.md +1 -1
  7. data/README.md +5 -19
  8. data/bourbon.gemspec +2 -2
  9. data/bower.json +7 -6
  10. data/core/_bourbon.scss +47 -0
  11. data/core/bourbon/_bourbon-deprecated.scss +1 -0
  12. data/core/bourbon/addons/_border-color.scss +26 -0
  13. data/{app/assets/stylesheets → core/bourbon}/addons/_border-radius.scss +19 -18
  14. data/core/bourbon/addons/_border-style.scss +25 -0
  15. data/core/bourbon/addons/_border-width.scss +25 -0
  16. data/core/bourbon/addons/_buttons.scss +61 -0
  17. data/core/bourbon/addons/_clearfix.scss +25 -0
  18. data/core/bourbon/addons/_ellipsis.scss +30 -0
  19. data/core/bourbon/addons/_font-stacks.scss +19 -0
  20. data/core/bourbon/addons/_hide-text.scss +23 -0
  21. data/core/bourbon/addons/_margin.scss +26 -0
  22. data/core/bourbon/addons/_padding.scss +26 -0
  23. data/core/bourbon/addons/_position.scss +49 -0
  24. data/core/bourbon/addons/_prefixer.scss +33 -0
  25. data/core/bourbon/addons/_size.scss +43 -0
  26. data/core/bourbon/addons/_text-inputs.scss +123 -0
  27. data/{app/assets/stylesheets → core/bourbon}/addons/_timing-functions.scss +7 -3
  28. data/core/bourbon/addons/_word-wrap.scss +29 -0
  29. data/core/bourbon/css3/_font-face.scss +50 -0
  30. data/core/bourbon/functions/_assign-inputs.scss +25 -0
  31. data/core/bourbon/functions/_contains-falsy.scss +20 -0
  32. data/core/bourbon/functions/_contains.scss +23 -0
  33. data/{app/assets/stylesheets → core/bourbon}/functions/_is-length.scss +3 -6
  34. data/{app/assets/stylesheets → core/bourbon}/functions/_is-light.scss +5 -10
  35. data/{app/assets/stylesheets → core/bourbon}/functions/_is-number.scss +3 -6
  36. data/core/bourbon/functions/_is-size.scss +16 -0
  37. data/core/bourbon/functions/_modular-scale.scss +101 -0
  38. data/core/bourbon/functions/_shade.scss +24 -0
  39. data/core/bourbon/functions/_strip-unit.scss +17 -0
  40. data/core/bourbon/functions/_tint.scss +24 -0
  41. data/{app/assets/stylesheets → core/bourbon}/functions/_unpack.scss +11 -14
  42. data/{app/assets/stylesheets → core/bourbon}/helpers/_directional-values.scss +26 -36
  43. data/{app/assets/stylesheets → core/bourbon}/helpers/_font-source-declaration.scss +0 -10
  44. data/{app/assets/stylesheets → core/bourbon}/settings/_asset-pipeline.scss +1 -1
  45. data/core/bourbon/settings/_global-font-file-formats.scss +12 -0
  46. data/core/bourbon/settings/_modular-scale.scss +17 -0
  47. data/core/bourbon/settings/_scales.scss +27 -0
  48. data/features/step_definitions/bourbon_steps.rb +1 -1
  49. data/index.js +1 -1
  50. data/lib/bourbon/engine.rb +1 -1
  51. data/lib/bourbon/generator.rb +1 -1
  52. data/lib/bourbon/version.rb +1 -1
  53. data/package.json +1 -6
  54. data/spec/bourbon/addons/buttons_spec.rb +3 -3
  55. data/spec/bourbon/addons/font_stacks_spec.rb +21 -11
  56. data/spec/bourbon/addons/text_inputs_spec.rb +14 -14
  57. data/spec/bourbon/css3/font_face_spec_1.rb +18 -0
  58. data/spec/bourbon/css3/font_face_spec_2.rb +19 -0
  59. data/spec/bourbon/css3/font_face_spec_3.rb +18 -0
  60. data/spec/bourbon/css3/font_face_spec_4.rb +19 -0
  61. data/spec/bourbon/functions/assign_inputs_spec.rb +3 -3
  62. data/spec/bourbon/functions/{strip_units_spec.rb → strip_unit_spec.rb} +2 -2
  63. data/spec/fixtures/_setup.scss +1 -1
  64. data/spec/fixtures/addons/font-stacks.scss +24 -8
  65. data/spec/fixtures/addons/size.scss +2 -2
  66. data/spec/fixtures/css3/font-face-1.scss +3 -0
  67. data/spec/fixtures/css3/font-face-2.scss +3 -0
  68. data/spec/fixtures/css3/font-face-3.scss +3 -0
  69. data/spec/fixtures/css3/font-face-4.scss +3 -0
  70. data/spec/fixtures/functions/assign-inputs.scss +1 -1
  71. data/spec/fixtures/functions/strip-unit.scss +17 -0
  72. metadata +72 -129
  73. data/CHANGELOG.md +0 -47
  74. data/app/assets/stylesheets/_bourbon-deprecate.scss +0 -19
  75. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +0 -425
  76. data/app/assets/stylesheets/_bourbon.scss +0 -90
  77. data/app/assets/stylesheets/addons/_border-color.scss +0 -29
  78. data/app/assets/stylesheets/addons/_border-style.scss +0 -28
  79. data/app/assets/stylesheets/addons/_border-width.scss +0 -28
  80. data/app/assets/stylesheets/addons/_buttons.scss +0 -69
  81. data/app/assets/stylesheets/addons/_clearfix.scss +0 -25
  82. data/app/assets/stylesheets/addons/_ellipsis.scss +0 -30
  83. data/app/assets/stylesheets/addons/_font-stacks.scss +0 -31
  84. data/app/assets/stylesheets/addons/_hide-text.scss +0 -27
  85. data/app/assets/stylesheets/addons/_margin.scss +0 -29
  86. data/app/assets/stylesheets/addons/_padding.scss +0 -29
  87. data/app/assets/stylesheets/addons/_position.scss +0 -51
  88. data/app/assets/stylesheets/addons/_prefixer.scss +0 -66
  89. data/app/assets/stylesheets/addons/_retina-image.scss +0 -27
  90. data/app/assets/stylesheets/addons/_size.scss +0 -56
  91. data/app/assets/stylesheets/addons/_text-inputs.scss +0 -118
  92. data/app/assets/stylesheets/addons/_triangle.scss +0 -63
  93. data/app/assets/stylesheets/addons/_word-wrap.scss +0 -29
  94. data/app/assets/stylesheets/css3/_animation.scss +0 -61
  95. data/app/assets/stylesheets/css3/_appearance.scss +0 -5
  96. data/app/assets/stylesheets/css3/_backface-visibility.scss +0 -5
  97. data/app/assets/stylesheets/css3/_background-image.scss +0 -44
  98. data/app/assets/stylesheets/css3/_background.scss +0 -57
  99. data/app/assets/stylesheets/css3/_border-image.scss +0 -61
  100. data/app/assets/stylesheets/css3/_calc.scss +0 -6
  101. data/app/assets/stylesheets/css3/_columns.scss +0 -67
  102. data/app/assets/stylesheets/css3/_filter.scss +0 -6
  103. data/app/assets/stylesheets/css3/_flex-box.scss +0 -327
  104. data/app/assets/stylesheets/css3/_font-face.scss +0 -29
  105. data/app/assets/stylesheets/css3/_font-feature-settings.scss +0 -6
  106. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +0 -12
  107. data/app/assets/stylesheets/css3/_hyphens.scss +0 -6
  108. data/app/assets/stylesheets/css3/_image-rendering.scss +0 -15
  109. data/app/assets/stylesheets/css3/_keyframes.scss +0 -38
  110. data/app/assets/stylesheets/css3/_linear-gradient.scss +0 -40
  111. data/app/assets/stylesheets/css3/_perspective.scss +0 -12
  112. data/app/assets/stylesheets/css3/_placeholder.scss +0 -10
  113. data/app/assets/stylesheets/css3/_radial-gradient.scss +0 -40
  114. data/app/assets/stylesheets/css3/_selection.scss +0 -44
  115. data/app/assets/stylesheets/css3/_text-decoration.scss +0 -27
  116. data/app/assets/stylesheets/css3/_transform.scss +0 -21
  117. data/app/assets/stylesheets/css3/_transition.scss +0 -81
  118. data/app/assets/stylesheets/css3/_user-select.scss +0 -5
  119. data/app/assets/stylesheets/functions/_assign-inputs.scss +0 -16
  120. data/app/assets/stylesheets/functions/_contains-falsy.scss +0 -25
  121. data/app/assets/stylesheets/functions/_contains.scss +0 -31
  122. data/app/assets/stylesheets/functions/_is-size.scss +0 -23
  123. data/app/assets/stylesheets/functions/_modular-scale.scss +0 -74
  124. data/app/assets/stylesheets/functions/_px-to-em.scss +0 -24
  125. data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -26
  126. data/app/assets/stylesheets/functions/_shade.scss +0 -24
  127. data/app/assets/stylesheets/functions/_strip-units.scss +0 -22
  128. data/app/assets/stylesheets/functions/_tint.scss +0 -24
  129. data/app/assets/stylesheets/functions/_transition-property-name.scss +0 -37
  130. data/app/assets/stylesheets/helpers/_convert-units.scss +0 -26
  131. data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +0 -24
  132. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +0 -35
  133. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +0 -51
  134. data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +0 -77
  135. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +0 -41
  136. data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +0 -74
  137. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +0 -55
  138. data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +0 -28
  139. data/app/assets/stylesheets/helpers/_render-gradients.scss +0 -31
  140. data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +0 -15
  141. data/app/assets/stylesheets/helpers/_str-to-num.scss +0 -55
  142. data/app/assets/stylesheets/settings/_deprecation-warnings.scss +0 -8
  143. data/app/assets/stylesheets/settings/_prefixer.scss +0 -9
  144. data/app/assets/stylesheets/settings/_px-to-em.scss +0 -1
  145. data/circle.yml +0 -10
  146. data/eyeglass-exports.js +0 -7
  147. data/sache.json +0 -5
  148. data/spec/bourbon/addons/retina_image_spec.rb +0 -57
  149. data/spec/bourbon/addons/triangle_spec.rb +0 -32
  150. data/spec/bourbon/css3/font_face_spec.rb +0 -45
  151. data/spec/bourbon/css3/hidpi_media_query_spec.rb +0 -23
  152. data/spec/bourbon/functions/px_to_em_spec.rb +0 -31
  153. data/spec/bourbon/functions/px_to_rem_spec.rb +0 -25
  154. data/spec/bourbon/helpers/convert_units_spec.rb +0 -31
  155. data/spec/bourbon/helpers/str_to_num_spec.rb +0 -25
  156. data/spec/fixtures/addons/retina-image.scss +0 -21
  157. data/spec/fixtures/addons/triangle.scss +0 -9
  158. data/spec/fixtures/css3/font-face.scss +0 -6
  159. data/spec/fixtures/css3/hidpi-media-query.scss +0 -13
  160. data/spec/fixtures/functions/px-to-em.scss +0 -17
  161. data/spec/fixtures/functions/px-to-rem.scss +0 -15
  162. data/spec/fixtures/functions/strip-units.scss +0 -17
  163. data/spec/fixtures/helpers/convert-units.scss +0 -17
  164. data/spec/fixtures/helpers/str-to-num.scss +0 -13
@@ -1,29 +0,0 @@
1
- @mixin font-face(
2
- $font-family,
3
- $file-path,
4
- $weight: normal,
5
- $style: normal,
6
- $asset-pipeline: $asset-pipeline,
7
- $file-formats: eot woff2 woff ttf svg) {
8
-
9
- $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
10
- $output-bourbon-deprecation-warnings: false !global;
11
-
12
- $font-url-prefix: font-url-prefixer($asset-pipeline);
13
-
14
- @font-face {
15
- font-family: $font-family;
16
- font-style: $style;
17
- font-weight: $weight;
18
-
19
- src: font-source-declaration(
20
- $font-family,
21
- $file-path,
22
- $asset-pipeline,
23
- $file-formats,
24
- $font-url-prefix
25
- );
26
- }
27
-
28
- $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
29
- }
@@ -1,6 +0,0 @@
1
- @mixin font-feature-settings($settings...) {
2
- @include _bourbon-deprecate-for-prefixing("font-feature-settings");
3
-
4
- @if length($settings) == 0 { $settings: none; }
5
- @include prefixer(font-feature-settings, $settings, webkit moz ms spec);
6
- }
@@ -1,12 +0,0 @@
1
- // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
2
- @mixin hidpi($ratio: 1.3) {
3
- @include _bourbon-deprecate-for-prefixing("hidpi");
4
-
5
- @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
6
- only screen and (min--moz-device-pixel-ratio: $ratio),
7
- only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
8
- only screen and (min-resolution: round($ratio * 96dpi)),
9
- only screen and (min-resolution: $ratio * 1dppx) {
10
- @content;
11
- }
12
- }
@@ -1,6 +0,0 @@
1
- @mixin hyphens($hyphenation: none) {
2
- @include _bourbon-deprecate-for-prefixing("hyphens");
3
-
4
- // none | manual | auto
5
- @include prefixer(hyphens, $hyphenation, webkit moz ms spec);
6
- }
@@ -1,15 +0,0 @@
1
- @mixin image-rendering ($mode:auto) {
2
- @include _bourbon-deprecate-for-prefixing("image-rendering");
3
-
4
- @if ($mode == crisp-edges) {
5
- -ms-interpolation-mode: nearest-neighbor; // IE8+
6
- image-rendering: -moz-crisp-edges;
7
- image-rendering: -o-crisp-edges;
8
- image-rendering: -webkit-optimize-contrast;
9
- image-rendering: crisp-edges;
10
- }
11
-
12
- @else {
13
- image-rendering: $mode;
14
- }
15
- }
@@ -1,38 +0,0 @@
1
- // Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
2
- @mixin keyframes($name) {
3
- @include _bourbon-deprecate-for-prefixing("keyframes");
4
-
5
- $original-prefix-for-webkit: $prefix-for-webkit;
6
- $original-prefix-for-mozilla: $prefix-for-mozilla;
7
- $original-prefix-for-microsoft: $prefix-for-microsoft;
8
- $original-prefix-for-opera: $prefix-for-opera;
9
- $original-prefix-for-spec: $prefix-for-spec;
10
-
11
- @if $original-prefix-for-webkit {
12
- @include disable-prefix-for-all();
13
- $prefix-for-webkit: true !global;
14
- @-webkit-keyframes #{$name} {
15
- @content;
16
- }
17
- }
18
-
19
- @if $original-prefix-for-mozilla {
20
- @include disable-prefix-for-all();
21
- $prefix-for-mozilla: true !global;
22
- @-moz-keyframes #{$name} {
23
- @content;
24
- }
25
- }
26
-
27
- $prefix-for-webkit: $original-prefix-for-webkit !global;
28
- $prefix-for-mozilla: $original-prefix-for-mozilla !global;
29
- $prefix-for-microsoft: $original-prefix-for-microsoft !global;
30
- $prefix-for-opera: $original-prefix-for-opera !global;
31
- $prefix-for-spec: $original-prefix-for-spec !global;
32
-
33
- @if $original-prefix-for-spec {
34
- @keyframes #{$name} {
35
- @content;
36
- }
37
- }
38
- }
@@ -1,40 +0,0 @@
1
- @mixin linear-gradient($pos, $g1, $g2: null,
2
- $g3: null, $g4: null,
3
- $g5: null, $g6: null,
4
- $g7: null, $g8: null,
5
- $g9: null, $g10: null,
6
- $fallback: null) {
7
- @include _bourbon-deprecate-for-prefixing("linear-gradient");
8
-
9
- // Detect what type of value exists in $pos
10
- $pos-type: type-of(nth($pos, 1));
11
- $pos-spec: null;
12
- $pos-degree: null;
13
-
14
- // If $pos is missing from mixin, reassign vars and add default position
15
- @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
16
- $g10: $g9; $g9: $g8; $g8: $g7; $g7: $g6; $g6: $g5;
17
- $g5: $g4; $g4: $g3; $g3: $g2; $g2: $g1; $g1: $pos;
18
- $pos: null;
19
- }
20
-
21
- @if $pos {
22
- $positions: _linear-positions-parser($pos);
23
- $pos-degree: nth($positions, 1);
24
- $pos-spec: nth($positions, 2);
25
- }
26
-
27
- $full: $g1, $g2, $g3, $g4, $g5, $g6, $g7, $g8, $g9, $g10;
28
-
29
- // Set $g1 as the default fallback color
30
- $fallback-color: nth($g1, 1);
31
-
32
- // If $fallback is a color use that color as the fallback color
33
- @if (type-of($fallback) == color) or ($fallback == "transparent") {
34
- $fallback-color: $fallback;
35
- }
36
-
37
- background-color: $fallback-color;
38
- background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
39
- background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
40
- }
@@ -1,12 +0,0 @@
1
- @mixin perspective($depth: none) {
2
- @include _bourbon-deprecate-for-prefixing("perspective");
3
-
4
- // none | <length>
5
- @include prefixer(perspective, $depth, webkit moz spec);
6
- }
7
-
8
- @mixin perspective-origin($value: 50% 50%) {
9
- @include _bourbon-deprecate-for-prefixing("perspective-origin");
10
-
11
- @include prefixer(perspective-origin, $value, webkit moz spec);
12
- }
@@ -1,10 +0,0 @@
1
- @mixin placeholder {
2
- @include _bourbon-deprecate-for-prefixing("placeholder");
3
-
4
- $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
5
- @each $placeholder in $placeholders {
6
- &:#{$placeholder}-placeholder {
7
- @content;
8
- }
9
- }
10
- }
@@ -1,40 +0,0 @@
1
- // Requires Sass 3.1+
2
- @mixin radial-gradient($g1, $g2,
3
- $g3: null, $g4: null,
4
- $g5: null, $g6: null,
5
- $g7: null, $g8: null,
6
- $g9: null, $g10: null,
7
- $pos: null,
8
- $shape-size: null,
9
- $fallback: null) {
10
- @include _bourbon-deprecate-for-prefixing("radial-gradient");
11
-
12
- $data: _radial-arg-parser($g1, $g2, $pos, $shape-size);
13
- $g1: nth($data, 1);
14
- $g2: nth($data, 2);
15
- $pos: nth($data, 3);
16
- $shape-size: nth($data, 4);
17
-
18
- $full: $g1, $g2, $g3, $g4, $g5, $g6, $g7, $g8, $g9, $g10;
19
-
20
- // Strip deprecated cover/contain for spec
21
- $shape-size-spec: _shape-size-stripper($shape-size);
22
-
23
- // Set $g1 as the default fallback color
24
- $first-color: nth($full, 1);
25
- $fallback-color: nth($first-color, 1);
26
-
27
- @if (type-of($fallback) == color) or ($fallback == "transparent") {
28
- $fallback-color: $fallback;
29
- }
30
-
31
- // Add Commas and spaces
32
- $shape-size: if($shape-size, "#{$shape-size}, ", null);
33
- $pos: if($pos, "#{$pos}, ", null);
34
- $pos-spec: if($pos, "at #{$pos}", null);
35
- $shape-size-spec: if(($shape-size-spec != " ") and ($pos == null), "#{$shape-size-spec}, ", "#{$shape-size-spec} ");
36
-
37
- background-color: $fallback-color;
38
- background-image: -webkit-radial-gradient(#{$pos}#{$shape-size}#{$full});
39
- background-image: radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full});
40
- }
@@ -1,44 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /// Outputs the spec and prefixed versions of the `::selection` pseudo-element.
4
- ///
5
- /// @param {Bool} $current-selector [false]
6
- /// If set to `true`, it takes the current element into consideration.
7
- ///
8
- /// @example scss - Usage
9
- /// .element {
10
- /// @include selection(true) {
11
- /// background-color: #ffbb52;
12
- /// }
13
- /// }
14
- ///
15
- /// @example css - CSS Output
16
- /// .element::-moz-selection {
17
- /// background-color: #ffbb52;
18
- /// }
19
- ///
20
- /// .element::selection {
21
- /// background-color: #ffbb52;
22
- /// }
23
-
24
- @mixin selection($current-selector: false) {
25
- @include _bourbon-deprecate-for-prefixing("selection");
26
-
27
- @if $current-selector {
28
- &::-moz-selection {
29
- @content;
30
- }
31
-
32
- &::selection {
33
- @content;
34
- }
35
- } @else {
36
- ::-moz-selection {
37
- @content;
38
- }
39
-
40
- ::selection {
41
- @content;
42
- }
43
- }
44
- }
@@ -1,27 +0,0 @@
1
- @mixin text-decoration($value) {
2
- @include _bourbon-deprecate-for-prefixing("text-decoration");
3
-
4
- // <text-decoration-line> || <text-decoration-style> || <text-decoration-color>
5
- @include prefixer(text-decoration, $value, moz);
6
- }
7
-
8
- @mixin text-decoration-line($line: none) {
9
- @include _bourbon-deprecate-for-prefixing("text-decoration-line");
10
-
11
- // none || underline || overline || line-through
12
- @include prefixer(text-decoration-line, $line, moz);
13
- }
14
-
15
- @mixin text-decoration-style($style: solid) {
16
- @include _bourbon-deprecate-for-prefixing("text-decoration-style");
17
-
18
- // solid || double || dotted || dashed || wavy
19
- @include prefixer(text-decoration-style, $style, moz webkit);
20
- }
21
-
22
- @mixin text-decoration-color($color: currentColor) {
23
- @include _bourbon-deprecate-for-prefixing("text-decoration-color");
24
-
25
- // currentColor || <color>
26
- @include prefixer(text-decoration-color, $color, moz);
27
- }
@@ -1,21 +0,0 @@
1
- @mixin transform($property: none) {
2
- @include _bourbon-deprecate-for-prefixing("transform");
3
-
4
- // none | <transform-function>
5
- @include prefixer(transform, $property, webkit moz ms o spec);
6
- }
7
-
8
- @mixin transform-origin($axes: 50%) {
9
- @include _bourbon-deprecate-for-prefixing("transform-origin");
10
-
11
- // x-axis - left | center | right | length | %
12
- // y-axis - top | center | bottom | length | %
13
- // z-axis - length
14
- @include prefixer(transform-origin, $axes, webkit moz ms o spec);
15
- }
16
-
17
- @mixin transform-style($style: flat) {
18
- @include _bourbon-deprecate-for-prefixing("transform-style");
19
-
20
- @include prefixer(transform-style, $style, webkit moz ms o spec);
21
- }
@@ -1,81 +0,0 @@
1
- // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
2
- // Example: @include transition (all 2s ease-in-out);
3
- // @include transition (opacity 1s ease-in 2s, width 2s ease-out);
4
- // @include transition-property (transform, opacity);
5
-
6
- @mixin transition($properties...) {
7
- @include _bourbon-deprecate-for-prefixing("transition");
8
-
9
- // Fix for vendor-prefix transform property
10
- $needs-prefixes: false;
11
- $webkit: ();
12
- $moz: ();
13
- $spec: ();
14
-
15
- // Create lists for vendor-prefixed transform
16
- @each $list in $properties {
17
- @if nth($list, 1) == "transform" {
18
- $needs-prefixes: true;
19
- $list1: -webkit-transform;
20
- $list2: -moz-transform;
21
- $list3: ();
22
-
23
- @each $var in $list {
24
- $list3: join($list3, $var);
25
-
26
- @if $var != "transform" {
27
- $list1: join($list1, $var);
28
- $list2: join($list2, $var);
29
- }
30
- }
31
-
32
- $webkit: append($webkit, $list1);
33
- $moz: append($moz, $list2);
34
- $spec: append($spec, $list3);
35
- } @else {
36
- $webkit: append($webkit, $list, comma);
37
- $moz: append($moz, $list, comma);
38
- $spec: append($spec, $list, comma);
39
- }
40
- }
41
-
42
- @if $needs-prefixes {
43
- -webkit-transition: $webkit;
44
- -moz-transition: $moz;
45
- transition: $spec;
46
- } @else {
47
- @if length($properties) >= 1 {
48
- @include prefixer(transition, $properties, webkit moz spec);
49
- } @else {
50
- $properties: all 0.15s ease-out 0s;
51
- @include prefixer(transition, $properties, webkit moz spec);
52
- }
53
- }
54
- }
55
-
56
- @mixin transition-property($properties...) {
57
- @include _bourbon-deprecate-for-prefixing("transition-property");
58
-
59
- -webkit-transition-property: transition-property-names($properties, "webkit");
60
- -moz-transition-property: transition-property-names($properties, "moz");
61
- transition-property: transition-property-names($properties, false);
62
- }
63
-
64
- @mixin transition-duration($times...) {
65
- @include _bourbon-deprecate-for-prefixing("transition-duration");
66
-
67
- @include prefixer(transition-duration, $times, webkit moz spec);
68
- }
69
-
70
- @mixin transition-timing-function($motions...) {
71
- @include _bourbon-deprecate-for-prefixing("transition-timing-function");
72
-
73
- // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
74
- @include prefixer(transition-timing-function, $motions, webkit moz spec);
75
- }
76
-
77
- @mixin transition-delay($times...) {
78
- @include _bourbon-deprecate-for-prefixing("transition-delay");
79
-
80
- @include prefixer(transition-delay, $times, webkit moz spec);
81
- }
@@ -1,5 +0,0 @@
1
- @mixin user-select($value: none) {
2
- @include _bourbon-deprecate-for-prefixing("user-select");
3
-
4
- @include prefixer(user-select, $value, webkit moz ms spec);
5
- }
@@ -1,16 +0,0 @@
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
-
7
- $list: ();
8
-
9
- @each $input in $inputs {
10
- $input: unquote($input);
11
- $input: if($pseudo, $input + ":" + $pseudo, $input);
12
- $list: append($list, $input, comma);
13
- }
14
-
15
- @return $list;
16
- }
@@ -1,25 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /// Checks if a list does not contains a value.
4
- ///
5
- /// @access private
6
- ///
7
- /// @param {List} $list
8
- /// The list to check against.
9
- ///
10
- /// @return {Bool}
11
-
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
-
18
- @each $item in $list {
19
- @if not $item {
20
- @return true;
21
- }
22
- }
23
-
24
- @return false;
25
- }