bourbon 7.1.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +21 -3
- data/CHANGELOG.md +14 -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/lib/bourbon.rb +3 -1
- data/package.json +1 -1
- metadata +3 -4
- data/.tool-versions +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8b1bb739922d66275ca7d386952f6225db7ac7bbb382cf107d55c4517478d35
|
4
|
+
data.tar.gz: e111c742294460bf8bf934fe40c3a2e80d1a1a7ac0a7bb9d35d932823c54fe11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864c62b0d5a67b196ddaef3b5f4f5d6892ce84de42bb563071a27170ced0c452938426ceb1293b34ca6d926240fedd82dd784c5c848a7641d93c59cffb2fc50c
|
7
|
+
data.tar.gz: a002231748d4a66b84b5d3dd5a67f0068c23fc1982ef7a44929312a1c11a8566b5e1f521dc4203f8c6a88c117e216eacf8ab057d0a608c31842954defaa50943
|
data/.circleci/config.yml
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
-
version: 2
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
# orbs are basically bundles of pre-written build scripts that work for common cases
|
5
|
+
# https://github.com/CircleCI-Public/ruby-orb
|
6
|
+
ruby: circleci/ruby@1.1
|
7
|
+
|
2
8
|
jobs:
|
3
|
-
|
9
|
+
test:
|
10
|
+
parameters:
|
11
|
+
ruby-version:
|
12
|
+
type: string
|
4
13
|
docker:
|
5
|
-
- image:
|
14
|
+
- image: cimg/ruby:<< parameters.ruby-version >>-node
|
6
15
|
steps:
|
7
16
|
- checkout
|
8
17
|
- restore_cache:
|
@@ -22,3 +31,12 @@ jobs:
|
|
22
31
|
- run:
|
23
32
|
name: Parse SassDoc comments
|
24
33
|
command: npm run sassdoc
|
34
|
+
workflows:
|
35
|
+
build_and_test:
|
36
|
+
jobs:
|
37
|
+
- test:
|
38
|
+
matrix:
|
39
|
+
parameters:
|
40
|
+
# https://github.com/CircleCI-Public/cimg-ruby
|
41
|
+
# only supports the last three ruby versions
|
42
|
+
ruby-version: ["2.7", "3.0", "3.1", "3.2"]
|
data/CHANGELOG.md
CHANGED
@@ -3,11 +3,24 @@
|
|
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.3.0] - 2023-01-20
|
7
|
+
|
8
|
+
## Changed
|
9
|
+
- Update initializers so they only include assets for >=Rails 5. [https://github.com/thoughtbot/bourbon/pull/1109/](https://github.com/thoughtbot/bourbon/pull/1109/files)
|
10
|
+
|
11
|
+
## [7.2.0] - 2022-02-22
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
- Revert "Replace `/` with `math.div` per Dart Sass 2.0.0 updates."
|
16
|
+
|
17
|
+
[7.2.0]: https://github.com/thoughtbot/bourbon/compare/v7.1.0...v7.2.0
|
18
|
+
|
6
19
|
## [7.1.0] - 2022-02-22
|
7
20
|
|
8
21
|
### Changed
|
9
22
|
|
10
|
-
- Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
|
23
|
+
- Replace `/` with `math.div` per Dart Sass 2.0.0 updates.
|
11
24
|
|
12
25
|
[7.1.0]: https://github.com/thoughtbot/bourbon/compare/v7.0.0...v7.1.0
|
13
26
|
|
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/lib/bourbon.rb
CHANGED
@@ -3,7 +3,9 @@ require "bourbon/generator"
|
|
3
3
|
module Bourbon
|
4
4
|
if defined?(Rails) && defined?(Rails::Engine)
|
5
5
|
class Engine < ::Rails::Engine
|
6
|
-
|
6
|
+
initializer "bourbon.paths", group: :all do |app|
|
7
|
+
app.config.assets.paths << File.expand_path("../core", __dir__)
|
8
|
+
end
|
7
9
|
end
|
8
10
|
else
|
9
11
|
begin
|
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.3.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:
|
20
|
+
date: 2023-01-23 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: aruba
|
@@ -133,7 +133,6 @@ files:
|
|
133
133
|
- ".hound.yml"
|
134
134
|
- ".npmignore"
|
135
135
|
- ".stylelintrc.json"
|
136
|
-
- ".tool-versions"
|
137
136
|
- CHANGELOG.md
|
138
137
|
- CODE_OF_CONDUCT.md
|
139
138
|
- CONTRIBUTING.md
|
@@ -307,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
306
|
- !ruby/object:Gem::Version
|
308
307
|
version: '0'
|
309
308
|
requirements: []
|
310
|
-
rubygems_version: 3.
|
309
|
+
rubygems_version: 3.2.15
|
311
310
|
signing_key:
|
312
311
|
specification_version: 4
|
313
312
|
summary: A lightweight Sass tool set.
|
data/.tool-versions
DELETED