bourbon 3.1.2.1 → 3.1.3

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: 46f7567e94d25f6e5cb6d54753f75e2d94582f75
4
- data.tar.gz: 679f0216f26877871879bd44cbd9f9ee93abfe34
3
+ metadata.gz: 20e9dfbe71ac3392bc55e2ce08994fe055405469
4
+ data.tar.gz: 3d514ea9b846f7ff59b7f2030535c0643a8ddcd9
5
5
  SHA512:
6
- metadata.gz: bec338b0657ad660a2b2e43745f467230d94add0074aa2c506c65900fe1a0e85b5c09044fd9f7046f5389f92167a59bbfbd5d38a54df63f3df300bef6b3c09b8
7
- data.tar.gz: 8e4e3136fedfdf421461636aac46ab72ed62dcc5c0cb14aa168fdf44c78007c1a5b98a972e5cd2bbef2c7f5de64095077e13d54cfb390798d45d497048292359
6
+ metadata.gz: e69c0c121d13767a975dced0da85e58b7dd99d66859606373891ae84d6b76394cb04192ff682f8d7897e362e82122dfbb77cbe7339986b3a392b4abe051b0221
7
+ data.tar.gz: b7403044ecb5219dcfa426cadbddafb8dcf8048e8b633e7e19e491a55d3f279721093020f8409be0d7977726646ed8a8a71c28c571307d20551e8929148dc503
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bourbon (3.1.2)
4
+ bourbon (3.1.2.1)
5
5
  sass (>= 3.2.0)
6
6
  thor
7
7
 
@@ -7,28 +7,33 @@
7
7
  $length: length($pos);
8
8
  // Parse Side and corner positions
9
9
  @if ($length > 1) {
10
- @if nth($pos, 1) == "to" {
10
+ @if nth($pos, 1) == "to" { // Newer syntax
11
11
  $side: nth($pos, 2);
12
12
 
13
- @if $length == 2 {
13
+ @if $length == 2 { // eg. to top
14
14
  // Swap for backwards compatability
15
15
  $degree: _position-flipper(nth($pos, 2));
16
16
  }
17
- @else if $length == 3 {
17
+ @else if $length == 3 { // eg. to top left
18
18
  $corner: nth($pos, 3);
19
19
  }
20
- @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
21
- $degree: 135deg;
22
- }
23
- @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
24
- $degree: 45deg;
25
- }
26
- @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
27
- $degree: -45deg;
28
- }
29
- @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
30
- $degree: -135deg;
31
- }
20
+ }
21
+ @else if $length == 2 { // Older syntax ("top left")
22
+ $side: _position-flipper(nth($pos, 1));
23
+ $corner: _position-flipper(nth($pos, 2));
24
+ }
25
+
26
+ @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
27
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
28
+ }
29
+ @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
30
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
31
+ }
32
+ @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
33
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
34
+ }
35
+ @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
36
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
32
37
  }
33
38
  @else {
34
39
  @warn "Incorrect gradient syntax";
@@ -51,7 +56,6 @@
51
56
  @return $degree $spec;
52
57
  }
53
58
 
54
- // Helper Function
55
59
  @function _position-flipper($pos) {
56
60
  @return if($pos == left, right, null)
57
61
  if($pos == right, left, null)
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "3.1.2.1"
2
+ VERSION = "3.1.3"
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.2.1
4
+ version: 3.1.3
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-10 00:00:00.000000000 Z
22
+ date: 2013-04-14 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: sass