bourbon 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/css3/_border-image.scss +18 -16
- data/lib/bourbon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7f9f137e9dd6042ec26d9a4b1b37baaadeef8c8
|
4
|
+
data.tar.gz: 1be0a851527cc45280ee83db0bd97737a3590996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1db57152a51af29f5c38dc7b9cdc45cdcacecfb60ba796f4a07d04240914c40ef27dcd8cf5f0d1a46a3c5c10e089cf8b81aa9abe2f269007b6bdf58b1da03d
|
7
|
+
data.tar.gz: 3ace59d93e5bdbe76441397cd0479cdea49fa9a49ef664511798b345061f1f4097cfe16191805fc5465aeef733ea4431b553d3514bb88bbae71a1f90e3c94330
|
@@ -6,18 +6,18 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
@function _border-add-prefix($images, $vendor: false) {
|
9
|
-
$border-image:
|
9
|
+
$border-image: null;
|
10
10
|
$images-type: type-of(nth($images, 1));
|
11
11
|
$first-var: nth(nth($images, 1), 1); // Get type of Gradient (Linear || radial)
|
12
12
|
|
13
13
|
// If input is a gradient
|
14
14
|
@if $images-type == string {
|
15
15
|
@if ($first-var == "linear") or ($first-var == "radial") {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
$gradient-type: nth($images, 1); // Get type of gradient (linear || radial)
|
17
|
+
$gradient-pos: nth($images, 2); // Get gradient position
|
18
|
+
$gradient-args: nth($images, 3); // Get actual gradient (red, blue)
|
19
|
+
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
|
20
|
+
$border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
|
21
21
|
}
|
22
22
|
// If input is a URL
|
23
23
|
@else {
|
@@ -26,17 +26,18 @@
|
|
26
26
|
}
|
27
27
|
// If input is gradient or url + additional args
|
28
28
|
@else if $images-type == list {
|
29
|
-
|
30
|
-
$type: type-of(nth($images, $i)); // Get type of variable - List or String
|
29
|
+
$type: type-of(nth($images, 1)); // Get type of variable - List or String
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
// If variable is a list - Gradient
|
32
|
+
@if $type == list {
|
33
|
+
$gradient: nth($images, 1);
|
34
|
+
$gradient-type: nth($gradient, 1); // Get type of gradient (linear || radial)
|
35
|
+
$gradient-pos: nth($gradient, 2); // Get gradient position
|
36
|
+
$gradient-args: nth($gradient, 3); // Get actual gradient (red, blue)
|
37
|
+
$gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
|
38
|
+
$border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
|
39
|
+
|
40
|
+
@for $i from 2 through length($images) {
|
40
41
|
$border-image: append($border-image, nth($images, $i));
|
41
42
|
}
|
42
43
|
}
|
@@ -51,3 +52,4 @@
|
|
51
52
|
// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
|
52
53
|
// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
|
53
54
|
// @include border-image(radial-gradient(top, cover, orange, yellow, orange));
|
55
|
+
|
data/lib/bourbon/version.rb
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: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil LaPier
|
@@ -19,7 +19,7 @@ authors:
|
|
19
19
|
autorequire:
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
|
-
date: 2013-04-
|
22
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: sass
|