bourbon 5.0.1 → 5.1.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/.npmignore +1 -1
- data/CHANGELOG.md +13 -1
- data/RELEASING.md +0 -1
- data/bower.json +1 -1
- data/core/_bourbon.scss +1 -1
- data/core/bourbon/library/_font-face.scss +4 -4
- data/core/bourbon/library/_font-stacks.scss +2 -3
- data/core/bourbon/utilities/_gamma.scss +6 -3
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- data/spec/bourbon/library/font_stacks_spec.rb +4 -4
- data/spec/bourbon/utilities/gamma_spec.rb +1 -1
- data/spec/bourbon/utilities/lightness_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4516c806404d02f78bef5a59f9d5104333792bb
|
4
|
+
data.tar.gz: f671d4509598c559ca201c22058d6456dfcfd3ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09cd044416d2ca0672d2c2fbaafe24b6bdf277ab2b6c64d339b876d6ada6ff9a8b4fe0b7589de0fd325a337c3afa3c4ee7c864b0cd060cad1b66c79945b6281a'
|
7
|
+
data.tar.gz: 5cde725ff3c1713c31537426d5035bfb578717ad21d822864642608ad581caba6e486a9df673dfc3ddb6d9eec10639cfa17bf8e5ec692facb4eb07151a87327b
|
data/.npmignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
|
data/RELEASING.md
CHANGED
data/bower.json
CHANGED
data/core/_bourbon.scss
CHANGED
@@ -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
|
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
|
-
@
|
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
|
}
|
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
@@ -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",
|
25
|
-
'"Segoe UI", "Lucida Grande", "Helvetica Neue",
|
26
|
-
'"Fira Sans", "Roboto", "Noto", "Droid Sans",
|
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)
|
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
|
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-
|
20
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: aruba
|