bourbon 5.0.1 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07c030fedbbaa84e4b686d375117f14d8645a4c2
4
- data.tar.gz: d61b2e580e0ea18dfc302cde4bec0386bad95fdc
3
+ metadata.gz: d4516c806404d02f78bef5a59f9d5104333792bb
4
+ data.tar.gz: f671d4509598c559ca201c22058d6456dfcfd3ae
5
5
  SHA512:
6
- metadata.gz: 6add763e80e43ab098c8cde256c2aebc7813dd7f9d6845f98fc7f94701a8404baf0d919a552bbe2e74028127b035575f4a7d439f7ee048ff45e7f1424c8bb26f
7
- data.tar.gz: d55a0c0b185b60d49c69cab5766af2128aaf42dbaf7ced50d1b1bbb972731f1ad63439f31b5fa6b254fc24d838dbb6bee6f6734aa1372f51bcd403ed9af8f630
6
+ metadata.gz: '09cd044416d2ca0672d2c2fbaafe24b6bdf277ab2b6c64d339b876d6ada6ff9a8b4fe0b7589de0fd325a337c3afa3c4ee7c864b0cd060cad1b66c79945b6281a'
7
+ data.tar.gz: 5cde725ff3c1713c31537426d5035bfb578717ad21d822864642608ad581caba6e486a9df673dfc3ddb6d9eec10639cfa17bf8e5ec692facb4eb07151a87327b
data/.npmignore CHANGED
@@ -1,3 +1,4 @@
1
+ .circleci/
1
2
  .github/
2
3
  .gitignore
3
4
  .hound.yml
@@ -8,7 +9,6 @@ _site
8
9
  bin/
9
10
  bourbon.gemspec
10
11
  bower.json
11
- circle.yml
12
12
  CODE_OF_CONDUCT.md
13
13
  CONTRIBUTING.md
14
14
  features/
@@ -7,7 +7,19 @@ 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.1...HEAD
10
+ [unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.1.0...HEAD
11
+
12
+ ## [5.1.0] - 2018-07-20
13
+
14
+ ### Added
15
+
16
+ - `$font-stack-system` now includes the `system-ui` value.
17
+
18
+ ### Changed
19
+
20
+ - The `_gamma` function will use a `pow` function, if available.
21
+
22
+ [5.1.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.1...v5.1.0
11
23
 
12
24
  ## [5.0.1] - 2018-06-08
13
25
 
@@ -6,7 +6,6 @@
6
6
  - `core/_bourbon.scss`
7
7
  - `package.json`
8
8
  - `bower.json`
9
- - `README.md`
10
9
 
11
10
  1. Update `CHANGELOG.md`. We follow the guidelines from [Keep a CHANGELOG].
12
11
 
data/bower.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "type": "git",
36
36
  "url": "https://github.com/thoughtbot/bourbon.git"
37
37
  },
38
- "version": "5.0.1"
38
+ "version": "5.1.0"
39
39
  }
@@ -1,4 +1,4 @@
1
- // Bourbon 5.0.1
1
+ // Bourbon 5.1.0
2
2
  // https://www.bourbon.io/
3
3
  // Copyright 2011-2018 thoughtbot, inc.
4
4
  // MIT License
@@ -9,15 +9,15 @@
9
9
  ///
10
10
  /// @argument {string} $file-path
11
11
  ///
12
+ /// @argument {string | list} $file-formats [("ttf", "woff2", "woff")]
13
+ /// List of the font file formats to include. Can also be set globally using
14
+ /// the `global-font-file-formats` key in the Bourbon settings.
15
+ ///
12
16
  /// @argument {string} $asset-pipeline [false]
13
17
  /// Set to `true` if you’re using the Rails Asset Pipeline (place the fonts
14
18
  /// in `app/assets/fonts/`). Can also be set globally using the
15
19
  /// `rails-asset-pipeline` key in the Bourbon settings.
16
20
  ///
17
- /// @argument {string | list} $file-formats [("ttf", "woff2", "woff")]
18
- /// List of the font file formats to include. Can also be set globally using
19
- /// the `global-font-file-formats` key in the Bourbon settings.
20
- ///
21
21
  /// @content
22
22
  /// Any additional CSS properties that are included in the `@include`
23
23
  /// directive will be output within the `@font-face` declaration, e.g. you can
@@ -71,8 +71,6 @@ $font-stack-verdana: (
71
71
 
72
72
  /// A variable that outputs a system font stack.
73
73
  ///
74
- /// @link https://goo.gl/LHRZIf
75
- ///
76
74
  /// @type list
77
75
  ///
78
76
  /// @example scss
@@ -82,10 +80,11 @@ $font-stack-verdana: (
82
80
  ///
83
81
  /// // CSS Output
84
82
  /// .element {
85
- /// font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
83
+ /// font-family: system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
86
84
  /// }
87
85
 
88
86
  $font-stack-system: (
87
+ system-ui,
89
88
  -apple-system,
90
89
  BlinkMacSystemFont,
91
90
  "Avenir Next",
@@ -2,8 +2,7 @@
2
2
 
3
3
  /// Performs gamma correction on a single color channel.
4
4
  ///
5
- /// Note that Sass does not have a `pow()` function, so the calculation
6
- /// is approximate.
5
+ /// Note that the calculation is approximate if a `pow()` is not available.
7
6
  ///
8
7
  /// @argument {number (0-1)} $channel
9
8
  ///
@@ -16,6 +15,10 @@
16
15
  @return $channel / 12.92;
17
16
  } @else {
18
17
  $c: ($channel + 0.055) / 1.055;
19
- @return (133 * $c * $c * $c + 155 * $c * $c) / 288;
18
+ @if function-exists("pow") {
19
+ @return pow($c, 2.4);
20
+ } @else {
21
+ @return 0.56 * $c * $c * $c + 0.44 * $c * $c;
22
+ }
20
23
  }
21
24
  }
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "5.0.1"
2
+ VERSION = "5.1.0"
3
3
  end
@@ -30,5 +30,5 @@
30
30
  "scripts": {
31
31
  "test": "bundle exec rake"
32
32
  },
33
- "version": "5.0.1"
33
+ "version": "5.1.0"
34
34
  }
@@ -21,10 +21,10 @@ describe "font-stacks" do
21
21
  '"Lucida Typewriter", monospace'
22
22
  monaco = '"Monaco", "Consolas", "Lucida Console", monospace'
23
23
 
24
- system = '-apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", ' +
25
- '"Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", ' +
26
- '"Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", ' +
27
- '"Oxygen", "Ubuntu", "Franklin Gothic Medium", ' +
24
+ system = 'system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", ' +
25
+ '"Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", ' +
26
+ '"Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", ' +
27
+ '"Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", ' +
28
28
  '"Century Gothic", "Liberation Sans", sans-serif'
29
29
 
30
30
  expect(".helvetica").to have_value(helvetica)
@@ -7,7 +7,7 @@ describe "gamma" do
7
7
 
8
8
  context "called on a color channel" do
9
9
  it "outputs a gamma value between 0 and 1" do
10
- rule = "content: 0.13185;"
10
+ rule = "content: 0.12168;"
11
11
 
12
12
  expect(".gamma").to have_ruleset(rule)
13
13
  end
@@ -23,7 +23,7 @@ describe "lightness" do
23
23
 
24
24
  context "called on gray" do
25
25
  it "outputs a number between 0 and 1 to indicate lightness" do
26
- rule = "content: 0.21795;"
26
+ rule = "content: 0.20503;"
27
27
 
28
28
  expect(".lightness-gray").to have_ruleset(rule)
29
29
  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.1
4
+ version: 5.1.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: 2018-06-08 00:00:00.000000000 Z
20
+ date: 2018-07-20 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: aruba