bourbon 3.2.4 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -6
  3. data/.npmignore +9 -11
  4. data/Gemfile.lock +49 -0
  5. data/{LICENSE.md → LICENSE} +10 -8
  6. data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +3 -8
  7. data/app/assets/stylesheets/_bourbon.scss +9 -12
  8. data/app/assets/stylesheets/addons/_directional-values.scss +8 -5
  9. data/app/assets/stylesheets/addons/_html5-input-types.scss +15 -39
  10. data/app/assets/stylesheets/addons/_position.scss +5 -5
  11. data/app/assets/stylesheets/addons/_prefixer.scss +5 -5
  12. data/app/assets/stylesheets/addons/_rem.scss +33 -0
  13. data/app/assets/stylesheets/addons/_retina-image.scss +1 -1
  14. data/app/assets/stylesheets/addons/_size.scss +9 -37
  15. data/app/assets/stylesheets/addons/_timing-functions.scss +1 -1
  16. data/app/assets/stylesheets/addons/_triangle.scss +0 -1
  17. data/app/assets/stylesheets/css3/_background-image.scss +29 -35
  18. data/app/assets/stylesheets/css3/_background.scss +37 -85
  19. data/app/assets/stylesheets/css3/_border-image.scss +45 -42
  20. data/app/assets/stylesheets/css3/_flex-box.scss +14 -14
  21. data/app/assets/stylesheets/css3/_font-face.scss +1 -1
  22. data/app/assets/stylesheets/css3/_keyframes.scss +7 -7
  23. data/app/assets/stylesheets/functions/_assign.scss +11 -0
  24. data/app/assets/stylesheets/functions/_color-lightness.scss +5 -5
  25. data/app/assets/stylesheets/helpers/_convert-units.scss +15 -0
  26. data/app/assets/stylesheets/helpers/_is-num.scss +8 -0
  27. data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +25 -0
  28. data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +41 -0
  29. data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +31 -0
  30. data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +50 -0
  31. data/app/assets/stylesheets/helpers/_render-gradients.scss +2 -2
  32. data/app/assets/stylesheets/helpers/_str-to-num.scss +50 -0
  33. data/bourbon.gemspec +2 -2
  34. data/bower.json +6 -23
  35. data/dist/_bourbon-deprecated-upcoming.scss +3 -8
  36. data/dist/_bourbon.scss +9 -12
  37. data/dist/addons/_directional-values.scss +8 -5
  38. data/dist/addons/_html5-input-types.scss +15 -39
  39. data/dist/addons/_position.scss +5 -5
  40. data/dist/addons/_prefixer.scss +5 -5
  41. data/dist/addons/_rem.scss +33 -0
  42. data/dist/addons/_retina-image.scss +1 -1
  43. data/dist/addons/_size.scss +9 -37
  44. data/dist/addons/_timing-functions.scss +1 -1
  45. data/dist/addons/_triangle.scss +0 -1
  46. data/dist/css3/_background-image.scss +29 -35
  47. data/dist/css3/_background.scss +37 -85
  48. data/dist/css3/_border-image.scss +45 -42
  49. data/dist/css3/_flex-box.scss +14 -14
  50. data/dist/css3/_font-face.scss +1 -1
  51. data/dist/css3/_keyframes.scss +7 -7
  52. data/dist/functions/_assign.scss +11 -0
  53. data/dist/functions/_color-lightness.scss +5 -5
  54. data/dist/helpers/_convert-units.scss +15 -0
  55. data/dist/helpers/_is-num.scss +8 -0
  56. data/dist/helpers/_linear-angle-parser.scss +25 -0
  57. data/dist/helpers/_linear-gradient-parser.scss +41 -0
  58. data/dist/helpers/_linear-side-corner-parser.scss +31 -0
  59. data/dist/helpers/_radial-gradient-parser.scss +50 -0
  60. data/dist/helpers/_render-gradients.scss +2 -2
  61. data/dist/helpers/_str-to-num.scss +50 -0
  62. data/lib/bourbon/version.rb +1 -1
  63. data/package.json +14 -18
  64. data/readme.md +96 -0
  65. metadata +38 -33
  66. data/README.md +0 -126
  67. data/app/assets/stylesheets/addons/_word-wrap.scss +0 -8
  68. data/app/assets/stylesheets/css3/_inline-block.scss +0 -8
  69. data/app/assets/stylesheets/functions/_linear-gradient.scss +0 -13
  70. data/app/assets/stylesheets/functions/_px-to-rem.scss +0 -15
  71. data/app/assets/stylesheets/functions/_radial-gradient.scss +0 -23
  72. data/app/assets/stylesheets/settings/_asset-pipeline.scss +0 -1
  73. data/dist/addons/_word-wrap.scss +0 -8
  74. data/dist/css3/_inline-block.scss +0 -8
  75. data/dist/functions/_linear-gradient.scss +0 -13
  76. data/dist/functions/_px-to-rem.scss +0 -15
  77. data/dist/functions/_radial-gradient.scss +0 -23
  78. data/dist/settings/_asset-pipeline.scss +0 -1
