bourbon 4.0.2 → 4.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
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 +41 -109
  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,10 +0,0 @@
1
- @function _shape-size-stripper($shape-size) {
2
- $shape-size-spec: null;
3
- @each $value in $shape-size {
4
- @if ($value == "cover") or ($value == "contain") {
5
- $value: null;
6
- }
7
- $shape-size-spec: "#{$shape-size-spec} #{$value}";
8
- }
9
- @return $shape-size-spec;
10
- }
@@ -1,50 +0,0 @@
1
- //************************************************************************//
2
- // Helper function for linear/radial-gradient-parsers.
3
- // Source: http://sassmeister.com/gist/9647408
4
- //************************************************************************//
5
- @function _str-to-num($string) {
6
- // Matrices
7
- $strings: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
8
- $numbers: 0 1 2 3 4 5 6 7 8 9;
9
-
10
- // Result
11
- $result: 0;
12
- $divider: 0;
13
- $minus: false;
14
-
15
- // Looping through all characters
16
- @for $i from 1 through str-length($string) {
17
- $character: str-slice($string, $i, $i);
18
- $index: index($strings, $character);
19
-
20
- @if $character == '-' {
21
- $minus: true;
22
- }
23
-
24
- @else if $character == '.' {
25
- $divider: 1;
26
- }
27
-
28
- @else {
29
- @if not $index {
30
- $result: if($minus, $result * -1, $result);
31
- @return _convert-units($result, str-slice($string, $i));
32
- }
33
-
34
- $number: nth($numbers, $index);
35
-
36
- @if $divider == 0 {
37
- $result: $result * 10;
38
- }
39
-
40
- @else {
41
- // Move the decimal dot to the left
42
- $divider: $divider * 10;
43
- $number: $number / $divider;
44
- }
45
-
46
- $result: $result + $number;
47
- }
48
- }
49
- @return if($minus, $result * -1, $result);
50
- }
@@ -1 +0,0 @@
1
- $asset-pipeline: false !default;
@@ -1,6 +0,0 @@
1
- // Variable settings for /addons/prefixer.scss
2
- $prefix-for-webkit: true !default;
3
- $prefix-for-mozilla: true !default;
4
- $prefix-for-microsoft: true !default;
5
- $prefix-for-opera: true !default;
6
- $prefix-for-spec: true !default; // required for keyframe mixin
@@ -1 +0,0 @@
1
- $em-base: 16px !default;
data/readme.md DELETED
@@ -1,105 +0,0 @@
1
- [![Bourbon Sass Mixin Library](http://bourbon.io/images/shared/bourbon-logo.png)](http://bourbon.io)
2
- <br>
3
- <br>
4
- [![Gem Version](https://badge.fury.io/rb/bourbon.png)](http://badge.fury.io/rb/bourbon) [![Code Climate](https://codeclimate.com/github/thoughtbot/bourbon.png)](https://codeclimate.com/github/thoughtbot/bourbon) [![Gitter chat](https://badges.gitter.im/thoughtbot/bourbon.png)](https://gitter.im/thoughtbot/bourbon)
5
-
6
- -
7
- :warning: Bourbon **4.0.0** requires Sass **3.3.x**. If you are using **libsass** or **sass-rails** use Bourbon **3.2.x**.
8
-
9
- ## A lightweight mixin library for Sass
10
- Bourbon is a library of pure sass mixins that are designed to be simple
11
- and easy to use. No configuration required.
12
-
13
- The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible.
14
-
15
- The mixins contain vendor specific prefixes for all CSS3 properties for support
16
- amongst modern browsers. The prefixes also ensure graceful degradation for older
17
- browsers that support only CSS3 prefixed properties. Bourbon uses SCSS syntax.
18
-
19
-
20
-
21
- ### [Documentation & Demo](http://bourbon.io)
22
-
23
- ### Requirements
24
- Sass 3.3+
25
-
26
- ### Install for Rails 3.1+
27
- In your Gemfile:
28
-
29
- gem 'bourbon'
30
-
31
- Then run:
32
-
33
- $ bundle install
34
-
35
- Restart your server. Then rename application`.css` to application`.css.scss`:
36
-
37
- mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
38
-
39
- Delete the sprocket directive in application.css.scss: [Why?](https://github.com/thoughtbot/bourbon/wiki/Rails-Sprockets)
40
-
41
- *= require_tree .
42
-
43
- Import Bourbon at the beginning of application.css.scss. All additional stylesheets must be imported below Bourbon:
44
-
45
- @import "bourbon";
46
- @import "home";
47
- @import "users";
48
-
49
-
50
- [Help! I'm getting an undefined mixin error.](https://github.com/thoughtbot/bourbon/wiki/Rails-Help-%5C-Undefined-mixin)
51
-
52
- ##### [Rails 3.0.x Install Instructions](https://github.com/thoughtbot/bourbon/wiki/Rails-3.0.x-Install) | [Rails 2.3 Install Instructions](https://github.com/thoughtbot/bourbon/wiki/Bourbon-v2.x-or-Rails-2.3-Install)
53
-
54
- ### Non-Rails projects
55
- Bourbon includes an easy way to generate a directory with all the necessary files.
56
- For command line help: `$ bourbon help` or visit the [Command line tools wiki](https://github.com/thoughtbot/bourbon/wiki/Command-Line-Tools)
57
-
58
- ##### Install (Bourbon v3.0+)
59
-
60
- gem install bourbon
61
-
62
- Install Bourbon into the current directory by generating the `bourbon` folder:
63
-
64
- bourbon install
65
-
66
- The generated folder will contain all the mixins and other necessary Bourbon files. It is recommended not to add or modify the Bourbon files so that you can update Bourbon easily.
67
-
68
- You can specify a target directory using the `path` flag:
69
-
70
- bourbon install --path my/custom/path/
71
-
72
- ##### Import
73
-
74
- Lastly, import the mixins at the beginning of your stylesheet(s):
75
-
76
- @import 'bourbon/bourbon';
77
-
78
- Note: Bourbon no longer requires a custom `sass --watch` command for Bourbon v3.0+
79
-
80
- ##### Other Commands
81
- Visit the [Command line tools wiki](https://github.com/thoughtbot/bourbon/wiki/Command-Line-Tools) for a complete list
82
-
83
- bourbon help
84
- bourbon update
85
-
86
- ##### [Bourbon v2.x install instructions](https://github.com/thoughtbot/bourbon/wiki/Bourbon-v2.x-or-Rails-2.3-Install)
87
-
88
-
89
- - [Changelog](https://github.com/thoughtbot/bourbon/releases)
90
- - [Browser support](https://github.com/thoughtbot/bourbon/wiki/Browser-Support)
91
-
92
- ### Chat with us
93
- [![Gitter chat](https://badges.gitter.im/thoughtbot/bourbon.png)](https://gitter.im/thoughtbot/bourbon)
94
-
95
- ### Credits
96
- ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
97
-
98
- Bourbon is maintained and funded by [thoughtbot, inc](http://thoughtbot.com/community)
99
-
100
- The names and logos for thoughtbot are trademarks of thoughtbot, inc.
101
-
102
- Got questions? Need help? Tweet at [@phillapier](http://twitter.com/phillapier).
103
-
104
- ### License
105
- Bourbon is Copyright © 2011-2013 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.