bourbon 7.0.0 → 7.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
  SHA256:
3
- metadata.gz: eea57bd7e19929752d76a97fad59da53b1f15009f11c24442b6cba73ce19cba1
4
- data.tar.gz: 91cf2db90d0b45f175597cd1daa6fcf21a82510d5e27f5f0d6b141d93a9d76bc
3
+ metadata.gz: c87e2acc7b1af15685893f8f83a8c183e1381b8ff30a0fab0c5d9a2ef70a5ff2
4
+ data.tar.gz: 8cecaee3084f07ef007113283afb73ae8c7bb10ae5b05445a8e8be4e5315beef
5
5
  SHA512:
6
- metadata.gz: 50e219437c4f7f7b519f806019e16e40481504c52df5f6f083ec8b4ded70e9d42b4f3747d32f801f1808177371f1183d401e6b87b793a4dc96f08ec8e897c37f
7
- data.tar.gz: e6b4f7078a49f2006ec05d2ad1ea50454e8f447ec3692d64173e5aa1ebfd4b06baadc8732b967418cea819cc8c4ea408e8860e9d0c3a72848d2bdd006c6db0a8
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
- ## [Unreleased (`master`)][unreleased]
6
+ ## [7.1.0] - 2022-02-22
7
7
 
8
- Nothing at the moment.
8
+ ### Changed
9
+
10
+ - Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
9
11
 
10
- [unreleased]: https://github.com/thoughtbot/bourbon/compare/v6.0.0...HEAD
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 Tyson Gach and the thoughtbot design team. It is funded
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
@@ -1,4 +1,4 @@
1
- // Bourbon 7.0.0
1
+ // Bourbon 7.1.0
2
2
  // https://www.bourbon.io/
3
3
  // Copyright 2011-2020 thoughtbot, inc.
4
4
  // MIT License
@@ -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 / $ratio); // will be off-by-1
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 / $ratio);
107
+ $v2: math.div($v2, $ratio);
106
108
  }
107
109
 
108
110
  @for $i from $increment through -1 {
109
- @if $double-stranded and ($v1 / $ratio) < $v2 {
111
+ @if $double-stranded and math.div($v1, $ratio) < $v2 {
110
112
  $value: $v2;
111
- $v2: ($v2 / $ratio);
113
+ $v2: math.div($v2, $ratio);
112
114
  } @else {
113
- $v1: ($v1 / $ratio);
115
+ $v1: math.div($v1, $ratio);
114
116
  $value: $v1;
115
117
  }
116
118
  }
@@ -12,6 +12,8 @@
12
12
  /// // Output
13
13
  /// $dimension: 10;
14
14
 
15
+ @use "sass:math";
16
+
15
17
  @function strip-unit($value) {
16
- @return ($value / ($value * 0 + 1));
18
+ @return math.div($value, $value * 0 + 1);
17
19
  }
@@ -55,25 +55,25 @@
55
55
 
56
56
  @if $direction == "up" {
57
57
  border-color: transparent transparent $color;
58
- border-width: 0 ($width / 2) $height;
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 / 2) 0 ($height / 2) $width;
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 / 2) 0;
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 / 2) $width ($height / 2) 0;
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 / $-local-lightness-2;
29
+ @return math.div($-local-lightness-1, $-local-lightness-2);
28
30
  } @else {
29
- @return $-local-lightness-2 / $-local-lightness-1;
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 / 12.92;
17
+ @return math.div($channel, 12.92);
16
18
  } @else {
17
- $c: ($channel + 0.055) / 1.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 / 255);
20
- $-local-green: _gamma($-local-green-raw / 255);
21
- $-local-blue: _gamma($-local-blue-raw / 255);
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
  }
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "7.0.0"
2
+ VERSION = "7.1.0"
3
3
  end
data/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "stylelint": "npx stylelint 'core/**/*.scss'",
38
38
  "test": "bundle exec rake"
39
39
  },
40
- "version": "7.0.0"
40
+ "version": "7.1.0"
41
41
  }
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.0.0
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: 2020-03-09 00:00:00.000000000 Z
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: