bourbon 7.0.0 → 7.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/CHANGELOG.md +5 -3
- data/README.md +1 -1
- data/core/_bourbon.scss +1 -1
- data/core/bourbon/library/_modular-scale.scss +7 -5
- data/core/bourbon/library/_strip-unit.scss +3 -1
- data/core/bourbon/library/_triangle.scss +4 -4
- data/core/bourbon/utilities/_contrast-ratio.scss +4 -2
- data/core/bourbon/utilities/_gamma.scss +4 -2
- data/core/bourbon/utilities/_lightness.scss +5 -3
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87e2acc7b1af15685893f8f83a8c183e1381b8ff30a0fab0c5d9a2ef70a5ff2
|
4
|
+
data.tar.gz: 8cecaee3084f07ef007113283afb73ae8c7bb10ae5b05445a8e8be4e5315beef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a428a5d4256f45836857fb9d48aed0734785e29b3c0d4a4a8019580b3bacc554d5ccdf087d86151e8aed304fbecbb3a6207ea21754b6618b572e85d252b2e0a6
|
7
|
+
data.tar.gz: b79486ca42cc50e3a741db15e62b14e16d114719fa602cdaa73e86c09cb40c5e66652ad31cd40d651711adfb33513d32085528073af848072654c9f48a2ca8cb
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,13 @@
|
|
3
3
|
All notable changes to this project will be documented in this file. This
|
4
4
|
project adheres to [Semantic Versioning](http://semver.org).
|
5
5
|
|
6
|
-
## [
|
6
|
+
## [7.1.0] - 2022-02-22
|
7
7
|
|
8
|
-
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
- Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
|
9
11
|
|
10
|
-
[
|
12
|
+
[7.1.0]: https://github.com/thoughtbot/bourbon/compare/v7.0.0...v7.1.0
|
11
13
|
|
12
14
|
## [7.0.0] - 2020-03-09
|
13
15
|
|
data/README.md
CHANGED
@@ -192,7 +192,7 @@ software, and may be redistributed under the terms specified in the [license].
|
|
192
192
|
|
193
193
|
## About
|
194
194
|
|
195
|
-
Bourbon is maintained by
|
195
|
+
Bourbon is maintained by the thoughtbot design team. It is funded
|
196
196
|
by [thoughtbot, inc.][thoughtbot] and the names and logos for thoughtbot are
|
197
197
|
trademarks of thoughtbot, inc.
|
198
198
|
|
data/core/_bourbon.scss
CHANGED
@@ -67,6 +67,8 @@
|
|
67
67
|
///
|
68
68
|
/// @require {function} _fetch-bourbon-setting
|
69
69
|
|
70
|
+
@use "sass:math";
|
71
|
+
|
70
72
|
@function modular-scale(
|
71
73
|
$increment,
|
72
74
|
$value: _fetch-bourbon-setting("modular-scale-base"),
|
@@ -78,7 +80,7 @@
|
|
78
80
|
|
79
81
|
// scale $v2 to just above $v1
|
80
82
|
@while $v2 > $v1 {
|
81
|
-
$v2: ($v2
|
83
|
+
$v2: math.div($v2, $ratio); // will be off-by-1
|
82
84
|
}
|
83
85
|
@while $v2 < $v1 {
|
84
86
|
$v2: ($v2 * $ratio); // will fix off-by-1
|
@@ -102,15 +104,15 @@
|
|
102
104
|
@if $increment < 0 {
|
103
105
|
// adjust $v2 to just below $v1
|
104
106
|
@if $double-stranded {
|
105
|
-
$v2: ($v2
|
107
|
+
$v2: math.div($v2, $ratio);
|
106
108
|
}
|
107
109
|
|
108
110
|
@for $i from $increment through -1 {
|
109
|
-
@if $double-stranded and ($v1
|
111
|
+
@if $double-stranded and math.div($v1, $ratio) < $v2 {
|
110
112
|
$value: $v2;
|
111
|
-
$v2: ($v2
|
113
|
+
$v2: math.div($v2, $ratio);
|
112
114
|
} @else {
|
113
|
-
$v1: ($v1
|
115
|
+
$v1: math.div($v1, $ratio);
|
114
116
|
$value: $v1;
|
115
117
|
}
|
116
118
|
}
|
@@ -55,25 +55,25 @@
|
|
55
55
|
|
56
56
|
@if $direction == "up" {
|
57
57
|
border-color: transparent transparent $color;
|
58
|
-
border-width: 0 ($width
|
58
|
+
border-width: 0 ($width * 0.5) $height;
|
59
59
|
} @else if $direction == "up-right" {
|
60
60
|
border-color: transparent $color transparent transparent;
|
61
61
|
border-width: 0 $width $width 0;
|
62
62
|
} @else if $direction == "right" {
|
63
63
|
border-color: transparent transparent transparent $color;
|
64
|
-
border-width: ($height
|
64
|
+
border-width: ($height * 0.5) 0 ($height * 0.5) $width;
|
65
65
|
} @else if $direction == "down-right" {
|
66
66
|
border-color: transparent transparent $color;
|
67
67
|
border-width: 0 0 $width $width;
|
68
68
|
} @else if $direction == "down" {
|
69
69
|
border-color: $color transparent transparent;
|
70
|
-
border-width: $height ($width
|
70
|
+
border-width: $height ($width * 0.5) 0;
|
71
71
|
} @else if $direction == "down-left" {
|
72
72
|
border-color: transparent transparent transparent $color;
|
73
73
|
border-width: $width 0 0 $width;
|
74
74
|
} @else if $direction == "left" {
|
75
75
|
border-color: transparent $color transparent transparent;
|
76
|
-
border-width: ($height
|
76
|
+
border-width: ($height * 0.5) $width ($height * 0.5) 0;
|
77
77
|
} @else if $direction == "up-left" {
|
78
78
|
border-color: $color transparent transparent;
|
79
79
|
border-width: $width $width 0 0;
|
@@ -19,13 +19,15 @@
|
|
19
19
|
///
|
20
20
|
/// @access private
|
21
21
|
|
22
|
+
@use "sass:math";
|
23
|
+
|
22
24
|
@function _contrast-ratio($color-1, $color-2) {
|
23
25
|
$-local-lightness-1: _lightness($color-1) + 0.05;
|
24
26
|
$-local-lightness-2: _lightness($color-2) + 0.05;
|
25
27
|
|
26
28
|
@if $-local-lightness-1 > $-local-lightness-2 {
|
27
|
-
@return $-local-lightness-1
|
29
|
+
@return math.div($-local-lightness-1, $-local-lightness-2);
|
28
30
|
} @else {
|
29
|
-
@return $-local-lightness-2
|
31
|
+
@return math.div($-local-lightness-2, $-local-lightness-1);
|
30
32
|
}
|
31
33
|
}
|
@@ -10,11 +10,13 @@
|
|
10
10
|
///
|
11
11
|
/// @access private
|
12
12
|
|
13
|
+
@use "sass:math";
|
14
|
+
|
13
15
|
@function _gamma($channel) {
|
14
16
|
@if $channel < 0.03928 {
|
15
|
-
@return $channel
|
17
|
+
@return math.div($channel, 12.92);
|
16
18
|
} @else {
|
17
|
-
$c: ($channel + 0.055
|
19
|
+
$c: math.div($channel + 0.055, 1.055);
|
18
20
|
@if function-exists("pow") {
|
19
21
|
@return pow($c, 2.4);
|
20
22
|
} @else {
|
@@ -11,14 +11,16 @@
|
|
11
11
|
///
|
12
12
|
/// @access private
|
13
13
|
|
14
|
+
@use "sass:math";
|
15
|
+
|
14
16
|
@function _lightness($hex-color) {
|
15
17
|
$-local-red-raw: red(rgba($hex-color, 1));
|
16
18
|
$-local-green-raw: green(rgba($hex-color, 1));
|
17
19
|
$-local-blue-raw: blue(rgba($hex-color, 1));
|
18
20
|
|
19
|
-
$-local-red: _gamma($-local-red-raw
|
20
|
-
$-local-green: _gamma($-local-green-raw
|
21
|
-
$-local-blue: _gamma($-local-blue-raw
|
21
|
+
$-local-red: _gamma(math.div($-local-red-raw, 255));
|
22
|
+
$-local-green: _gamma(math.div($-local-green-raw, 255));
|
23
|
+
$-local-blue: _gamma(math.div($-local-blue-raw, 255));
|
22
24
|
|
23
25
|
@return $-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722;
|
24
26
|
}
|
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
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: 7.
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Reuter
|
@@ -14,10 +14,10 @@ authors:
|
|
14
14
|
- Reda Lemeden
|
15
15
|
- Tyson Gach
|
16
16
|
- Will McMahan
|
17
|
-
autorequire:
|
17
|
+
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date:
|
20
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: aruba
|
@@ -292,7 +292,7 @@ homepage: https://www.bourbon.io/
|
|
292
292
|
licenses:
|
293
293
|
- MIT
|
294
294
|
metadata: {}
|
295
|
-
post_install_message:
|
295
|
+
post_install_message:
|
296
296
|
rdoc_options: []
|
297
297
|
require_paths:
|
298
298
|
- lib
|
@@ -308,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
308
|
version: '0'
|
309
309
|
requirements: []
|
310
310
|
rubygems_version: 3.0.3
|
311
|
-
signing_key:
|
311
|
+
signing_key:
|
312
312
|
specification_version: 4
|
313
313
|
summary: A lightweight Sass tool set.
|
314
314
|
test_files:
|