@@ -1,8 +0,0 @@
1
- @mixin word-wrap($wrap: break-word) {
2
- word-wrap: $wrap;
3
-
4
- @if $wrap == break-word {
5
- overflow-wrap: break-word;
6
- word-break: break-all;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- // Legacy support for inline-block in IE7 (maybe IE6)
2
- @mixin inline-block {
3
- display: inline-block;
4
- vertical-align: baseline;
5
- zoom: 1;
6
- *display: inline;
7
- *vertical-align: auto;
8
- }
@@ -1,13 +0,0 @@
1
- @function linear-gradient($pos, $gradients...) {
2
- $type: linear;
3
- $pos-type: type-of(nth($pos, 1));
4
-
5
- // if $pos doesn't exist, fix $gradient
6
- @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
7
- $gradients: zip($pos $gradients);
8
- $pos: false;
9
- }
10
-
11
- $type-gradient: $type, $pos, $gradients;
12
- @return $type-gradient;
13
- }
@@ -1,15 +0,0 @@
1
- // Convert pixels to rems
2
- // eg. for a relational value of 12px write rem(12)
3
- // Assumes $em-base is the font-size of <html>
4
-
5
- @function rem($pxval) {
6
- @if not unitless($pxval) {
7
- $pxval: strip-units($pxval);
8
- }
9
-
10
- $base: $em-base;
11
- @if not unitless($base) {
12
- $base: strip-units($base);
13
- }
14
- @return ($pxval / $base) * 1rem;
15
- }
@@ -1,23 +0,0 @@
1
- // This function is required and used by the background-image mixin.
2
- @function 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
-
10
- $data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
11
- $G1: nth($data, 1);
12
- $G2: nth($data, 2);
13
- $pos: nth($data, 3);
14
- $shape-size: nth($data, 4);
15
-
16
- $type: radial;
17
- $gradient: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
18
-
19
- $type-gradient: $type, $shape-size $pos, $gradient;
20
- @return $type-gradient;
21
- }
22
-
23
-
@@ -1 +0,0 @@
1
- $asset-pipeline: false !default;
@@ -1,8 +0,0 @@
1
- @mixin word-wrap($wrap: break-word) {
2
- word-wrap: $wrap;
3
-
4
- @if $wrap == break-word {
5
- overflow-wrap: break-word;
6
- word-break: break-all;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- // Legacy support for inline-block in IE7 (maybe IE6)
2
- @mixin inline-block {
3
- display: inline-block;
4
- vertical-align: baseline;
5
- zoom: 1;
6
- *display: inline;
7
- *vertical-align: auto;
8
- }
@@ -1,13 +0,0 @@
1
- @function linear-gradient($pos, $gradients...) {
2
- $type: linear;
3
- $pos-type: type-of(nth($pos, 1));
4
-
5
- // if $pos doesn't exist, fix $gradient
6
- @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
7
- $gradients: zip($pos $gradients);
8
- $pos: false;
9
- }
10
-
11
- $type-gradient: $type, $pos, $gradients;
12
- @return $type-gradient;
13
- }
@@ -1,15 +0,0 @@
1
- // Convert pixels to rems
2
- // eg. for a relational value of 12px write rem(12)
3
- // Assumes $em-base is the font-size of <html>
4
-
5
- @function rem($pxval) {
6
- @if not unitless($pxval) {
7
- $pxval: strip-units($pxval);
8
- }
9
-
10
- $base: $em-base;
11
- @if not unitless($base) {
12
- $base: strip-units($base);
13
- }
14
- @return ($pxval / $base) * 1rem;
15
- }
@@ -1,23 +0,0 @@
1
- // This function is required and used by the background-image mixin.
2
- @function 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
-
10
- $data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
11
- $G1: nth($data, 1);
12
- $G2: nth($data, 2);
13
- $pos: nth($data, 3);
14
- $shape-size: nth($data, 4);
15
-
16
- $type: radial;
17
- $gradient: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10;
18
-
19
- $type-gradient: $type, $shape-size $pos, $gradient;
20
- @return $type-gradient;
21
- }
22
-
23
-
@@ -1 +0,0 @@
1
- $asset-pipeline: false !default;