co2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +13 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +20 -0
- data/README.md +28 -0
- data/Rakefile +37 -0
- data/app/assets/stylesheets/app.css +17 -0
- data/app/assets/stylesheets/co2.scss +39 -0
- data/app/assets/stylesheets/co2/container.scss +32 -0
- data/app/assets/stylesheets/co2/element.scss +14 -0
- data/app/assets/stylesheets/co2/form.scss +98 -0
- data/app/assets/stylesheets/co2/grid.scss +63 -0
- data/app/assets/stylesheets/co2/helper.scss +88 -0
- data/app/assets/stylesheets/co2/message.scss +45 -0
- data/app/assets/stylesheets/co2/mixin.scss +79 -0
- data/app/assets/stylesheets/co2/navigation.scss +79 -0
- data/app/assets/stylesheets/co2/reset.scss +213 -0
- data/app/assets/stylesheets/co2/table.scss +26 -0
- data/app/assets/stylesheets/co2/typo.scss +115 -0
- data/bin/co2 +12 -0
- data/co2.gemspec +81 -0
- data/init.rb +4 -0
- data/lib/co2.rb +42 -0
- data/lib/co2/cli.rb +113 -0
- data/lib/co2/version.rb +13 -0
- data/lib/co2/writer.rb +37 -0
- data/lib/co2/writer/disk.rb +52 -0
- data/lib/generators/co2.rb +12 -0
- data/lib/generators/co2/install/install_generator.rb +16 -0
- data/lib/generators/co2/install/templates/co2.css.scss +39 -0
- metadata +139 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
.message {
|
2
|
+
@include message;
|
3
|
+
}
|
4
|
+
|
5
|
+
.message-s {
|
6
|
+
@include message(#94d495, #5cbd5e, #3da641);
|
7
|
+
}
|
8
|
+
.message-e {
|
9
|
+
@include message(#94d495, #5cbd5e, #3da641);
|
10
|
+
}
|
11
|
+
|
12
|
+
.message-i {
|
13
|
+
@include message(#94d495, #5cbd5e, #3da641);
|
14
|
+
}
|
15
|
+
|
16
|
+
.message-w {
|
17
|
+
@include message(#94d495, #5cbd5e, #3da641);
|
18
|
+
}
|
19
|
+
|
20
|
+
.tooltip-t {
|
21
|
+
}
|
22
|
+
|
23
|
+
.tooltip-tr {
|
24
|
+
}
|
25
|
+
|
26
|
+
.tooltip-tl {
|
27
|
+
}
|
28
|
+
|
29
|
+
.tooltip-r {
|
30
|
+
}
|
31
|
+
|
32
|
+
.tooltip-b {
|
33
|
+
}
|
34
|
+
|
35
|
+
.tooltip-br {
|
36
|
+
}
|
37
|
+
|
38
|
+
.tooltip-bl {
|
39
|
+
}
|
40
|
+
|
41
|
+
.tooltip-l {
|
42
|
+
}
|
43
|
+
|
44
|
+
.modal {
|
45
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
@mixin vgradient ($color_start: #fff, $color_end: #000) {
|
2
|
+
background-color: $color_end;
|
3
|
+
background-repeat: repeat-x;
|
4
|
+
background-image: -khtml-gradient(linear, left top, left bottom, from($color_start), to($color_end)); // Konqueror
|
5
|
+
background-image: -moz-linear-gradient($color_start, $color_end); // FF 3.6+
|
6
|
+
background-image: -ms-linear-gradient($color_start, $color_end); // IE10
|
7
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $color_start), color-stop(100%, $color_end)); // Safari 4+, Chrome 2+
|
8
|
+
background-image: -webkit-linear-gradient($color_start, $color_end); // Safari 5.1+, Chrome 10+
|
9
|
+
background-image: -o-linear-gradient($color_start, $color_end); // Opera 11.10
|
10
|
+
background-image: linear-gradient($color_start, $color_end); // The standard
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin hgradient {
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin corners ($radius: 4px) {
|
17
|
+
-webkit-border-radius: $radius;
|
18
|
+
-moz-border-radius: $radius;
|
19
|
+
border-radius: $radius;
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin shadow {
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin transition {
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin clearfix {
|
29
|
+
display: inline-block;
|
30
|
+
|
31
|
+
&:after {
|
32
|
+
content: ".";
|
33
|
+
display: block;
|
34
|
+
clear: both;
|
35
|
+
visibility: hidden;
|
36
|
+
line-height: 0;
|
37
|
+
height: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
html[xmlns] & {
|
41
|
+
display: block;
|
42
|
+
}
|
43
|
+
|
44
|
+
* html & {
|
45
|
+
height: 1%;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
@mixin message($color_gradient_start: #e7786c, $color_gradient_end: #db3b28, $color_border: #9d261d) {
|
50
|
+
padding: 10px;
|
51
|
+
@include vgradient($color_gradient_start, $color_gradient_end);
|
52
|
+
@include corners;
|
53
|
+
border: 1px solid $color_border;
|
54
|
+
position: relative;
|
55
|
+
margin-bottom: 15px;
|
56
|
+
|
57
|
+
* {
|
58
|
+
color: #fff;
|
59
|
+
font-weight: bold;
|
60
|
+
text-shadow: 0 1px 1px rgba(0,0,0,.75);
|
61
|
+
}
|
62
|
+
|
63
|
+
p {
|
64
|
+
margin: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
close {
|
68
|
+
position: absolute;
|
69
|
+
right: 10px;
|
70
|
+
top: 7px;
|
71
|
+
color: #000;
|
72
|
+
text-decoration: none;
|
73
|
+
opacity: .2;
|
74
|
+
font-size: 20px;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@mixin button {
|
79
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
.pager {
|
2
|
+
}
|
3
|
+
|
4
|
+
.hmenu {
|
5
|
+
margin: 0;
|
6
|
+
border-bottom: 1px solid #000;
|
7
|
+
@include clearfix;
|
8
|
+
|
9
|
+
li {
|
10
|
+
float: left;
|
11
|
+
list-style-type: none;
|
12
|
+
|
13
|
+
&:hover ul {
|
14
|
+
display: block;
|
15
|
+
}
|
16
|
+
|
17
|
+
a {
|
18
|
+
padding: 5px 15px 5px 0;
|
19
|
+
display: block;
|
20
|
+
margin-top: 1px;
|
21
|
+
text-decoration: none;
|
22
|
+
color: #000;
|
23
|
+
}
|
24
|
+
|
25
|
+
ul {
|
26
|
+
position: absolute;
|
27
|
+
margin: 0;
|
28
|
+
padding: 0;
|
29
|
+
display: none;
|
30
|
+
|
31
|
+
li {
|
32
|
+
float: none;
|
33
|
+
|
34
|
+
a {
|
35
|
+
border-bottom: 1px solid #000;
|
36
|
+
padding: 10px 5px;
|
37
|
+
|
38
|
+
&:hover {
|
39
|
+
background: #000
|
40
|
+
}
|
41
|
+
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.vmenu {
|
50
|
+
display: block;
|
51
|
+
margin: 0;
|
52
|
+
|
53
|
+
ul {
|
54
|
+
margin: 0;
|
55
|
+
|
56
|
+
a {
|
57
|
+
padding-left: 20px;
|
58
|
+
}
|
59
|
+
|
60
|
+
}
|
61
|
+
|
62
|
+
li {
|
63
|
+
list-style: none;
|
64
|
+
width: 100%;
|
65
|
+
}
|
66
|
+
|
67
|
+
a {
|
68
|
+
display: block;
|
69
|
+
border-bottom: 1px solid #000;
|
70
|
+
text-decoration: none;
|
71
|
+
padding: 10px 5px;
|
72
|
+
color: #000;
|
73
|
+
|
74
|
+
:hover {
|
75
|
+
background: #000;
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,213 @@
|
|
1
|
+
* {
|
2
|
+
font-size: $base_size;
|
3
|
+
outline: none;
|
4
|
+
padding: 0;
|
5
|
+
margin: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
a,
|
9
|
+
abbr,
|
10
|
+
acronym,
|
11
|
+
address,
|
12
|
+
applet,
|
13
|
+
article,
|
14
|
+
aside,
|
15
|
+
audio,
|
16
|
+
b,
|
17
|
+
big,
|
18
|
+
blockquote,
|
19
|
+
body,
|
20
|
+
canvas,
|
21
|
+
caption,
|
22
|
+
center,
|
23
|
+
cite,
|
24
|
+
code,
|
25
|
+
dd,
|
26
|
+
del,
|
27
|
+
details,
|
28
|
+
dfn,
|
29
|
+
dialog,
|
30
|
+
div,
|
31
|
+
dl,
|
32
|
+
dt,
|
33
|
+
em,
|
34
|
+
embed,
|
35
|
+
fieldset,
|
36
|
+
figcaption,
|
37
|
+
figure,
|
38
|
+
font,
|
39
|
+
footer,
|
40
|
+
form,
|
41
|
+
h1,
|
42
|
+
h2,
|
43
|
+
h3,
|
44
|
+
h4,
|
45
|
+
h5,
|
46
|
+
h6,
|
47
|
+
header,
|
48
|
+
hgroup,
|
49
|
+
hr,
|
50
|
+
html,
|
51
|
+
i,
|
52
|
+
iframe,
|
53
|
+
img,
|
54
|
+
ins,
|
55
|
+
kbd,
|
56
|
+
label,
|
57
|
+
legend,
|
58
|
+
li,
|
59
|
+
mark,
|
60
|
+
menu,
|
61
|
+
meter,
|
62
|
+
nav,
|
63
|
+
object,
|
64
|
+
ol,
|
65
|
+
output,
|
66
|
+
p,
|
67
|
+
pre,
|
68
|
+
progress,
|
69
|
+
q,
|
70
|
+
rp,
|
71
|
+
rt,
|
72
|
+
ruby,
|
73
|
+
s,
|
74
|
+
samp,
|
75
|
+
section,
|
76
|
+
small,
|
77
|
+
span,
|
78
|
+
strike,
|
79
|
+
strong,
|
80
|
+
sub,
|
81
|
+
summary,
|
82
|
+
sup,
|
83
|
+
table,
|
84
|
+
tbody,
|
85
|
+
td,
|
86
|
+
tfoot,
|
87
|
+
th,
|
88
|
+
thead,
|
89
|
+
time,
|
90
|
+
tr,
|
91
|
+
tt,
|
92
|
+
u,
|
93
|
+
ul,
|
94
|
+
var,
|
95
|
+
video,
|
96
|
+
xmp {
|
97
|
+
border: 0;
|
98
|
+
margin: 0;
|
99
|
+
padding: 0;
|
100
|
+
font-size: 100%;
|
101
|
+
font-weight: normal;
|
102
|
+
font-style: normal;
|
103
|
+
font-family: inherit;
|
104
|
+
line-height: $base_line;
|
105
|
+
outline: 0;
|
106
|
+
vertical-align: baseline;
|
107
|
+
background: transparent;
|
108
|
+
}
|
109
|
+
|
110
|
+
html,
|
111
|
+
body {
|
112
|
+
height: 100%;
|
113
|
+
}
|
114
|
+
|
115
|
+
html {
|
116
|
+
color: $base_color;
|
117
|
+
}
|
118
|
+
|
119
|
+
body {
|
120
|
+
line-height: $base_line;
|
121
|
+
background-color: transparent;
|
122
|
+
}
|
123
|
+
|
124
|
+
article,
|
125
|
+
aside,
|
126
|
+
details,
|
127
|
+
figcaption,
|
128
|
+
figure,
|
129
|
+
footer,
|
130
|
+
header,
|
131
|
+
hgroup,
|
132
|
+
menu,
|
133
|
+
nav,
|
134
|
+
section {
|
135
|
+
display: block;
|
136
|
+
}
|
137
|
+
|
138
|
+
b,
|
139
|
+
strong {
|
140
|
+
font-weight: bold;
|
141
|
+
}
|
142
|
+
|
143
|
+
img {
|
144
|
+
background-color: transparent;
|
145
|
+
font-size: 0;
|
146
|
+
vertical-align: middle;
|
147
|
+
border: none;
|
148
|
+
}
|
149
|
+
|
150
|
+
ul,
|
151
|
+
ol {
|
152
|
+
list-style: none;
|
153
|
+
}
|
154
|
+
|
155
|
+
li {
|
156
|
+
display: list-item;
|
157
|
+
}
|
158
|
+
|
159
|
+
table {
|
160
|
+
border-collapse: collapse;
|
161
|
+
border-spacing: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
tr,
|
165
|
+
th,
|
166
|
+
td,
|
167
|
+
caption {
|
168
|
+
font-weight: normal;
|
169
|
+
vertical-align: inherit;
|
170
|
+
text-align: left;
|
171
|
+
width: auto;
|
172
|
+
height: auto;
|
173
|
+
background-color: transparent;
|
174
|
+
border: none;
|
175
|
+
float: none !important;
|
176
|
+
}
|
177
|
+
|
178
|
+
svg {
|
179
|
+
overflow: hidden;
|
180
|
+
}
|
181
|
+
|
182
|
+
textarea {
|
183
|
+
font: inherit;
|
184
|
+
}
|
185
|
+
|
186
|
+
a,
|
187
|
+
img,
|
188
|
+
a img {
|
189
|
+
border-width: 0;
|
190
|
+
}
|
191
|
+
|
192
|
+
font,
|
193
|
+
basefont {
|
194
|
+
color: inherit;
|
195
|
+
font: inherit;
|
196
|
+
font-size: 100%;
|
197
|
+
}
|
198
|
+
|
199
|
+
blockquote,
|
200
|
+
q {
|
201
|
+
quotes: none;
|
202
|
+
}
|
203
|
+
|
204
|
+
blockquote:before,
|
205
|
+
blockquote:after,
|
206
|
+
q:before,
|
207
|
+
q:after {
|
208
|
+
content: none;
|
209
|
+
}
|
210
|
+
|
211
|
+
:focus {
|
212
|
+
outline: 0;
|
213
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
table {
|
2
|
+
width: 100%;
|
3
|
+
margin-bottom: 18px;
|
4
|
+
padding: 0;
|
5
|
+
border-collapse: separate;
|
6
|
+
font-size: 13px;
|
7
|
+
|
8
|
+
th,
|
9
|
+
td {
|
10
|
+
padding: 10px 10px 9px;
|
11
|
+
line-height: 13.5px;
|
12
|
+
text-align: left;
|
13
|
+
vertical-align: middle;
|
14
|
+
border-bottom: 1px solid #000;
|
15
|
+
}
|
16
|
+
|
17
|
+
th {
|
18
|
+
padding-top: 9px;
|
19
|
+
font-weight: bold;
|
20
|
+
border-bottom-width: 2px;
|
21
|
+
}
|
22
|
+
|
23
|
+
tr:hover td{
|
24
|
+
background: #000;
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
body {
|
2
|
+
font-family: $base_font;
|
3
|
+
font-size: 12px;
|
4
|
+
}
|
5
|
+
|
6
|
+
p {
|
7
|
+
font-size: 12px;
|
8
|
+
font-weight: normal;
|
9
|
+
line-height: 18px;
|
10
|
+
margin-bottom: 9px;
|
11
|
+
}
|
12
|
+
|
13
|
+
h1,
|
14
|
+
h2,
|
15
|
+
h3,
|
16
|
+
h4,
|
17
|
+
h5,
|
18
|
+
h6 {
|
19
|
+
font-weight: bold;
|
20
|
+
}
|
21
|
+
|
22
|
+
h1 {
|
23
|
+
margin-bottom: 18px;
|
24
|
+
font-size: 30px;
|
25
|
+
line-height: 36px;
|
26
|
+
}
|
27
|
+
|
28
|
+
h2 {
|
29
|
+
font-size: 24px;
|
30
|
+
line-height: 36px;
|
31
|
+
}
|
32
|
+
|
33
|
+
h3,
|
34
|
+
h4,
|
35
|
+
h5,
|
36
|
+
h6 {
|
37
|
+
line-height: 36px;
|
38
|
+
}
|
39
|
+
|
40
|
+
h3 {
|
41
|
+
font-size: 18px;
|
42
|
+
}
|
43
|
+
|
44
|
+
h3 small {
|
45
|
+
font-size: 14px;
|
46
|
+
}
|
47
|
+
|
48
|
+
h4 {
|
49
|
+
font-size: 16px;
|
50
|
+
}
|
51
|
+
|
52
|
+
h4 small {
|
53
|
+
font-size: 12px;
|
54
|
+
}
|
55
|
+
|
56
|
+
h5 {
|
57
|
+
font-size: 14px;
|
58
|
+
}
|
59
|
+
|
60
|
+
h6 {
|
61
|
+
font-size: 13px;
|
62
|
+
}
|
63
|
+
|
64
|
+
ul,
|
65
|
+
ol {
|
66
|
+
margin: 0 0 18px 25px;
|
67
|
+
}
|
68
|
+
|
69
|
+
ul ul,
|
70
|
+
ul ol,
|
71
|
+
ol ol,
|
72
|
+
ol ul {
|
73
|
+
margin-bottom: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
ul {
|
77
|
+
list-style: disc;
|
78
|
+
}
|
79
|
+
|
80
|
+
ol {
|
81
|
+
list-style: decimal;
|
82
|
+
}
|
83
|
+
|
84
|
+
li {
|
85
|
+
line-height: 18px;
|
86
|
+
}
|
87
|
+
|
88
|
+
dl {
|
89
|
+
margin-bottom: 18px;
|
90
|
+
}
|
91
|
+
|
92
|
+
dl dt,
|
93
|
+
dl dd {
|
94
|
+
line-height: 18px;
|
95
|
+
}
|
96
|
+
|
97
|
+
dl dt {
|
98
|
+
font-weight: bold;
|
99
|
+
}
|
100
|
+
|
101
|
+
dl dd {
|
102
|
+
margin-left: 9px;
|
103
|
+
}
|
104
|
+
|
105
|
+
strong {
|
106
|
+
font-style: inherit;
|
107
|
+
font-weight: bold;
|
108
|
+
line-height: inherit;
|
109
|
+
}
|
110
|
+
|
111
|
+
blockquote {
|
112
|
+
border-left: 5px solid #000;
|
113
|
+
margin-bottom: 18px;
|
114
|
+
padding-left: 15px;
|
115
|
+
}
|