bourbon 5.0.0.beta.8 → 5.0.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.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +17 -6
- data/.github/PULL_REQUEST_TEMPLATE.md +8 -3
- data/.npmignore +1 -0
- data/CHANGELOG.md +11 -1
- data/CODE_OF_CONDUCT.md +6 -0
- data/LICENSE.md +1 -1
- data/README.md +6 -5
- data/bower.json +1 -1
- data/core/_bourbon.scss +2 -2
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- data/spec/bourbon/utilities/contrast_ratio_spec.rb +23 -0
- data/spec/bourbon/utilities/gamma_spec.rb +23 -0
- data/spec/bourbon/utilities/lightness_spec.rb +31 -0
- data/spec/fixtures/utilities/contrast-ratio.scss +9 -0
- data/spec/fixtures/utilities/gamma.scss +9 -0
- data/spec/fixtures/utilities/lightness.scss +13 -0
- metadata +18 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1584e80e0ac32e8bd3cb84b83ba12c55a6be1923
|
4
|
+
data.tar.gz: f64c1bc64288b6618eaaf0b0e8cd126a57590f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f53764c13fe7d31a92e66a4a3df6ded7896c89b73072cd6a2ce854a65f7ad65766a34ac418330c4cdf1411291d0269c30d8e515da0353b08cadd3ee899e44b
|
7
|
+
data.tar.gz: 87707bce377b4fa6acb24d09abe4b43cd24e37844c7d739b6c51de80d567bf2c09739e808132a1cb6fe589d78351296659ea81e9067cbdcee3603d851bd9bd5c
|
data/.github/ISSUE_TEMPLATE.md
CHANGED
@@ -1,11 +1,22 @@
|
|
1
|
-
|
1
|
+
<!-- Feel free to remove any part of this issue template that is not relevant -->
|
2
|
+
<!-- Providing context helps us come up with a useful solution -->
|
2
3
|
|
3
|
-
|
4
|
+
## Description
|
4
5
|
|
5
|
-
|
6
|
+
<!-- What did you expect to happen? What happened instead? Was a specific error thrown? -->
|
6
7
|
|
7
|
-
|
8
|
+
## Steps to Reproduce
|
8
9
|
|
9
|
-
|
10
|
+
<!-- If you can reproduce the bug in a CodePen, link to it here -->
|
10
11
|
|
11
|
-
|
12
|
+
1. Step 1…
|
13
|
+
2.
|
14
|
+
3.
|
15
|
+
|
16
|
+
## Development Environment
|
17
|
+
|
18
|
+
<!--- Include as many relevant details about the environment you experienced the bug in -->
|
19
|
+
|
20
|
+
- Bourbon version:
|
21
|
+
- Platform:
|
22
|
+
- Link to the code repository:
|
@@ -1,5 +1,10 @@
|
|
1
|
-
|
1
|
+
<!-- Feel free to remove any part of this pull request template that is not relevant -->
|
2
2
|
|
3
|
-
|
3
|
+
## Description
|
4
4
|
|
5
|
-
|
5
|
+
<!-- What do your changes do or fix? -->
|
6
|
+
|
7
|
+
## Additional Information
|
8
|
+
|
9
|
+
<!-- Links to demos, e.g. CodePen, can be helpful, as are research and support documents -->
|
10
|
+
<!-- If this fixes or is related to an existing issue, link to it here (and in the commit message) -->
|
data/.npmignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,17 @@ project adheres to [Semantic Versioning](http://semver.org).
|
|
7
7
|
|
8
8
|
Nothing at the moment.
|
9
9
|
|
10
|
-
[unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0
|
10
|
+
[unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0...HEAD
|
11
|
+
|
12
|
+
## [5.0.0] - 2018-01-05
|
13
|
+
|
14
|
+
Bourbon 5.0.0 is a major release with lots of changes and removals, which are
|
15
|
+
documented below in each of the alpha and beta releases. There are no changes
|
16
|
+
between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to
|
17
|
+
v5, read our [migrating guide][migrating-guide].
|
18
|
+
|
19
|
+
[5.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...v5.0.0
|
20
|
+
[migrating-guide]: http://www.bourbon.io/docs/migrating-from-v4-to-v5/
|
11
21
|
|
12
22
|
## [5.0.0-beta.8] - 2017-06-26
|
13
23
|
|
data/CODE_OF_CONDUCT.md
ADDED
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright © 2011-
|
3
|
+
Copyright © 2011-2018 [thoughtbot, inc.](http://thoughtbot.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the “Software”), to deal
|
data/README.md
CHANGED
@@ -11,9 +11,6 @@ It is…
|
|
11
11
|
- Human-readable: We aim for clarity over brevity.
|
12
12
|
- Lightweight: Zero output post-install and has no visual opinion.
|
13
13
|
|
14
|
-
The current stable version is **4.3.4**. The `master` branch on GitHub is
|
15
|
-
version 5.0.0.beta.8.
|
16
|
-
|
17
14
|
[Bourbon]: http://bourbon.io
|
18
15
|
[Sass]: http://sass-lang.com
|
19
16
|
|
@@ -133,7 +130,11 @@ version 5.0.0.beta.8.
|
|
133
130
|
@import "bourbon";
|
134
131
|
```
|
135
132
|
|
136
|
-
|
133
|
+
**Pro Tip:** Check out this [example gulp project][gulp-example] that
|
134
|
+
uses Bourbon and Neat.
|
135
|
+
|
136
|
+
[gulp-example]: https://github.com/thoughtbot/gulp-bourbon-neat-example
|
137
|
+
[eyeglass]: https://github.com/sass-eyeglass/eyeglass
|
137
138
|
|
138
139
|
### Installing older versions of Bourbon
|
139
140
|
|
@@ -202,7 +203,7 @@ See the [contributing] document. Thank you, [contributors]!
|
|
202
203
|
|
203
204
|
## License
|
204
205
|
|
205
|
-
Bourbon is copyright © 2011-
|
206
|
+
Bourbon is copyright © 2011-2018 [thoughtbot, inc.][thoughtbot] It is free
|
206
207
|
software, and may be redistributed under the terms specified in the [license].
|
207
208
|
|
208
209
|
[license]: LICENSE.md
|
data/bower.json
CHANGED
data/core/_bourbon.scss
CHANGED
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "contrast-ratio" do
|
4
|
+
before(:all) do
|
5
|
+
ParserSupport.parse_file("utilities/contrast-ratio")
|
6
|
+
end
|
7
|
+
|
8
|
+
context "calculates between white and black" do
|
9
|
+
it "outputs the contrast ratio" do
|
10
|
+
rule = "content: 21;"
|
11
|
+
|
12
|
+
expect(".contrast-ratio-black").to have_ruleset(rule)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "calculates between white and blue" do
|
17
|
+
it "outputs the contrast ratio" do
|
18
|
+
rule = "content: 8.59247;"
|
19
|
+
|
20
|
+
expect(".contrast-ratio-blue").to have_ruleset(rule)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "gamma" do
|
4
|
+
before(:all) do
|
5
|
+
ParserSupport.parse_file("utilities/gamma")
|
6
|
+
end
|
7
|
+
|
8
|
+
context "called on a color channel" do
|
9
|
+
it "outputs a gamma value between 0 and 1" do
|
10
|
+
rule = "content: 0.13185;"
|
11
|
+
|
12
|
+
expect(".gamma").to have_ruleset(rule)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "called on a full color channel" do
|
17
|
+
it "outputs a gamma value between 0 and 1" do
|
18
|
+
rule = "content: 1;"
|
19
|
+
|
20
|
+
expect(".gamma-full").to have_ruleset(rule)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "lightness" do
|
4
|
+
before(:all) do
|
5
|
+
ParserSupport.parse_file("utilities/lightness")
|
6
|
+
end
|
7
|
+
|
8
|
+
context "called on black" do
|
9
|
+
it "outputs a number between 0 and 1 to indicate lightness" do
|
10
|
+
rule = "content: 0;"
|
11
|
+
|
12
|
+
expect(".lightness-black").to have_ruleset(rule)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "called on white" do
|
17
|
+
it "outputs a number between 0 and 1 to indicate lightness" do
|
18
|
+
rule = "content: 1;"
|
19
|
+
|
20
|
+
expect(".lightness-white").to have_ruleset(rule)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context "called on gray" do
|
25
|
+
it "outputs a number between 0 and 1 to indicate lightness" do
|
26
|
+
rule = "content: 0.21795;"
|
27
|
+
|
28
|
+
expect(".lightness-gray").to have_ruleset(rule)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
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: 5.0.0
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Reuter
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date:
|
20
|
+
date: 2018-01-05 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: aruba
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- ".ruby-version"
|
135
135
|
- ".scss-lint.yml"
|
136
136
|
- CHANGELOG.md
|
137
|
+
- CODE_OF_CONDUCT.md
|
137
138
|
- CONTRIBUTING.md
|
138
139
|
- Gemfile
|
139
140
|
- LICENSE.md
|
@@ -231,9 +232,12 @@ files:
|
|
231
232
|
- spec/bourbon/library/triangle_spec.rb
|
232
233
|
- spec/bourbon/utilities/assign_inputs_spec.rb
|
233
234
|
- spec/bourbon/utilities/compact_shorthand_spec.rb
|
235
|
+
- spec/bourbon/utilities/contrast_ratio_spec.rb
|
234
236
|
- spec/bourbon/utilities/directional_property_spec.rb
|
235
237
|
- spec/bourbon/utilities/fetch_bourbon_setting_spec.rb
|
236
238
|
- spec/bourbon/utilities/font_source_declaration_spec.rb
|
239
|
+
- spec/bourbon/utilities/gamma_spec.rb
|
240
|
+
- spec/bourbon/utilities/lightness_spec.rb
|
237
241
|
- spec/bourbon/utilities/unpack_spec.rb
|
238
242
|
- spec/bourbon/validators/contains_spec.rb
|
239
243
|
- spec/bourbon/validators/is_length_spec.rb
|
@@ -269,9 +273,12 @@ files:
|
|
269
273
|
- spec/fixtures/library/triangle.scss
|
270
274
|
- spec/fixtures/utilities/assign-inputs.scss
|
271
275
|
- spec/fixtures/utilities/compact-shorthand.scss
|
276
|
+
- spec/fixtures/utilities/contrast-ratio.scss
|
272
277
|
- spec/fixtures/utilities/directional-property.scss
|
273
278
|
- spec/fixtures/utilities/fetch-bourbon-setting.scss
|
274
279
|
- spec/fixtures/utilities/font-source-declaration.scss
|
280
|
+
- spec/fixtures/utilities/gamma.scss
|
281
|
+
- spec/fixtures/utilities/lightness.scss
|
275
282
|
- spec/fixtures/utilities/unpack.scss
|
276
283
|
- spec/fixtures/validators/contains.scss
|
277
284
|
- spec/fixtures/validators/is-length.scss
|
@@ -298,12 +305,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
298
305
|
version: '0'
|
299
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
307
|
requirements:
|
301
|
-
- - "
|
308
|
+
- - ">="
|
302
309
|
- !ruby/object:Gem::Version
|
303
|
-
version:
|
310
|
+
version: '0'
|
304
311
|
requirements: []
|
305
312
|
rubyforge_project:
|
306
|
-
rubygems_version: 2.6.
|
313
|
+
rubygems_version: 2.6.13
|
307
314
|
signing_key:
|
308
315
|
specification_version: 4
|
309
316
|
summary: A lightweight Sass tool set.
|
@@ -343,9 +350,12 @@ test_files:
|
|
343
350
|
- spec/bourbon/library/triangle_spec.rb
|
344
351
|
- spec/bourbon/utilities/assign_inputs_spec.rb
|
345
352
|
- spec/bourbon/utilities/compact_shorthand_spec.rb
|
353
|
+
- spec/bourbon/utilities/contrast_ratio_spec.rb
|
346
354
|
- spec/bourbon/utilities/directional_property_spec.rb
|
347
355
|
- spec/bourbon/utilities/fetch_bourbon_setting_spec.rb
|
348
356
|
- spec/bourbon/utilities/font_source_declaration_spec.rb
|
357
|
+
- spec/bourbon/utilities/gamma_spec.rb
|
358
|
+
- spec/bourbon/utilities/lightness_spec.rb
|
349
359
|
- spec/bourbon/utilities/unpack_spec.rb
|
350
360
|
- spec/bourbon/validators/contains_spec.rb
|
351
361
|
- spec/bourbon/validators/is_length_spec.rb
|
@@ -381,9 +391,12 @@ test_files:
|
|
381
391
|
- spec/fixtures/library/triangle.scss
|
382
392
|
- spec/fixtures/utilities/assign-inputs.scss
|
383
393
|
- spec/fixtures/utilities/compact-shorthand.scss
|
394
|
+
- spec/fixtures/utilities/contrast-ratio.scss
|
384
395
|
- spec/fixtures/utilities/directional-property.scss
|
385
396
|
- spec/fixtures/utilities/fetch-bourbon-setting.scss
|
386
397
|
- spec/fixtures/utilities/font-source-declaration.scss
|
398
|
+
- spec/fixtures/utilities/gamma.scss
|
399
|
+
- spec/fixtures/utilities/lightness.scss
|
387
400
|
- spec/fixtures/utilities/unpack.scss
|
388
401
|
- spec/fixtures/validators/contains.scss
|
389
402
|
- spec/fixtures/validators/is-length.scss
|