bourbon 3.1.3 → 3.1.4

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
  SHA1:
3
- metadata.gz: 20e9dfbe71ac3392bc55e2ce08994fe055405469
4
- data.tar.gz: 3d514ea9b846f7ff59b7f2030535c0643a8ddcd9
3
+ metadata.gz: d7f9f137e9dd6042ec26d9a4b1b37baaadeef8c8
4
+ data.tar.gz: 1be0a851527cc45280ee83db0bd97737a3590996
5
5
  SHA512:
6
- metadata.gz: e69c0c121d13767a975dced0da85e58b7dd99d66859606373891ae84d6b76394cb04192ff682f8d7897e362e82122dfbb77cbe7339986b3a392b4abe051b0221
7
- data.tar.gz: b7403044ecb5219dcfa426cadbddafb8dcf8048e8b633e7e19e491a55d3f279721093020f8409be0d7977726646ed8a8a71c28c571307d20551e8929148dc503
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
- @for $i from 2 through length($images) {
17
- $gradient-type: nth($images, 1); // Get type of gradient (linear || radial)
18
- $gradient-args: nth($images, $i); // Get actual gradient (red, blue)
19
- $border-image: _render-gradients($gradient-args, $gradient-type, $vendor);
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
- @for $i from 1 through length($images) {
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
- // If variable is a list - Gradient
33
- @if $type == list {
34
- $gradient-type: nth(nth($images, $i), 1); // Get type of gradient (linear || radial)
35
- $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue)
36
- $border-image: _render-gradients($gradient-args, $gradient-type, $vendor);
37
- }
38
- // If variable is a string - Image or number
39
- @else if ($type == string) or ($type == number) {
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
+
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "3.1.3"
2
+ VERSION = "3.1.4"
3
3
  end
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.3
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-14 00:00:00.000000000 Z
22
+ date: 2013-04-21 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: sass