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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c87e2acc7b1af15685893f8f83a8c183e1381b8ff30a0fab0c5d9a2ef70a5ff2
4
- data.tar.gz: 8cecaee3084f07ef007113283afb73ae8c7bb10ae5b05445a8e8be4e5315beef
3
+ metadata.gz: 9643a51902ac7ed19eb9ec07b9b4ce3edf9930dd8c9bf0614f0aa26015f5fc67
4
+ data.tar.gz: e062e0e0e72a55e3f707e6cb4aaa8e584a5b2e2db6673da4b95702ef4eeb34f4
5
5
  SHA512:
6
- metadata.gz: a428a5d4256f45836857fb9d48aed0734785e29b3c0d4a4a8019580b3bacc554d5ccdf087d86151e8aed304fbecbb3a6207ea21754b6618b572e85d252b2e0a6
7
- data.tar.gz: b79486ca42cc50e3a741db15e62b14e16d114719fa602cdaa73e86c09cb40c5e66652ad31cd40d651711adfb33513d32085528073af848072654c9f48a2ca8cb
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
@@ -1,4 +1,4 @@
1
- // Bourbon 7.1.0
1
+ // Bourbon 7.2.0
2
2
  // https://www.bourbon.io/
3
3
  // Copyright 2011-2020 thoughtbot, inc.
4
4
  // MIT License
@@ -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: math.div($v2, $ratio); // will be off-by-1
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: math.div($v2, $ratio);
105
+ $v2: ($v2 / $ratio);
108
106
  }
109
107
 
110
108
  @for $i from $increment through -1 {
111
- @if $double-stranded and math.div($v1, $ratio) < $v2 {
109
+ @if $double-stranded and ($v1 / $ratio) < $v2 {
112
110
  $value: $v2;
113
- $v2: math.div($v2, $ratio);
111
+ $v2: ($v2 / $ratio);
114
112
  } @else {
115
- $v1: math.div($v1, $ratio);
113
+ $v1: ($v1 / $ratio);
116
114
  $value: $v1;
117
115
  }
118
116
  }
@@ -12,8 +12,6 @@
12
12
  /// // Output
13
13
  /// $dimension: 10;
14
14
 
15
- @use "sass:math";
16
-
17
15
  @function strip-unit($value) {
18
- @return math.div($value, $value * 0 + 1);
16
+ @return ($value / ($value * 0 + 1));
19
17
  }
@@ -55,25 +55,25 @@
55
55
 
56
56
  @if $direction == "up" {
57
57
  border-color: transparent transparent $color;
58
- border-width: 0 ($width * 0.5) $height;
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 * 0.5) 0 ($height * 0.5) $width;
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 * 0.5) 0;
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 * 0.5) $width ($height * 0.5) 0;
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 math.div($-local-lightness-1, $-local-lightness-2);
27
+ @return $-local-lightness-1 / $-local-lightness-2;
30
28
  } @else {
31
- @return math.div($-local-lightness-2, $-local-lightness-1);
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 math.div($channel, 12.92);
15
+ @return $channel / 12.92;
18
16
  } @else {
19
- $c: math.div($channel + 0.055, 1.055);
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(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));
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
  }
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "7.1.0"
2
+ VERSION = "7.2.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.1.0"
40
+ "version": "7.2.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.1.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Reuter