bourbon 4.0.2 → 4.1.0

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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -6
  3. data/.npmignore +12 -9
  4. data/CONTRIBUTING.md +34 -0
  5. data/Gemfile +0 -1
  6. data/{LICENSE → LICENSE.md} +3 -3
  7. data/README.md +130 -0
  8. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +399 -5
  9. data/app/assets/stylesheets/_bourbon.scss +14 -7
  10. data/app/assets/stylesheets/addons/_clearfix.scss +11 -16
  11. data/app/assets/stylesheets/addons/_ellipsis.scss +1 -0
  12. data/app/assets/stylesheets/addons/_hide-text.scss +4 -2
  13. data/app/assets/stylesheets/addons/_html5-input-types.scss +4 -0
  14. data/app/assets/stylesheets/addons/_position.scss +13 -19
  15. data/app/assets/stylesheets/addons/_size.scss +17 -7
  16. data/app/assets/stylesheets/addons/_word-wrap.scss +3 -1
  17. data/app/assets/stylesheets/css3/_background.scss +1 -1
  18. data/app/assets/stylesheets/css3/_border-radius.scss +14 -14
  19. data/app/assets/stylesheets/css3/_flex-box.scss +151 -152
  20. data/app/assets/stylesheets/css3/_font-face.scss +17 -16
  21. data/app/assets/stylesheets/css3/_hidpi-media-query.scss +2 -2
  22. data/app/assets/stylesheets/css3/_selection.scss +14 -0
  23. data/app/assets/stylesheets/css3/_text-decoration.scss +19 -0
  24. data/app/assets/stylesheets/functions/_contains.scss +12 -0
  25. data/app/assets/stylesheets/functions/_is-length.scss +7 -0
  26. data/app/assets/stylesheets/functions/_is-size.scss +6 -0
  27. data/app/assets/stylesheets/functions/_modular-scale.scss +4 -1
  28. data/app/assets/stylesheets/helpers/_font-source-declaration.scss +36 -0
  29. data/app/assets/stylesheets/helpers/_is-num.scss +4 -7
  30. data/bourbon.gemspec +13 -16
  31. data/bower.json +25 -8
  32. data/lib/bourbon/version.rb +1 -1
  33. data/package.json +18 -14
  34. data/sache.json +5 -0
  35. metadata +40 -108
  36. data/Gemfile.lock +0 -49
  37. data/app/assets/stylesheets/addons/_button.scss +0 -374
  38. data/app/assets/stylesheets/functions/_flex-grid.scss +0 -39
  39. data/app/assets/stylesheets/functions/_golden-ratio.scss +0 -3
  40. data/app/assets/stylesheets/functions/_grid-width.scss +0 -13
  41. data/dist/_bourbon-deprecated-upcoming.scss +0 -8
  42. data/dist/_bourbon.scss +0 -79
  43. data/dist/addons/_button.scss +0 -374
  44. data/dist/addons/_clearfix.scss +0 -23
  45. data/dist/addons/_directional-values.scss +0 -111
  46. data/dist/addons/_ellipsis.scss +0 -7
  47. data/dist/addons/_font-family.scss +0 -5
  48. data/dist/addons/_hide-text.scss +0 -10
  49. data/dist/addons/_html5-input-types.scss +0 -86
  50. data/dist/addons/_position.scss +0 -32
  51. data/dist/addons/_prefixer.scss +0 -45
  52. data/dist/addons/_retina-image.scss +0 -31
  53. data/dist/addons/_size.scss +0 -16
  54. data/dist/addons/_timing-functions.scss +0 -32
  55. data/dist/addons/_triangle.scss +0 -83
  56. data/dist/addons/_word-wrap.scss +0 -8
  57. data/dist/css3/_animation.scss +0 -52
  58. data/dist/css3/_appearance.scss +0 -3
  59. data/dist/css3/_backface-visibility.scss +0 -6
  60. data/dist/css3/_background-image.scss +0 -42
  61. data/dist/css3/_background.scss +0 -55
  62. data/dist/css3/_border-image.scss +0 -59
  63. data/dist/css3/_border-radius.scss +0 -22
  64. data/dist/css3/_box-sizing.scss +0 -4
  65. data/dist/css3/_calc.scss +0 -4
  66. data/dist/css3/_columns.scss +0 -47
  67. data/dist/css3/_filter.scss +0 -5
  68. data/dist/css3/_flex-box.scss +0 -321
  69. data/dist/css3/_font-face.scss +0 -23
  70. data/dist/css3/_font-feature-settings.scss +0 -10
  71. data/dist/css3/_hidpi-media-query.scss +0 -10
  72. data/dist/css3/_hyphens.scss +0 -4
  73. data/dist/css3/_image-rendering.scss +0 -14
  74. data/dist/css3/_keyframes.scss +0 -35
  75. data/dist/css3/_linear-gradient.scss +0 -38
  76. data/dist/css3/_perspective.scss +0 -8
  77. data/dist/css3/_placeholder.scss +0 -8
  78. data/dist/css3/_radial-gradient.scss +0 -39
  79. data/dist/css3/_transform.scss +0 -15
  80. data/dist/css3/_transition.scss +0 -77
  81. data/dist/css3/_user-select.scss +0 -3
  82. data/dist/functions/_assign.scss +0 -11
  83. data/dist/functions/_color-lightness.scss +0 -13
  84. data/dist/functions/_flex-grid.scss +0 -39
  85. data/dist/functions/_golden-ratio.scss +0 -3
  86. data/dist/functions/_grid-width.scss +0 -13
  87. data/dist/functions/_modular-scale.scss +0 -66
  88. data/dist/functions/_px-to-em.scss +0 -13
  89. data/dist/functions/_px-to-rem.scss +0 -15
  90. data/dist/functions/_strip-units.scss +0 -5
  91. data/dist/functions/_tint-shade.scss +0 -9
  92. data/dist/functions/_transition-property-name.scss +0 -22
  93. data/dist/functions/_unpack.scss +0 -17
  94. data/dist/helpers/_convert-units.scss +0 -15
  95. data/dist/helpers/_gradient-positions-parser.scss +0 -13
  96. data/dist/helpers/_is-num.scss +0 -8
  97. data/dist/helpers/_linear-angle-parser.scss +0 -25
  98. data/dist/helpers/_linear-gradient-parser.scss +0 -41
  99. data/dist/helpers/_linear-positions-parser.scss +0 -61
  100. data/dist/helpers/_linear-side-corner-parser.scss +0 -31
  101. data/dist/helpers/_radial-arg-parser.scss +0 -69
  102. data/dist/helpers/_radial-gradient-parser.scss +0 -50
  103. data/dist/helpers/_radial-positions-parser.scss +0 -18
  104. data/dist/helpers/_render-gradients.scss +0 -26
  105. data/dist/helpers/_shape-size-stripper.scss +0 -10
  106. data/dist/helpers/_str-to-num.scss +0 -50
  107. data/dist/settings/_asset-pipeline.scss +0 -1
  108. data/dist/settings/_prefixer.scss +0 -6
  109. data/dist/settings/_px-to-em.scss +0 -1
  110. data/readme.md +0 -105
