bourbon 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/core/_bourbon.scss +1 -1
- data/core/bourbon/library/_modular-scale.scss +5 -7
- data/core/bourbon/library/_strip-unit.scss +1 -3
- data/core/bourbon/library/_triangle.scss +4 -4
- data/core/bourbon/utilities/_contrast-ratio.scss +2 -4
- data/core/bourbon/utilities/_gamma.scss +2 -4
- data/core/bourbon/utilities/_lightness.scss +3 -5
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9643a51902ac7ed19eb9ec07b9b4ce3edf9930dd8c9bf0614f0aa26015f5fc67
|
4
|
+
data.tar.gz: e062e0e0e72a55e3f707e6cb4aaa8e584a5b2e2db6673da4b95702ef4eeb34f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff945a5d401efaaab35635c245e823b2085424adbcb8bddc23fb574d56fdc43af50f29f895c48774f99547c084c5e43ce4f9a8b4abcc4072adc32ea97cd2582
|
7
|
+
data.tar.gz: 25770a307ff47b90edf8a223c7601fd819917657104ddefc45fdc0f1ac0678f89fb97b25415569e8f962d90abbfc40eebfcfcc5ec58ca73f05a152d847632869
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,19 @@
|
|
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
|
+
## [7.2.0] - 2022-02-22
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
- Revert "Replace `/` with `math.div` per Dart Sass 2.0.0 updates."
|
11
|
+
|
12
|
+
[7.2.0]: https://github.com/thoughtbot/bourbon/compare/v7.1.0...v7.2.0
|
13
|
+
|
6
14
|
## [7.1.0] - 2022-02-22
|
7
15
|
|
8
16
|
### Changed
|
9
17
|
|
10
|
-
- Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
|
18
|
+
- Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
|
11
19
|
|
12
20
|
[7.1.0]: https://github.com/thoughtbot/bourbon/compare/v7.0.0...v7.1.0
|
13
21
|
|
data/core/_bourbon.scss
CHANGED
@@ -67,8 +67,6 @@
|
|
67
67
|
///
|
68
68
|
/// @require {function} _fetch-bourbon-setting
|
69
69
|
|
70
|
-
@use "sass:math";
|
71
|
-
|
72
70
|
@function modular-scale(
|
73
71
|
$increment,
|
74
72
|
$value: _fetch-bourbon-setting("modular-scale-base"),
|
@@ -80,7 +78,7 @@
|
|
80
78
|
|
81
79
|
// scale $v2 to just above $v1
|
82
80
|
@while $v2 > $v1 {
|
83
|
-
$v2:
|
81
|
+
$v2: ($v2 / $ratio); // will be off-by-1
|
84
82
|
}
|
85
83
|
@while $v2 < $v1 {
|
86
84
|
$v2: ($v2 * $ratio); // will fix off-by-1
|
@@ -104,15 +102,15 @@
|
|
104
102
|
@if $increment < 0 {
|
105
103
|
// adjust $v2 to just below $v1
|
106
104
|
@if $double-stranded {
|
107
|
-
$v2:
|
105
|
+
$v2: ($v2 / $ratio);
|
108
106
|
}
|
109
107
|
|
110
108
|
@for $i from $increment through -1 {
|
111
|
-
@if $double-stranded and
|
109
|
+
@if $double-stranded and ($v1 / $ratio) < $v2 {
|
112
110
|
$value: $v2;
|
113
|
-
$v2:
|
111
|
+
$v2: ($v2 / $ratio);
|
114
112
|
} @else {
|
115
|
-
$v1:
|
113
|
+
$v1: ($v1 / $ratio);
|
116
114
|
$value: $v1;
|
117
115
|
}
|
118
116
|
}
|
@@ -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 / 2) $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 / 2) 0 ($height / 2) $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 / 2) 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 / 2) $width ($height / 2) 0;
|
77
77
|
} @else if $direction == "up-left" {
|
78
78
|
border-color: $color transparent transparent;
|
79
79
|
border-width: $width $width 0 0;
|
@@ -19,15 +19,13 @@
|
|
19
19
|
///
|
20
20
|
/// @access private
|
21
21
|
|
22
|
-
@use "sass:math";
|
23
|
-
|
24
22
|
@function _contrast-ratio($color-1, $color-2) {
|
25
23
|
$-local-lightness-1: _lightness($color-1) + 0.05;
|
26
24
|
$-local-lightness-2: _lightness($color-2) + 0.05;
|
27
25
|
|
28
26
|
@if $-local-lightness-1 > $-local-lightness-2 {
|
29
|
-
@return
|
27
|
+
@return $-local-lightness-1 / $-local-lightness-2;
|
30
28
|
} @else {
|
31
|
-
@return
|
29
|
+
@return $-local-lightness-2 / $-local-lightness-1;
|
32
30
|
}
|
33
31
|
}
|
@@ -10,13 +10,11 @@
|
|
10
10
|
///
|
11
11
|
/// @access private
|
12
12
|
|
13
|
-
@use "sass:math";
|
14
|
-
|
15
13
|
@function _gamma($channel) {
|
16
14
|
@if $channel < 0.03928 {
|
17
|
-
@return
|
15
|
+
@return $channel / 12.92;
|
18
16
|
} @else {
|
19
|
-
$c:
|
17
|
+
$c: ($channel + 0.055) / 1.055;
|
20
18
|
@if function-exists("pow") {
|
21
19
|
@return pow($c, 2.4);
|
22
20
|
} @else {
|
@@ -11,16 +11,14 @@
|
|
11
11
|
///
|
12
12
|
/// @access private
|
13
13
|
|
14
|
-
@use "sass:math";
|
15
|
-
|
16
14
|
@function _lightness($hex-color) {
|
17
15
|
$-local-red-raw: red(rgba($hex-color, 1));
|
18
16
|
$-local-green-raw: green(rgba($hex-color, 1));
|
19
17
|
$-local-blue-raw: blue(rgba($hex-color, 1));
|
20
18
|
|
21
|
-
$-local-red: _gamma(
|
22
|
-
$-local-green: _gamma(
|
23
|
-
$-local-blue: _gamma(
|
19
|
+
$-local-red: _gamma($-local-red-raw / 255);
|
20
|
+
$-local-green: _gamma($-local-green-raw / 255);
|
21
|
+
$-local-blue: _gamma($-local-blue-raw / 255);
|
24
22
|
|
25
23
|
@return $-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722;
|
26
24
|
}
|
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED