bourbon 4.2.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.npmignore +2 -1
- data/.scss-lint.yml +142 -1
- data/CHANGELOG.md +47 -0
- data/LICENSE.md +1 -1
- data/README.md +21 -7
- data/app/assets/stylesheets/_bourbon-deprecate.scss +19 -0
- data/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss +28 -14
- data/app/assets/stylesheets/_bourbon.scss +5 -2
- data/app/assets/stylesheets/addons/_border-color.scss +3 -0
- data/app/assets/stylesheets/addons/_border-style.scss +3 -0
- data/app/assets/stylesheets/addons/_border-width.scss +3 -0
- data/app/assets/stylesheets/addons/_buttons.scss +5 -0
- data/app/assets/stylesheets/addons/_margin.scss +3 -0
- data/app/assets/stylesheets/addons/_padding.scss +3 -0
- data/app/assets/stylesheets/addons/_position.scss +3 -0
- data/app/assets/stylesheets/addons/_retina-image.scss +2 -0
- data/app/assets/stylesheets/addons/_size.scss +5 -0
- data/app/assets/stylesheets/addons/_text-inputs.scss +6 -0
- data/app/assets/stylesheets/css3/_animation.scss +18 -0
- data/app/assets/stylesheets/css3/_appearance.scss +2 -0
- data/app/assets/stylesheets/css3/_backface-visibility.scss +2 -0
- data/app/assets/stylesheets/css3/_background-image.scss +4 -2
- data/app/assets/stylesheets/css3/_background.scss +4 -2
- data/app/assets/stylesheets/css3/_border-image.scss +4 -2
- data/app/assets/stylesheets/css3/_calc.scss +2 -0
- data/app/assets/stylesheets/css3/_columns.scss +21 -1
- data/app/assets/stylesheets/css3/_filter.scss +2 -0
- data/app/assets/stylesheets/css3/_flex-box.scss +40 -0
- data/app/assets/stylesheets/css3/_font-face.scss +5 -0
- data/app/assets/stylesheets/css3/_font-feature-settings.scss +2 -0
- data/app/assets/stylesheets/css3/_hidpi-media-query.scss +2 -0
- data/app/assets/stylesheets/css3/_hyphens.scss +2 -0
- data/app/assets/stylesheets/css3/_image-rendering.scss +1 -0
- data/app/assets/stylesheets/css3/_keyframes.scss +2 -0
- data/app/assets/stylesheets/css3/_linear-gradient.scss +2 -0
- data/app/assets/stylesheets/css3/_perspective.scss +4 -0
- data/app/assets/stylesheets/css3/_placeholder.scss +2 -0
- data/app/assets/stylesheets/css3/_radial-gradient.scss +3 -2
- data/app/assets/stylesheets/css3/_selection.scss +2 -0
- data/app/assets/stylesheets/css3/_text-decoration.scss +8 -0
- data/app/assets/stylesheets/css3/_transform.scss +6 -0
- data/app/assets/stylesheets/css3/_transition.scss +10 -0
- data/app/assets/stylesheets/css3/_user-select.scss +2 -0
- data/app/assets/stylesheets/functions/_assign-inputs.scss +5 -0
- data/app/assets/stylesheets/functions/_contains-falsy.scss +5 -0
- data/app/assets/stylesheets/functions/_contains.scss +5 -0
- data/app/assets/stylesheets/functions/_is-length.scss +5 -0
- data/app/assets/stylesheets/functions/_is-light.scss +5 -0
- data/app/assets/stylesheets/functions/_is-number.scss +5 -0
- data/app/assets/stylesheets/functions/_is-size.scss +10 -0
- data/app/assets/stylesheets/functions/_modular-scale.scss +5 -0
- data/app/assets/stylesheets/functions/_px-to-em.scss +11 -0
- data/app/assets/stylesheets/functions/_px-to-rem.scss +11 -0
- data/app/assets/stylesheets/functions/_strip-units.scss +5 -0
- data/app/assets/stylesheets/functions/_transition-property-name.scss +15 -0
- data/app/assets/stylesheets/functions/_unpack.scss +5 -0
- data/app/assets/stylesheets/helpers/_convert-units.scss +5 -0
- data/app/assets/stylesheets/helpers/_directional-values.scss +12 -0
- data/app/assets/stylesheets/helpers/_font-source-declaration.scss +10 -0
- data/app/assets/stylesheets/helpers/_gradient-positions-parser.scss +11 -0
- data/app/assets/stylesheets/helpers/_linear-angle-parser.scss +10 -0
- data/app/assets/stylesheets/helpers/_linear-gradient-parser.scss +12 -2
- data/app/assets/stylesheets/helpers/_linear-positions-parser.scss +18 -2
- data/app/assets/stylesheets/helpers/_linear-side-corner-parser.scss +12 -2
- data/app/assets/stylesheets/helpers/_radial-arg-parser.scss +5 -0
- data/app/assets/stylesheets/helpers/_radial-gradient-parser.scss +6 -1
- data/app/assets/stylesheets/helpers/_radial-positions-parser.scss +10 -0
- data/app/assets/stylesheets/helpers/_render-gradients.scss +5 -0
- data/app/assets/stylesheets/helpers/_shape-size-stripper.scss +5 -0
- data/app/assets/stylesheets/helpers/_str-to-num.scss +5 -0
- data/app/assets/stylesheets/settings/_deprecation-warnings.scss +8 -0
- data/bourbon.gemspec +6 -6
- data/bower.json +1 -1
- data/circle.yml +10 -0
- data/eyeglass-exports.js +7 -0
- data/index.js +7 -0
- data/lib/bourbon/version.rb +1 -1
- data/package.json +7 -2
- data/spec/bourbon/addons/text_inputs_spec.rb +1 -0
- data/spec/bourbon/functions/shade_spec.rb +2 -2
- data/spec/bourbon/functions/tint_spec.rb +2 -2
- data/spec/fixtures/functions/shade.scss +2 -2
- data/spec/fixtures/functions/tint.scss +2 -2
- metadata +34 -30
- data/.travis.yml +0 -7
@@ -27,6 +27,11 @@
|
|
27
27
|
/// @return {List}
|
28
28
|
|
29
29
|
@function collapse-directionals($vals) {
|
30
|
+
@if $output-bourbon-deprecation-warnings == true {
|
31
|
+
@warn "[Bourbon] [Deprecation] `collapse-directionals` is deprecated and " +
|
32
|
+
"will be removed in 5.0.0.";
|
33
|
+
}
|
34
|
+
|
30
35
|
$output: null;
|
31
36
|
|
32
37
|
$a: nth($vals, 1);
|
@@ -62,6 +67,11 @@
|
|
62
67
|
/// @require {function} contains-falsy
|
63
68
|
|
64
69
|
@mixin directional-property($pre, $suf, $vals) {
|
70
|
+
@include _bourbon-deprecate("directional-property");
|
71
|
+
|
72
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
73
|
+
$output-bourbon-deprecation-warnings: false !global;
|
74
|
+
|
65
75
|
// Property Names
|
66
76
|
$top: $pre + "-top" + if($suf, "-#{$suf}", "");
|
67
77
|
$bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
|
@@ -93,4 +103,6 @@
|
|
93
103
|
} @else {
|
94
104
|
#{$all}: $vals;
|
95
105
|
}
|
106
|
+
|
107
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
96
108
|
}
|
@@ -2,6 +2,11 @@
|
|
2
2
|
// Reference: http://goo.gl/Ru1bKP
|
3
3
|
|
4
4
|
@function font-url-prefixer($asset-pipeline) {
|
5
|
+
@if $output-bourbon-deprecation-warnings == true {
|
6
|
+
@warn "[Bourbon] [Deprecation] `font-url-prefixer` is deprecated and " +
|
7
|
+
"will be removed in 5.0.0.";
|
8
|
+
}
|
9
|
+
|
5
10
|
@if $asset-pipeline == true {
|
6
11
|
@return font-url;
|
7
12
|
} @else {
|
@@ -16,6 +21,11 @@
|
|
16
21
|
$file-formats,
|
17
22
|
$font-url) {
|
18
23
|
|
24
|
+
@if $output-bourbon-deprecation-warnings == true {
|
25
|
+
@warn "[Bourbon] [Deprecation] `font-source-declaration` is deprecated " +
|
26
|
+
"and will be removed in 5.0.0.";
|
27
|
+
}
|
28
|
+
|
19
29
|
$src: ();
|
20
30
|
|
21
31
|
$formats-map: (
|
@@ -1,4 +1,12 @@
|
|
1
1
|
@function _gradient-positions-parser($gradient-type, $gradient-positions) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_gradient-positions-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
7
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
8
|
+
$output-bourbon-deprecation-warnings: false !global;
|
9
|
+
|
2
10
|
@if $gradient-positions
|
3
11
|
and ($gradient-type == linear)
|
4
12
|
and (type-of($gradient-positions) != color) {
|
@@ -9,5 +17,8 @@
|
|
9
17
|
and (type-of($gradient-positions) != color) {
|
10
18
|
$gradient-positions: _radial-positions-parser($gradient-positions);
|
11
19
|
}
|
20
|
+
|
21
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
22
|
+
|
12
23
|
@return $gradient-positions;
|
13
24
|
}
|
@@ -1,5 +1,10 @@
|
|
1
1
|
// Private function for linear-gradient-parser
|
2
2
|
@function _linear-angle-parser($image, $first-val, $prefix, $suffix) {
|
3
|
+
@if $output-bourbon-deprecation-warnings == true {
|
4
|
+
@warn "[Bourbon] [Deprecation] `_linear-angle-parser` is " +
|
5
|
+
"deprecated and will be removed in 5.0.0.";
|
6
|
+
}
|
7
|
+
|
3
8
|
$offset: null;
|
4
9
|
$unit-short: str-slice($first-val, str-length($first-val) - 2, str-length($first-val));
|
5
10
|
$unit-long: str-slice($first-val, str-length($first-val) - 3, str-length($first-val));
|
@@ -15,8 +20,13 @@
|
|
15
20
|
}
|
16
21
|
|
17
22
|
@if $offset {
|
23
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
24
|
+
$output-bourbon-deprecation-warnings: false !global;
|
25
|
+
|
18
26
|
$num: _str-to-num($first-val);
|
19
27
|
|
28
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
29
|
+
|
20
30
|
@return (
|
21
31
|
webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix,
|
22
32
|
spec-image: $image
|
@@ -1,16 +1,24 @@
|
|
1
1
|
@function _linear-gradient-parser($image) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_linear-gradient-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
7
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
8
|
+
$output-bourbon-deprecation-warnings: false !global;
|
9
|
+
|
2
10
|
$image: unquote($image);
|
3
11
|
$gradients: ();
|
4
12
|
$start: str-index($image, "(");
|
5
13
|
$end: str-index($image, ",");
|
6
14
|
$first-val: str-slice($image, $start + 1, $end - 1);
|
7
15
|
|
8
|
-
$prefix: str-slice($image,
|
16
|
+
$prefix: str-slice($image, 1, $start);
|
9
17
|
$suffix: str-slice($image, $end, str-length($image));
|
10
18
|
|
11
19
|
$has-multiple-vals: str-index($first-val, " ");
|
12
20
|
$has-single-position: unquote(_position-flipper($first-val) + "");
|
13
|
-
$has-angle: is-number(str-slice($first-val,
|
21
|
+
$has-angle: is-number(str-slice($first-val, 1, 1));
|
14
22
|
|
15
23
|
@if $has-multiple-vals {
|
16
24
|
$gradients: _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals);
|
@@ -37,5 +45,7 @@
|
|
37
45
|
);
|
38
46
|
}
|
39
47
|
|
48
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
49
|
+
|
40
50
|
@return $gradients;
|
41
51
|
}
|
@@ -1,4 +1,12 @@
|
|
1
1
|
@function _linear-positions-parser($pos) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_linear-positions-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
7
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
8
|
+
$output-bourbon-deprecation-warnings: false !global;
|
9
|
+
|
2
10
|
$type: type-of(nth($pos, 1));
|
3
11
|
$spec: null;
|
4
12
|
$degree: null;
|
@@ -11,7 +19,7 @@
|
|
11
19
|
$side: nth($pos, 2);
|
12
20
|
|
13
21
|
@if $length == 2 { // eg. to top
|
14
|
-
// Swap for backwards
|
22
|
+
// Swap for backwards compatibility
|
15
23
|
$degree: _position-flipper(nth($pos, 2));
|
16
24
|
}
|
17
25
|
@else if $length == 3 { // eg. to top left
|
@@ -38,7 +46,7 @@
|
|
38
46
|
$spec: to $side $corner;
|
39
47
|
}
|
40
48
|
@else if $length == 1 {
|
41
|
-
// Swap for backwards
|
49
|
+
// Swap for backwards compatibility
|
42
50
|
@if $type == string {
|
43
51
|
$degree: $pos;
|
44
52
|
$spec: to _position-flipper($pos);
|
@@ -50,10 +58,18 @@
|
|
50
58
|
}
|
51
59
|
$degree: unquote($degree + ",");
|
52
60
|
$spec: unquote($spec + ",");
|
61
|
+
|
62
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
63
|
+
|
53
64
|
@return $degree $spec;
|
54
65
|
}
|
55
66
|
|
56
67
|
@function _position-flipper($pos) {
|
68
|
+
@if $output-bourbon-deprecation-warnings == true {
|
69
|
+
@warn "[Bourbon] [Deprecation] `_position-flipper` is " +
|
70
|
+
"deprecated and will be removed in 5.0.0.";
|
71
|
+
}
|
72
|
+
|
57
73
|
@return if($pos == left, right, null)
|
58
74
|
if($pos == right, left, null)
|
59
75
|
if($pos == top, bottom, null)
|
@@ -1,18 +1,28 @@
|
|
1
1
|
// Private function for linear-gradient-parser
|
2
2
|
@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
|
3
|
-
|
3
|
+
@if $output-bourbon-deprecation-warnings == true {
|
4
|
+
@warn "[Bourbon] [Deprecation] `_linear-side-corner-parser` is " +
|
5
|
+
"deprecated and will be removed in 5.0.0.";
|
6
|
+
}
|
7
|
+
|
8
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
9
|
+
$output-bourbon-deprecation-warnings: false !global;
|
10
|
+
|
11
|
+
$val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
|
4
12
|
$val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
|
5
13
|
$val-3: null;
|
6
14
|
$has-val-3: str-index($val-2, " ");
|
7
15
|
|
8
16
|
@if $has-val-3 {
|
9
17
|
$val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
|
10
|
-
$val-2: str-slice($val-2,
|
18
|
+
$val-2: str-slice($val-2, 1, $has-val-3 - 1);
|
11
19
|
}
|
12
20
|
|
13
21
|
$pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
|
14
22
|
$pos: unquote($pos + "");
|
15
23
|
|
24
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
25
|
+
|
16
26
|
// Use old spec for webkit
|
17
27
|
@if $val-1 == "to" {
|
18
28
|
@return (
|
@@ -1,4 +1,9 @@
|
|
1
1
|
@function _radial-arg-parser($g1, $g2, $pos, $shape-size) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_radial-arg-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
2
7
|
@each $value in $g1, $g2 {
|
3
8
|
$first-val: nth($value, 1);
|
4
9
|
$pos-type: type-of($first-val);
|
@@ -1,11 +1,16 @@
|
|
1
1
|
@function _radial-gradient-parser($image) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_radial-gradient-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
2
7
|
$image: unquote($image);
|
3
8
|
$gradients: ();
|
4
9
|
$start: str-index($image, "(");
|
5
10
|
$end: str-index($image, ",");
|
6
11
|
$first-val: str-slice($image, $start + 1, $end - 1);
|
7
12
|
|
8
|
-
$prefix: str-slice($image,
|
13
|
+
$prefix: str-slice($image, 1, $start);
|
9
14
|
$suffix: str-slice($image, $end, str-length($image));
|
10
15
|
|
11
16
|
$is-spec-syntax: str-index($first-val, "at");
|
@@ -1,4 +1,12 @@
|
|
1
1
|
@function _radial-positions-parser($gradient-pos) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_radial-positions-parser` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
7
|
+
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
|
8
|
+
$output-bourbon-deprecation-warnings: false !global;
|
9
|
+
|
2
10
|
$shape-size: nth($gradient-pos, 1);
|
3
11
|
$pos: nth($gradient-pos, 2);
|
4
12
|
$shape-size-spec: _shape-size-stripper($shape-size);
|
@@ -14,5 +22,7 @@
|
|
14
22
|
$spec: "#{$spec},";
|
15
23
|
}
|
16
24
|
|
25
|
+
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
|
26
|
+
|
17
27
|
@return $pre-spec $spec;
|
18
28
|
}
|
@@ -1,6 +1,11 @@
|
|
1
1
|
// User for linear and radial gradients within background-image or border-image properties
|
2
2
|
|
3
3
|
@function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) {
|
4
|
+
@if $output-bourbon-deprecation-warnings == true {
|
5
|
+
@warn "[Bourbon] [Deprecation] `_render-gradients` is " +
|
6
|
+
"deprecated and will be removed in 5.0.0.";
|
7
|
+
}
|
8
|
+
|
4
9
|
$pre-spec: null;
|
5
10
|
$spec: null;
|
6
11
|
$vendor-gradients: null;
|
@@ -1,4 +1,9 @@
|
|
1
1
|
@function _shape-size-stripper($shape-size) {
|
2
|
+
@if $output-bourbon-deprecation-warnings == true {
|
3
|
+
@warn "[Bourbon] [Deprecation] `_shape-size-stripper` is " +
|
4
|
+
"deprecated and will be removed in 5.0.0.";
|
5
|
+
}
|
6
|
+
|
2
7
|
$shape-size-spec: null;
|
3
8
|
@each $value in $shape-size {
|
4
9
|
@if ($value == "cover") or ($value == "contain") {
|
@@ -3,6 +3,11 @@
|
|
3
3
|
// Source: http://sassmeister.com/gist/9647408
|
4
4
|
//************************************************************************//
|
5
5
|
@function _str-to-num($string) {
|
6
|
+
@if $output-bourbon-deprecation-warnings == true {
|
7
|
+
@warn "[Bourbon] [Deprecation] `_str-to-num` is " +
|
8
|
+
"deprecated and will be removed in 5.0.0.";
|
9
|
+
}
|
10
|
+
|
6
11
|
// Matrices
|
7
12
|
$strings: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
|
8
13
|
$numbers: 0 1 2 3 4 5 6 7 8 9;
|
data/bourbon.gemspec
CHANGED
@@ -22,11 +22,11 @@ meaning they should be as close to the original CSS syntax as possible.
|
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
24
|
s.add_runtime_dependency("sass", "~> 3.4")
|
25
|
-
s.add_runtime_dependency("thor")
|
25
|
+
s.add_runtime_dependency("thor", "~> 0.19")
|
26
26
|
|
27
|
-
s.add_development_dependency("aruba")
|
28
|
-
s.add_development_dependency("css_parser")
|
29
|
-
s.add_development_dependency("rake")
|
30
|
-
s.add_development_dependency("rspec")
|
31
|
-
s.add_development_dependency("
|
27
|
+
s.add_development_dependency("aruba", "~> 0.6.2")
|
28
|
+
s.add_development_dependency("css_parser", "~> 1.3")
|
29
|
+
s.add_development_dependency("rake", "~> 10.4")
|
30
|
+
s.add_development_dependency("rspec", "~> 3.3")
|
31
|
+
s.add_development_dependency("scss_lint", "0.41")
|
32
32
|
end
|
data/bower.json
CHANGED
data/circle.yml
ADDED
data/eyeglass-exports.js
ADDED
data/index.js
ADDED
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "bourbon",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.4",
|
4
4
|
"description": "A simple and lightweight mixin library for Sass.",
|
5
5
|
"keywords": [
|
6
6
|
"css",
|
7
|
+
"eyeglass-module",
|
7
8
|
"mixins",
|
8
9
|
"sass",
|
9
10
|
"scss"
|
@@ -12,12 +13,16 @@
|
|
12
13
|
"bugs": {
|
13
14
|
"url": "https://github.com/thoughtbot/bourbon/issues"
|
14
15
|
},
|
16
|
+
"eyeglass": {
|
17
|
+
"needs": "*",
|
18
|
+
"exports": "eyeglass-exports.js"
|
19
|
+
},
|
15
20
|
"license": "MIT",
|
16
21
|
"author": {
|
17
22
|
"name": "thoughtbot",
|
18
23
|
"url": "http://thoughtbot.com"
|
19
24
|
},
|
20
|
-
"main": "
|
25
|
+
"main": "index.js",
|
21
26
|
"repository": {
|
22
27
|
"type": "git",
|
23
28
|
"url": "https://github.com/thoughtbot/bourbon.git"
|
@@ -7,7 +7,7 @@ describe "shade" do
|
|
7
7
|
|
8
8
|
context "called on white" do
|
9
9
|
it "shades white" do
|
10
|
-
expect(".shade-white").to have_rule("color: #
|
10
|
+
expect(".shade-white").to have_rule("color: #404040")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -25,7 +25,7 @@ describe "shade" do
|
|
25
25
|
|
26
26
|
context "called on gray" do
|
27
27
|
it "shades gray" do
|
28
|
-
expect(".shade-gray").to have_rule("color: #
|
28
|
+
expect(".shade-gray").to have_rule("color: #171717")
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -13,13 +13,13 @@ describe "tint" do
|
|
13
13
|
|
14
14
|
context "called on black" do
|
15
15
|
it "tints black" do
|
16
|
-
expect(".tint-black").to have_rule("color:
|
16
|
+
expect(".tint-black").to have_rule("color: gray")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
context "called on red" do
|
21
21
|
it "tints red" do
|
22
|
-
expect(".tint-red").to have_rule("color: #
|
22
|
+
expect(".tint-red").to have_rule("color: #ff4040")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|