@@ -1,3 +1,8 @@
1
+ // Bourbon 4.1.0
2
+ // http://bourbon.io
3
+ // Copyright 2011-2014 thoughtbot, inc.
4
+ // MIT License
5
+
1
6
  // Settings
2
7
  @import "settings/prefixer";
3
8
  @import "settings/px-to-em";
@@ -5,6 +10,7 @@
5
10
 
6
11
  // Custom Helpers
7
12
  @import "helpers/convert-units";
13
+ @import "helpers/font-source-declaration";
8
14
  @import "helpers/gradient-positions-parser";
9
15
  @import "helpers/is-num";
10
16
  @import "helpers/linear-angle-parser";
@@ -21,16 +27,16 @@
21
27
  // Custom Functions
22
28
  @import "functions/assign";
23
29
  @import "functions/color-lightness";
24
- @import "functions/flex-grid";
25
- @import "functions/golden-ratio";
26
- @import "functions/grid-width";
27
- @import "functions/modular-scale";
30
+ @import "functions/contains";
31
+ @import "functions/is-length";
32
+ @import "functions/is-size";
28
33
  @import "functions/px-to-em";
29
34
  @import "functions/px-to-rem";
30
35
  @import "functions/strip-units";
31
36
  @import "functions/tint-shade";
32
37
  @import "functions/transition-property-name";
