yunicorn_mixins 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +1 -0
- data/lib/yunicorn_mixins.rb +3 -0
- data/stylesheets/_yunicorn_mixins.scss +2 -0
- data/stylesheets/yunicorn_mixins/_core.scss +0 -0
- data/stylesheets/yunicorn_mixins/_ui.scss +101 -0
- data/stylesheets/yunicorn_mixins/_utility.scss +20 -0
- data/templates/project/manifest.rb +2 -0
- data/templates/project/screen.scss +2 -0
- metadata +68 -0
data/README.mkdn
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Custom Compass extension
|
File without changes
|
@@ -0,0 +1,101 @@
|
|
1
|
+
@mixin threedeetext($color) {
|
2
|
+
color: $color;
|
3
|
+
text-shadow:
|
4
|
+
0 2px 0 darken($color, 14%),
|
5
|
+
0 4px 0 darken($color, 16%),
|
6
|
+
0 6px 0 darken($color, 18%),
|
7
|
+
0 8px 0 darken($color, 20%),
|
8
|
+
3px 8px 15px rgba(0,0,0,0.1),
|
9
|
+
3px 8px 5px rgba(0,0,0,0.3);
|
10
|
+
}
|
11
|
+
|
12
|
+
@mixin threedeetext_down($color) {
|
13
|
+
color: $color;
|
14
|
+
text-shadow:
|
15
|
+
0 -2px 0 darken($color, 14%),
|
16
|
+
0 -4px 0 darken($color, 16%),
|
17
|
+
0 -6px 0 darken($color, 18%),
|
18
|
+
0 -8px 0 darken($color, 20%),
|
19
|
+
0 2px 0 rgba(255,255,255,1);
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin btn($bg-color, $font-color: #fff) {
|
23
|
+
|
24
|
+
font-family: Helvetica, sans-serif;
|
25
|
+
font-size: 13px;
|
26
|
+
color: $font-color;
|
27
|
+
text-decoration: none;
|
28
|
+
display: inline-block;
|
29
|
+
text-align: center;
|
30
|
+
padding: 7px 20px 9px;
|
31
|
+
cursor: pointer;
|
32
|
+
@include text-shadow(0 1px 1px rgba(0,0,0,0.4));
|
33
|
+
@include transition(0.1s linear);
|
34
|
+
@include box-shadow(inset rgba(255,255,255,0.3) 1px 1px 0);
|
35
|
+
@include background(linear-gradient(top, hsla(0, 100%, 100%, .3), hsla(0, 90%, 90%, .1)));
|
36
|
+
background-color: $bg-color;
|
37
|
+
border: 1px solid darken($bg-color, 5%);
|
38
|
+
@include border-radius(2px);
|
39
|
+
|
40
|
+
&:hover {
|
41
|
+
background-color: tint($bg-color, 20%);
|
42
|
+
}
|
43
|
+
|
44
|
+
&:active {
|
45
|
+
@include box-shadow(inset rgba(0,0,0,0.4) 0px 0px 6px);
|
46
|
+
}
|
47
|
+
|
48
|
+
i {
|
49
|
+
font-size: 20px;
|
50
|
+
font-weight: normal;
|
51
|
+
vertical-align: middle;
|
52
|
+
line-height: 0;
|
53
|
+
margin-right: .1em;
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
@mixin btn_3d($bg-color, $font-color: #fff) {
|
59
|
+
|
60
|
+
font-family: Helvetica, sans-serif;
|
61
|
+
font-size: 13px;
|
62
|
+
color: $font-color;
|
63
|
+
text-decoration: none;
|
64
|
+
display: inline-block;
|
65
|
+
text-align: center;
|
66
|
+
padding: 10px 25px 12px;
|
67
|
+
cursor: pointer;
|
68
|
+
@include text-shadow(0 1px 1px rgba(0,0,0,0.4));
|
69
|
+
@include transition(0.1s linear);
|
70
|
+
@include background(linear-gradient(top, hsla(0, 100%, 100%, .3), hsla(0, 90%, 90%, .1)));
|
71
|
+
background-color: $bg-color;
|
72
|
+
@include border-radius(4px);
|
73
|
+
vertical-align: top;
|
74
|
+
@include box-shadow(shade($bg-color, 20%) 0 6px 0,
|
75
|
+
rgba(0,0,0,0.3) 0 10px 3px);
|
76
|
+
|
77
|
+
&:hover {
|
78
|
+
background-color: tint($bg-color, 20%);
|
79
|
+
}
|
80
|
+
|
81
|
+
&:active {
|
82
|
+
position: relative;
|
83
|
+
top: 5px;
|
84
|
+
@include box-shadow(shade($bg-color, 20%) 0 3px 0,
|
85
|
+
rgba(0,0,0,0.3) 0 6px 3px)
|
86
|
+
}
|
87
|
+
|
88
|
+
i {
|
89
|
+
font-size: 20px;
|
90
|
+
font-weight: normal;
|
91
|
+
vertical-align: middle;
|
92
|
+
line-height: 0;
|
93
|
+
margin-right: .1em;
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
@mixin btn_round($bg-color, $font-color: #fff) {
|
99
|
+
@include button($bg-color, $font-color);
|
100
|
+
@include border-radius(20px);
|
101
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@mixin center-block {
|
2
|
+
display: block;
|
3
|
+
margin-left: auto;
|
4
|
+
margin-right: auto;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin hide {
|
8
|
+
display: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin logo {
|
12
|
+
@include hide-text;
|
13
|
+
display: block;
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin add {
|
17
|
+
content: "";
|
18
|
+
display: block;
|
19
|
+
position: absolute;
|
20
|
+
}
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yunicorn_mixins
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jude Wang
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: compass
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.11'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.11'
|
30
|
+
description: some of mixins I recently created.
|
31
|
+
email: eros4@me.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- README.mkdn
|
37
|
+
- lib/yunicorn_mixins.rb
|
38
|
+
- stylesheets/_yunicorn_mixins.scss
|
39
|
+
- stylesheets/yunicorn_mixins/_core.scss
|
40
|
+
- stylesheets/yunicorn_mixins/_ui.scss
|
41
|
+
- stylesheets/yunicorn_mixins/_utility.scss
|
42
|
+
- templates/project/manifest.rb
|
43
|
+
- templates/project/screen.scss
|
44
|
+
homepage: https://github.com/eros4
|
45
|
+
licenses: []
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 1.8.24
|
65
|
+
signing_key:
|
66
|
+
specification_version: 3
|
67
|
+
summary: a custom ui extension for compass
|
68
|
+
test_files: []
|