bourbon 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
|
|
1
|
-
// Requires Sass 3.1+
|
2
1
|
@mixin linear-gradient($pos, $G1, $G2: false,
|
3
2
|
$G3: false, $G4: false,
|
4
3
|
$G5: false, $G6: false,
|
@@ -15,19 +14,18 @@
|
|
15
14
|
}
|
16
15
|
|
17
16
|
$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
|
18
|
-
$last-gradient: nth($full, length($full));
|
19
17
|
|
20
18
|
background-color: nth($G1, 1);
|
21
|
-
background-image:
|
22
|
-
background-image: -webkit-linear-gradient($pos, $full);
|
19
|
+
background-image: deprecated-webkit-gradient(linear, $full); // Safari <= 5.0
|
20
|
+
background-image: -webkit-linear-gradient($pos, $full); // Safari 5.1+, Chrome
|
23
21
|
background-image: -moz-linear-gradient($pos, $full);
|
24
22
|
background-image: -ms-linear-gradient($pos, $full);
|
25
23
|
background-image: -o-linear-gradient($pos, $full);
|
26
24
|
background-image: unquote("linear-gradient(#{$pos}, #{$full})");
|
27
25
|
}
|
28
26
|
|
29
|
-
// Usage: Gradient position is optional, default is top. Position can be a degree. Color stops are optional as well.
|
30
27
|
|
28
|
+
// Usage: Gradient position is optional, default is top. Position can be a degree. Color stops are optional as well.
|
31
29
|
// @include linear-gradient(#1e5799, #2989d8);
|
32
30
|
// @include linear-gradient(top, #1e5799 0%, #2989d8 50%);
|
33
31
|
// @include linear-gradient(50deg, rgba(10, 10, 10, 0.5) 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
|
@@ -9,6 +9,7 @@
|
|
9
9
|
$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
|
10
10
|
|
11
11
|
background-color: nth($G1, 1);
|
12
|
+
background-image: deprecated-webkit-gradient(radial, $full); // Safari <= 5.0
|
12
13
|
background-image: -webkit-radial-gradient($pos, $shape-size, $full);
|
13
14
|
background-image: -moz-radial-gradient($pos, $shape-size, $full);
|
14
15
|
background-image: -ms-radial-gradient($pos, $shape-size, $full);
|
@@ -0,0 +1,36 @@
|
|
1
|
+
// Render Deprecated Webkit Gradient - Linear || Radial
|
2
|
+
//************************************************************************//
|
3
|
+
@function deprecated-webkit-gradient($type, $full) {
|
4
|
+
$gradient-list: ();
|
5
|
+
$gradient: false;
|
6
|
+
$full-length: length($full);
|
7
|
+
$percentage: false;
|
8
|
+
$gradient-type: $type;
|
9
|
+
|
10
|
+
@for $i from 1 through $full-length {
|
11
|
+
$gradient: nth($full, $i);
|
12
|
+
|
13
|
+
@if length($gradient) == 2 {
|
14
|
+
$color-stop: color-stop(nth($gradient, 2), nth($gradient, 1));
|
15
|
+
$gradient-list: join($gradient-list, $color-stop, comma);
|
16
|
+
}
|
17
|
+
@else {
|
18
|
+
@if $i == $full-length {
|
19
|
+
$percentage: 100%;
|
20
|
+
}
|
21
|
+
@else {
|
22
|
+
$percentage: ($i - 1) * (100 / ($full-length - 1)) + "%";
|
23
|
+
}
|
24
|
+
$color-stop: color-stop(unquote($percentage), $gradient);
|
25
|
+
$gradient-list: join($gradient-list, $color-stop, comma);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@if $type == radial {
|
30
|
+
$gradient: -webkit-gradient(radial, center center, 0, center center, 460, $gradient-list);
|
31
|
+
}
|
32
|
+
@else if $type == linear {
|
33
|
+
$gradient: -webkit-gradient(linear, left top, left bottom, $gradient-list);
|
34
|
+
}
|
35
|
+
@return $gradient;
|
36
|
+
}
|
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,11 +19,11 @@ authors:
|
|
19
19
|
autorequire:
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
|
-
date: 2011-10-
|
22
|
+
date: 2011-10-14 00:00:00.000000000Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: sass
|
26
|
-
requirement: &
|
26
|
+
requirement: &70220464768440 !ruby/object:Gem::Requirement
|
27
27
|
none: false
|
28
28
|
requirements:
|
29
29
|
- - ! '>='
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: '3.1'
|
32
32
|
type: :runtime
|
33
33
|
prerelease: false
|
34
|
-
version_requirements: *
|
34
|
+
version_requirements: *70220464768440
|
35
35
|
description: ! 'The purpose of Bourbon Vanilla Sass Mixins is to provide a comprehensive
|
36
36
|
framework of
|
37
37
|
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- app/assets/stylesheets/css3/_radial-gradient.scss
|
74
74
|
- app/assets/stylesheets/css3/_transform.scss
|
75
75
|
- app/assets/stylesheets/css3/_transition.scss
|
76
|
+
- app/assets/stylesheets/functions/_deprecated-webkit-gradient.scss
|
76
77
|
- app/assets/stylesheets/functions/_golden-ratio.scss
|
77
78
|
- app/assets/stylesheets/functions/_grid-width.scss
|
78
79
|
- app/assets/stylesheets/functions/_linear-gradient.scss
|