compass-photoshop-gradient-overlay 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,59 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<title>Photoshop Gradient Overlay</title>
|
7
|
+
<meta name="description" content="">
|
8
|
+
<meta name="viewport" content="width=device-width">
|
9
|
+
<link rel="stylesheet" href="stylesheets/compass-photoshop-gradient-overlay.css">
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<h2>Angle</h2>
|
13
|
+
<div class="group">
|
14
|
+
<div class="group-item">
|
15
|
+
<div class="gradient--angle--0">0°</div>
|
16
|
+
</div>
|
17
|
+
<div class="group-item">
|
18
|
+
<div class="gradient--angle--90">90°</div>
|
19
|
+
</div>
|
20
|
+
<div class="group-item">
|
21
|
+
<div class="gradient--angle--180">180°</div>
|
22
|
+
</div>
|
23
|
+
<div class="group-item">
|
24
|
+
<div class="gradient--angle--270">270°</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<h2>Scale</h2>
|
28
|
+
<div class="group">
|
29
|
+
<div class="group-item">
|
30
|
+
<div class="gradient--scale--50">50%</div>
|
31
|
+
</div>
|
32
|
+
<div class="group-item">
|
33
|
+
<div class="gradient--scale--75">75%</div>
|
34
|
+
</div>
|
35
|
+
<div class="group-item">
|
36
|
+
<div class="gradient--scale--125">125%</div>
|
37
|
+
</div>
|
38
|
+
<div class="group-item">
|
39
|
+
<div class="gradient--scale--150">150%</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<h2>Color Stops</h2>
|
44
|
+
<div class="group">
|
45
|
+
<div class="group-item">
|
46
|
+
<div class="gradient--stops--3">3 stops</div>
|
47
|
+
</div>
|
48
|
+
<div class="group-item">
|
49
|
+
<div class="gradient--stops--4">4 stops</div>
|
50
|
+
</div>
|
51
|
+
<div class="group-item">
|
52
|
+
<div class="gradient--stops--5">5 stops</div>
|
53
|
+
</div>
|
54
|
+
<div class="group-item">
|
55
|
+
<div class="gradient--stops--6">6 stops</div>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</body>
|
59
|
+
</html>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
@import "compass";
|
2
|
+
@import "photoshop-gradient-overlay";
|
3
|
+
|
4
|
+
body {
|
5
|
+
font-family: Helvetica;
|
6
|
+
font-size: 28px;
|
7
|
+
text-align: center;
|
8
|
+
}
|
9
|
+
|
10
|
+
%gradient-example {
|
11
|
+
color: #fff;
|
12
|
+
height: 300px;
|
13
|
+
line-height: 300px;
|
14
|
+
width: 300px;
|
15
|
+
text-shadow: 0 0.1em rgba(0,0,0,0.4);
|
16
|
+
}
|
17
|
+
|
18
|
+
.group {
|
19
|
+
@include clearfix();
|
20
|
+
margin: 1em auto;
|
21
|
+
|
22
|
+
.group-item {
|
23
|
+
float: left;
|
24
|
+
width: 25%;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
// Angle
|
29
|
+
|
30
|
+
.gradient--angle--0{
|
31
|
+
@extend %gradient-example;
|
32
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $angle: 0deg));
|
33
|
+
}
|
34
|
+
|
35
|
+
.gradient--angle--90{
|
36
|
+
@extend %gradient-example;
|
37
|
+
@include background-image(photoshop-gradient-overlay(#fff));
|
38
|
+
}
|
39
|
+
|
40
|
+
.gradient--angle--180{
|
41
|
+
@extend %gradient-example;
|
42
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $angle: 180deg));
|
43
|
+
}
|
44
|
+
|
45
|
+
.gradient--angle--270{
|
46
|
+
@extend %gradient-example;
|
47
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $angle: 270deg));
|
48
|
+
}
|
49
|
+
|
50
|
+
// Scale
|
51
|
+
|
52
|
+
.gradient--scale--50{
|
53
|
+
@extend %gradient-example;
|
54
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $scale: 50%));
|
55
|
+
}
|
56
|
+
|
57
|
+
.gradient--scale--75{
|
58
|
+
@extend %gradient-example;
|
59
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $scale: 75%));
|
60
|
+
}
|
61
|
+
|
62
|
+
.gradient--scale--125{
|
63
|
+
@extend %gradient-example;
|
64
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $scale: 125%));
|
65
|
+
}
|
66
|
+
|
67
|
+
.gradient--scale--150{
|
68
|
+
@extend %gradient-example;
|
69
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $scale: 150%));
|
70
|
+
}
|
71
|
+
|
72
|
+
// Stops
|
73
|
+
|
74
|
+
.gradient--stops--3{
|
75
|
+
@extend %gradient-example;
|
76
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $gradient-colors: ( red, green, blue ), $gradient-stops: ( 0%, 50%, 100% )));
|
77
|
+
}
|
78
|
+
|
79
|
+
.gradient--stops--4{
|
80
|
+
@extend %gradient-example;
|
81
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $gradient-colors: ( red, yellow, green, blue ), $gradient-stops: ( 0%, 33.3333%, 66.6666%, 100% )));
|
82
|
+
}
|
83
|
+
|
84
|
+
.gradient--stops--5{
|
85
|
+
@extend %gradient-example;
|
86
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $gradient-colors: ( red, orange, yellow, green, blue ), $gradient-stops: ( 0%, 25%, 50%, 75%, 100% )));
|
87
|
+
}
|
88
|
+
|
89
|
+
.gradient--stops--6{
|
90
|
+
@extend %gradient-example;
|
91
|
+
@include background-image(photoshop-gradient-overlay($bg-color: #fff, $gradient-colors: ( red, orange, yellow, green, blue, violet ), $gradient-stops: ( 0%, 20%, 40%, 60%, 80%, 100% )));
|
92
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
discover :all
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-photoshop-gradient-overlay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Hettler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-24 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: sass
|
@@ -58,6 +58,9 @@ files:
|
|
58
58
|
- lib/compass-photoshop-gradient-overlay.rb
|
59
59
|
- stylesheets/_photoshop-blend-modes.scss
|
60
60
|
- stylesheets/_photoshop-gradient-overlay.scss
|
61
|
+
- templates/example/compass-photoshop-gradient-overlay.html
|
62
|
+
- templates/example/compass-photoshop-gradient-overlay.scss
|
63
|
+
- templates/example/manifest.rb
|
61
64
|
homepage: https://github.com/timhettler/compass-photoshop-gradient-overlay
|
62
65
|
licenses: []
|
63
66
|
|