bourbon 4.2.3 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.npmignore +3 -1
- data/.travis.yml +1 -0
- data/README.md +2 -2
- data/app/assets/stylesheets/_bourbon.scss +1 -1
- data/app/assets/stylesheets/addons/_text-inputs.scss +1 -0
- data/app/assets/stylesheets/css3/_background-image.scss +2 -2
- data/app/assets/stylesheets/css3/_background.scss +2 -2
- data/app/assets/stylesheets/css3/_border-image.scss +2 -2
- data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +2 -2
- data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +2 -2
- data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +1 -1
- data/bourbon.gemspec +6 -6
- data/bower.json +1 -1
- data/index.js +7 -0
- data/lib/bourbon/version.rb +1 -1
- data/package.json +2 -2
- data/spec/bourbon/addons/text_inputs_spec.rb +1 -0
- data/spec/bourbon/functions/shade_spec.rb +2 -2
- data/spec/bourbon/functions/tint_spec.rb +2 -2
- data/spec/fixtures/functions/shade.scss +2 -2
- data/spec/fixtures/functions/tint.scss +2 -2
- metadata +27 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f314dffdd8ed3cfb4a6170d6825614cfa7294e1
|
4
|
+
data.tar.gz: 95dbacf29f1be76e148f10eb49093ee1e3f7d772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd828376b51a33ae123103766571cf8d02a5e257426016b18d90aa50bcaca85154bbdee6750b6187756cbd34b5d3bd4b68b98e1ddc7eca36fa30dd4052eff3a
|
7
|
+
data.tar.gz: c554ba1b34e8e340174e9444a43c3ddb53828e5c3012a2ff1df9066dcaae3d711ad740c2e4e087302d85dda5876767ae54a5b3742325767f96a265feeb298af7
|
data/.npmignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -74,7 +74,7 @@ For command line help, visit our wiki page on Bourbon’s [command line interfac
|
|
74
74
|
mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
|
75
75
|
```
|
76
76
|
|
77
|
-
4. Delete _all_ Sprockets directives in `application.scss` (`require`, `require_tree` and `require_self`) and use Sass’s native `@import` instead.
|
77
|
+
4. Delete _all_ Sprockets directives in `application.scss` (`require`, `require_tree` and `require_self`) and use Sass’s native `@import` instead. ([why?](http://pivotallabs.com/structure-your-sass-files-with-import))
|
78
78
|
|
79
79
|
5. Import Bourbon at the beginning of `application.scss`. All additional stylesheets should be imported below Bourbon:
|
80
80
|
|
@@ -127,7 +127,7 @@ and may be redistributed under the terms specified in the [license](LICENSE.md).
|
|
127
127
|
|
128
128
|
## About thoughtbot
|
129
129
|
|
130
|
-
[
|
130
|
+
[<img src="http://thoughtbot.github.io/images/signature.svg" width="250" alt="thoughtbot logo">][hire]
|
131
131
|
|
132
132
|
Bourbon is maintained and funded by thoughtbot, inc.
|
133
133
|
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
@@ -12,8 +12,8 @@
|
|
12
12
|
$spec-image: ();
|
13
13
|
|
14
14
|
@if (type-of($image) == string) {
|
15
|
-
$url-str: str-slice($image,
|
16
|
-
$gradient-type: str-slice($image,
|
15
|
+
$url-str: str-slice($image, 1, 3);
|
16
|
+
$gradient-type: str-slice($image, 1, 6);
|
17
17
|
|
18
18
|
@if $url-str == "url" {
|
19
19
|
$webkit-image: $image;
|
@@ -15,8 +15,8 @@
|
|
15
15
|
@if $background-type == string or $background-type == list {
|
16
16
|
$background-str: if($background-type == list, nth($background, 1), $background);
|
17
17
|
|
18
|
-
$url-str: str-slice($background-str,
|
19
|
-
$gradient-type: str-slice($background-str,
|
18
|
+
$url-str: str-slice($background-str, 1, 3);
|
19
|
+
$gradient-type: str-slice($background-str, 1, 6);
|
20
20
|
|
21
21
|
@if $url-str == "url" {
|
22
22
|
$webkit-background: $background;
|
@@ -10,8 +10,8 @@
|
|
10
10
|
@if $border-type == string or list {
|
11
11
|
$border-str: if($border-type == list, nth($border, 1), $border);
|
12
12
|
|
13
|
-
$url-str: str-slice($border-str,
|
14
|
-
$gradient-type: str-slice($border-str,
|
13
|
+
$url-str: str-slice($border-str, 1, 3);
|
14
|
+
$gradient-type: str-slice($border-str, 1, 6);
|
15
15
|
|
16
16
|
@if $url-str == "url" {
|
17
17
|
$webkit-border: $border;
|
@@ -5,12 +5,12 @@
|
|
5
5
|
$end: str-index($image, ",");
|
6
6
|
$first-val: str-slice($image, $start + 1, $end - 1);
|
7
7
|
|
8
|
-
$prefix: str-slice($image,
|
8
|
+
$prefix: str-slice($image, 1, $start);
|
9
9
|
$suffix: str-slice($image, $end, str-length($image));
|
10
10
|
|
11
11
|
$has-multiple-vals: str-index($first-val, " ");
|
12
12
|
$has-single-position: unquote(_position-flipper($first-val) + "");
|
13
|
-
$has-angle: is-number(str-slice($first-val,
|
13
|
+
$has-angle: is-number(str-slice($first-val, 1, 1));
|
14
14
|
|
15
15
|
@if $has-multiple-vals {
|
16
16
|
$gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals);
|
@@ -1,13 +1,13 @@
|
|
1
1
|
// Private function for linear-gradient-parser
|
2
2
|
@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
|
3
|
-
$val-1: str-slice($first-val,
|
3
|
+
$val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
|
4
4
|
$val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
|
5
5
|
$val-3: null;
|
6
6
|
$has-val-3: str-index($val-2, " ");
|
7
7
|
|
8
8
|
@if $has-val-3 {
|
9
9
|
$val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
|
10
|
-
$val-2: str-slice($val-2,
|
10
|
+
$val-2: str-slice($val-2, 1, $has-val-3 - 1);
|
11
11
|
}
|
12
12
|
|
13
13
|
$pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
|
@@ -5,7 +5,7 @@
|
|
5
5
|
$end: str-index($image, ",");
|
6
6
|
$first-val: str-slice($image, $start + 1, $end - 1);
|
7
7
|
|
8
|
-
$prefix: str-slice($image,
|
8
|
+
$prefix: str-slice($image, 1, $start);
|
9
9
|
$suffix: str-slice($image, $end, str-length($image));
|
10
10
|
|
11
11
|
$is-spec-syntax: str-index($first-val, "at");
|
data/bourbon.gemspec
CHANGED
@@ -22,11 +22,11 @@ meaning they should be as close to the original CSS syntax as possible.
|
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
24
|
s.add_runtime_dependency("sass", "~> 3.4")
|
25
|
-
s.add_runtime_dependency("thor")
|
25
|
+
s.add_runtime_dependency("thor", "~> 0.19")
|
26
26
|
|
27
|
-
s.add_development_dependency("aruba")
|
28
|
-
s.add_development_dependency("css_parser")
|
29
|
-
s.add_development_dependency("rake")
|
30
|
-
s.add_development_dependency("rspec")
|
31
|
-
s.add_development_dependency("
|
27
|
+
s.add_development_dependency("aruba", "~> 0.6.2")
|
28
|
+
s.add_development_dependency("css_parser", "~> 1.3")
|
29
|
+
s.add_development_dependency("rake", "~> 10.4")
|
30
|
+
s.add_development_dependency("rspec", "~> 3.3")
|
31
|
+
s.add_development_dependency("scss_lint", "~> 0.40")
|
32
32
|
end
|
data/bower.json
CHANGED
data/index.js
ADDED
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bourbon",
|
3
|
-
"version": "4.2.
|
3
|
+
"version": "4.2.4",
|
4
4
|
"description": "A simple and lightweight mixin library for Sass.",
|
5
5
|
"keywords": [
|
6
6
|
"css",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"name": "thoughtbot",
|
18
18
|
"url": "http://thoughtbot.com"
|
19
19
|
},
|
20
|
-
"main": "
|
20
|
+
"main": "index.js",
|
21
21
|
"repository": {
|
22
22
|
"type": "git",
|
23
23
|
"url": "https://github.com/thoughtbot/bourbon.git"
|
@@ -7,7 +7,7 @@ describe "shade" do
|
|
7
7
|
|
8
8
|
context "called on white" do
|
9
9
|
it "shades white" do
|
10
|
-
expect(".shade-white").to have_rule("color: #
|
10
|
+
expect(".shade-white").to have_rule("color: #404040")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -25,7 +25,7 @@ describe "shade" do
|
|
25
25
|
|
26
26
|
context "called on gray" do
|
27
27
|
it "shades gray" do
|
28
|
-
expect(".shade-gray").to have_rule("color: #
|
28
|
+
expect(".shade-gray").to have_rule("color: #171717")
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -13,13 +13,13 @@ describe "tint" do
|
|
13
13
|
|
14
14
|
context "called on black" do
|
15
15
|
it "tints black" do
|
16
|
-
expect(".tint-black").to have_rule("color:
|
16
|
+
expect(".tint-black").to have_rule("color: gray")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
context "called on red" do
|
21
21
|
it "tints red" do
|
22
|
-
expect(".tint-red").to have_rule("color: #
|
22
|
+
expect(".tint-red").to have_rule("color: #ff4040")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
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.
|
4
|
+
version: 4.2.4
|
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: 2015-
|
25
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
26
26
|
dependencies:
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sass
|
@@ -42,86 +42,86 @@ dependencies:
|
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '0.19'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.19'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aruba
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.6.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.6.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: css_parser
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.3'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1.3'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '10.4'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '10.4'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.3'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: scss_lint
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
117
|
+
version: '0.40'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
124
|
+
version: '0.40'
|
125
125
|
description: |
|
126
126
|
Bourbon is a library of pure Sass mixins that are designed to be simple and easy
|
127
127
|
to use. No configuration required. The mixins aim to be as vanilla as possible,
|
@@ -229,6 +229,7 @@ files:
|
|
229
229
|
- features/support/env.rb
|
230
230
|
- features/update.feature
|
231
231
|
- features/version.feature
|
232
|
+
- index.js
|
232
233
|
- lib/bourbon.rb
|
233
234
|
- lib/bourbon/engine.rb
|
234
235
|
- lib/bourbon/generator.rb
|
@@ -336,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
337
|
version: '0'
|
337
338
|
requirements: []
|
338
339
|
rubyforge_project:
|
339
|
-
rubygems_version: 2.4.
|
340
|
+
rubygems_version: 2.4.8
|
340
341
|
signing_key:
|
341
342
|
specification_version: 4
|
342
343
|
summary: A simple and lightweight mixin library for Sass
|