33
38
  @import "functions/unpack";
39
+ @import "functions/modular-scale";
34
40
 
35
41
  // CSS3 Mixins
36
42
  @import "css3/animation";
@@ -47,20 +53,21 @@
47
53
  @import "css3/flex-box";
48
54
  @import "css3/font-face";
49
55
  @import "css3/font-feature-settings";
50
- @import "css3/hyphens";
51
56
  @import "css3/hidpi-media-query";
57
+ @import "css3/hyphens";
52
58
  @import "css3/image-rendering";
53
59
  @import "css3/keyframes";
54
60
  @import "css3/linear-gradient";
55
61
  @import "css3/perspective";
62
+ @import "css3/placeholder";
56
63
  @import "css3/radial-gradient";
64
+ @import "css3/selection";
65
+ @import "css3/text-decoration";
57
66
  @import "css3/transform";
58
67
  @import "css3/transition";
59
68
  @import "css3/user-select";
60
- @import "css3/placeholder";
61
69
 
62
70
  // Addons & other mixins
63
- @import "addons/button";
64
71
  @import "addons/clearfix";
65
72
  @import "addons/directional-values";
66
73
  @import "addons/ellipsis";
@@ -1,23 +1,18 @@
1
- // Modern micro clearfix provides an easy way to contain floats without adding additional markup.
1
+ // The clearfix mixin provides an easy way to contain floats
2
2
  //
3
3
  // Example usage:
4
- //
5
- // // Contain all floats within .wrapper
6
- // .wrapper {
7
- // @include clearfix;
8
- // .content,
9
- // .sidebar {
10
- // float : left;
11
- // }
12
- // }
4
+ // .wrapper {
5
+ // @include clearfix;
6
+ // }
13
7
 
14
8
  @mixin clearfix {
15
- &:after {
16
- content:"";
17
- display:table;
18
- clear:both;
9
+ &::after {
10
+ clear: both;
11
+ content: "";
12
+ display: table;
19
13
  }
20
14
  }
21
15
 
22
- // Acknowledgements
23
- // Beat *that* clearfix: [Thierry Koblentz](http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php)
16
+ // Acknowledgements:
17
+ // Thierry Koblentz, cssmojo
18
+ // http://goo.gl/AQWvyH
@@ -4,4 +4,5 @@
4
4
  overflow: hidden;
5
5
  text-overflow: ellipsis;
6
6
  white-space: nowrap;
7
+ word-wrap: normal;
7
8
  }
@@ -1,7 +1,9 @@
1
- @mixin hide-text {
1
+ @mixin hide-text($height: 1em) {
2
+ height: $height;
3
+ line-height: 1.5;
2
4
  overflow: hidden;
3
5
 
4
- &:before {
6
+ &::before {
5
7
  content: "";
6
8
  display: block;
7
9
  width: 0;
@@ -32,12 +32,16 @@ $all-text-inputs-hover: assign-inputs($inputs-list, hover);
32
32
  //************************************************************************//
33
33
  $all-text-inputs-focus: assign-inputs($inputs-list, focus);
34
34
 
35
+ // Active Pseudo-class
36
+ //************************************************************************//
37
+ $all-text-inputs-active: assign-inputs($inputs-list, active);
35
38
 
36
39
 
37
40
  // You must use interpolation on the variable:
38
41
  // #{$all-text-inputs}
39
42
  // #{$all-text-inputs-hover}
40
43
  // #{$all-text-inputs-focus}
44
+ // #{$all-text-inputs-active}
41
45
 
42
46
  // Example
43
47
  //************************************************************************//
@@ -1,4 +1,6 @@
1
- @mixin position ($position: relative, $coordinates: null null null null) {
1
+ // Set element positioning in a single statement
2
+
3
+ @mixin position($position: relative, $coordinates: null null null null) {
2
4
 
3
5
  @if type-of($position) == list {
4
6
  $coordinates: $position;
@@ -7,26 +9,18 @@
7
9
 
8
10
  $coordinates: unpack($coordinates);
9
11
 
10
- $top: nth($coordinates, 1);
11
- $right: nth($coordinates, 2);
12
- $bottom: nth($coordinates, 3);
13
- $left: nth($coordinates, 4);
12
+ $offsets: (
13
+ top: nth($coordinates, 1),
14
+ right: nth($coordinates, 2),
15
+ bottom: nth($coordinates, 3),
16
+ left: nth($coordinates, 4)
17
+ );
14
18
 
15
19
  position: $position;
16
20
 
17
- @if ($top and $top == auto) or (type-of($top) == number) {
18
- top: $top;
19
- }
20
-
21
- @if ($right and $right == auto) or (type-of($right) == number) {
22
- right: $right;
23
- }
24
-
25
- @if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
26
- bottom: $bottom;
27
- }
28
-
29
- @if ($left and $left == auto) or (type-of($left) == number) {
30
- left: $left;
21
+ @each $offset, $value in $offsets {
22
+ @if is-length($value) {
23
+ #{$offset}: $value;
24
+ }
31
25
  }
32
26
  }
@@ -1,16 +1,26 @@
1
- @mixin size($size) {
2
- $height: nth($size, 1);
3
- $width: $height;
1
+ // Set `width` and `height` in a single statement
4
2
 
5
- @if length($size) > 1 {
6
- $height: nth($size, 2);
3
+ @mixin size($value) {
4
+ $width: nth($value, 1);
5
+ $height: $width;
6
+
7
+ @if length($value) > 1 {
8
+ $height: nth($value, 2);
7
9
  }
8
10
 
9
- @if $height == auto or (type-of($height) == number and not unitless($height)) {
11
+ @if is-size($height) {
10
12
  height: $height;
11
13
  }
12
14
 
13
- @if $width == auto or (type-of($width) == number and not unitless($width)) {
15
+ @else {
16
+ @warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin.";
17
+ }
18
+
19
+ @if is-size($width) {
14
20
  width: $width;
15
21
  }
22
+
23
+ @else {
24
+ @warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin.";
25
+ }
16
26
  }
@@ -1,8 +1,10 @@
1
1
  @mixin word-wrap($wrap: break-word) {
2
+ overflow-wrap: $wrap;
2
3
  word-wrap: $wrap;
3
4
 
4
5
  @if $wrap == break-word {
5
- overflow-wrap: break-word;
6
6
  word-break: break-all;
7
+ } @else {
8
+ word-break: $wrap;
7
9
  }
8
10
  }
@@ -12,7 +12,7 @@
12
12
  $spec-background: ();
13
13
  $background-type: type-of($background);
14
14
 
15
- @if $background-type == string or list {
15
+ @if $background-type == string or $background-type == list {
16
16
  $background-str: if($background-type == list, nth($background, 1), $background);
17
17
 
18
18
  $url-str: str-slice($background-str, 0, 3);
@@ -1,22 +1,22 @@
1
- //************************************************************************//
2
- // Shorthand Border-radius mixins
3
- //************************************************************************//
1
+ // Border Radius (Shorthand)
2
+ // Provides a shorthand syntax to target and add border radii to both corners on one side of a box
3
+
4
4
  @mixin border-top-radius($radii) {
5
- @include prefixer(border-top-left-radius, $radii, spec);
6
- @include prefixer(border-top-right-radius, $radii, spec);
5
+ border-top-left-radius: $radii;
6
+ border-top-right-radius: $radii;
7
7
  }
8
8
 
9
- @mixin border-bottom-radius($radii) {
10
- @include prefixer(border-bottom-left-radius, $radii, spec);
11
- @include prefixer(border-bottom-right-radius, $radii, spec);
9
+ @mixin border-right-radius($radii) {
10
+ border-bottom-right-radius: $radii;
11
+ border-top-right-radius: $radii;
12
12
  }
13
13
 
14
- @mixin border-left-radius($radii) {
15
- @include prefixer(border-top-left-radius, $radii, spec);
16
- @include prefixer(border-bottom-left-radius, $radii, spec);
14
+ @mixin border-bottom-radius($radii) {
15
+ border-bottom-left-radius: $radii;
16
+ border-bottom-right-radius: $radii;
17
17
  }
18
18
 
19
- @mixin border-right-radius($radii) {
20
- @include prefixer(border-top-right-radius, $radii, spec);
21
- @include prefixer(border-bottom-right-radius, $radii, spec);
19
+ @mixin border-left-radius($radii) {
20
+ border-bottom-left-radius: $radii;
21
+ border-top-left-radius: $radii;
22
22
  }