concisecss 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE +26 -0
- data/README.md +44 -0
- data/Rakefile +8 -0
- data/app/assets/javascripts/concisecss/close.js +6 -0
- data/app/assets/javascripts/concisecss/dropdown.js +33 -0
- data/app/assets/javascripts/concisecss/naver.js +358 -0
- data/app/assets/javascripts/concisecss/navigation.js +23 -0
- data/app/assets/javascripts/concisecss/non-responsive.js +51 -0
- data/app/assets/javascripts/concisecss.js +1 -0
- data/app/assets/stylesheets/_defaults.scss +190 -0
- data/app/assets/stylesheets/base/_blockquotes.scss +36 -0
- data/app/assets/stylesheets/base/_container.scss +14 -0
- data/app/assets/stylesheets/base/_forms.scss +125 -0
- data/app/assets/stylesheets/base/_grid.scss +67 -0
- data/app/assets/stylesheets/base/_headings.scss +155 -0
- data/app/assets/stylesheets/base/_lists.scss +125 -0
- data/app/assets/stylesheets/base/_main.scss +29 -0
- data/app/assets/stylesheets/base/_selection.scss +21 -0
- data/app/assets/stylesheets/base/_tables.scss +83 -0
- data/app/assets/stylesheets/base/_type.scss +64 -0
- data/app/assets/stylesheets/concise.scss +104 -0
- data/app/assets/stylesheets/generic/_clearfix.scss +12 -0
- data/app/assets/stylesheets/generic/_conditional.scss +122 -0
- data/app/assets/stylesheets/generic/_debug.scss +98 -0
- data/app/assets/stylesheets/generic/_helper.scss +117 -0
- data/app/assets/stylesheets/generic/_mixins.scss +122 -0
- data/app/assets/stylesheets/generic/_normalize.scss +191 -0
- data/app/assets/stylesheets/generic/_print.scss +109 -0
- data/app/assets/stylesheets/generic/_shared.scss +37 -0
- data/app/assets/stylesheets/objects/_badges.scss +53 -0
- data/app/assets/stylesheets/objects/_breadcrumbs.scss +35 -0
- data/app/assets/stylesheets/objects/_buttons.scss +287 -0
- data/app/assets/stylesheets/objects/_colors.scss +45 -0
- data/app/assets/stylesheets/objects/_dropdowns.scss +167 -0
- data/app/assets/stylesheets/objects/_groups.scss +102 -0
- data/app/assets/stylesheets/objects/_navigation.scss +377 -0
- data/app/assets/stylesheets/objects/_progress.scss +102 -0
- data/app/assets/stylesheets/objects/_wells.scss +103 -0
- data/concisecss.gemspec +25 -0
- data/lib/concisecss/concisecss_source.rb +63 -0
- data/lib/concisecss/engine.rb +6 -0
- data/lib/concisecss/version.rb +3 -0
- data/lib/concisecss.rb +7 -0
- metadata +155 -0
@@ -0,0 +1,377 @@
|
|
1
|
+
@if $use-navigation == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $NAVIGATION
|
4
|
+
//------------------------------------//
|
5
|
+
nav {
|
6
|
+
ul {
|
7
|
+
list-style: none;
|
8
|
+
margin: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
li {
|
12
|
+
cursor: pointer;
|
13
|
+
position: relative;
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
// Dropdown
|
18
|
+
.dropdown li { margin-right: 0px; }
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// Nested dropdown
|
23
|
+
.nav-dropdown {
|
24
|
+
ul {
|
25
|
+
ul {
|
26
|
+
display: none;
|
27
|
+
left: 0;
|
28
|
+
margin: 0;
|
29
|
+
opacity: 0;
|
30
|
+
padding: 0;
|
31
|
+
position: absolute;
|
32
|
+
visibility: hidden;
|
33
|
+
width: 150px;
|
34
|
+
z-index: 99999;
|
35
|
+
|
36
|
+
ul {
|
37
|
+
display: none;
|
38
|
+
left: 0;
|
39
|
+
margin: 0;
|
40
|
+
opacity: 0;
|
41
|
+
padding: 0;
|
42
|
+
position: absolute;
|
43
|
+
visibility: hidden;
|
44
|
+
width: 150px;
|
45
|
+
z-index: 99999;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
ol ul,
|
50
|
+
ul ol,
|
51
|
+
ol ol {
|
52
|
+
display: none;
|
53
|
+
left: 0;
|
54
|
+
margin: 0;
|
55
|
+
opacity: 0;
|
56
|
+
padding: 0;
|
57
|
+
position: absolute;
|
58
|
+
visibility: hidden;
|
59
|
+
width: 150px;
|
60
|
+
z-index: 99999;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
ol {
|
65
|
+
ol,
|
66
|
+
ul {
|
67
|
+
display: none;
|
68
|
+
left: 0;
|
69
|
+
margin: 0;
|
70
|
+
opacity: 0;
|
71
|
+
padding: 0;
|
72
|
+
position: absolute;
|
73
|
+
visibility: hidden;
|
74
|
+
width: 150px;
|
75
|
+
z-index: 99999;
|
76
|
+
}
|
77
|
+
|
78
|
+
ol {
|
79
|
+
ol,
|
80
|
+
ul {
|
81
|
+
display: none;
|
82
|
+
left: 0;
|
83
|
+
margin: 0;
|
84
|
+
opacity: 0;
|
85
|
+
padding: 0;
|
86
|
+
position: absolute;
|
87
|
+
visibility: hidden;
|
88
|
+
width: 150px;
|
89
|
+
z-index: 99999;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
ul {
|
94
|
+
ul,
|
95
|
+
ol {
|
96
|
+
display: none;
|
97
|
+
left: 0;
|
98
|
+
margin: 0;
|
99
|
+
opacity: 0;
|
100
|
+
padding: 0;
|
101
|
+
position: absolute;
|
102
|
+
visibility: hidden;
|
103
|
+
width: 150px;
|
104
|
+
z-index: 99999;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.list-inline li li,
|
110
|
+
&.list-inline li li { margin-right: 0px; }
|
111
|
+
|
112
|
+
li li {
|
113
|
+
background: #fff;
|
114
|
+
display: block;
|
115
|
+
}
|
116
|
+
|
117
|
+
ul {
|
118
|
+
ul ul,
|
119
|
+
ol ul,
|
120
|
+
ul ol,
|
121
|
+
ol ol { display: block; }
|
122
|
+
}
|
123
|
+
|
124
|
+
ol {
|
125
|
+
ul ul,
|
126
|
+
ol ul,
|
127
|
+
ul ol { display: block; }
|
128
|
+
}
|
129
|
+
|
130
|
+
ul li:hover {
|
131
|
+
ul,
|
132
|
+
ol {
|
133
|
+
display: block;
|
134
|
+
opacity: 1;
|
135
|
+
top: 100%;
|
136
|
+
visibility: visible;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
ol li:hover {
|
141
|
+
ul,
|
142
|
+
ol {
|
143
|
+
display: block;
|
144
|
+
opacity: 1;
|
145
|
+
top: 100%;
|
146
|
+
visibility: visible;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
ul li:hover {
|
151
|
+
ul ul,
|
152
|
+
ol ul,
|
153
|
+
ul ol,
|
154
|
+
ol ol {
|
155
|
+
display: none;
|
156
|
+
opacity: 0;
|
157
|
+
visibility: hidden;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
ol li:hover {
|
162
|
+
ul ul,
|
163
|
+
ol ul,
|
164
|
+
ul ol,
|
165
|
+
ol ol {
|
166
|
+
display: none;
|
167
|
+
opacity: 0;
|
168
|
+
visibility: hidden;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
ul {
|
173
|
+
ul li:hover {
|
174
|
+
ul,
|
175
|
+
ol {
|
176
|
+
display: block;
|
177
|
+
left: 100%;
|
178
|
+
opacity: 1;
|
179
|
+
position: absolute;
|
180
|
+
top: 0;
|
181
|
+
visibility: visible;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
ol li:hover {
|
186
|
+
ol,
|
187
|
+
ul {
|
188
|
+
display: block;
|
189
|
+
left: 100%;
|
190
|
+
opacity: 1;
|
191
|
+
position: absolute;
|
192
|
+
top: 0;
|
193
|
+
visibility: visible;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
ol {
|
199
|
+
ul li:hover {
|
200
|
+
ul,
|
201
|
+
ol {
|
202
|
+
display: block;
|
203
|
+
left: 100%;
|
204
|
+
opacity: 1;
|
205
|
+
position: absolute;
|
206
|
+
top: 0;
|
207
|
+
visibility: visible;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
ol li:hover {
|
212
|
+
ol,
|
213
|
+
ul {
|
214
|
+
display: block;
|
215
|
+
left: 100%;
|
216
|
+
opacity: 1;
|
217
|
+
position: absolute;
|
218
|
+
top: 0;
|
219
|
+
visibility: visible;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
// Vertical
|
227
|
+
.nav-vertical {
|
228
|
+
li {
|
229
|
+
display: block;
|
230
|
+
margin-right: 0px;
|
231
|
+
padding: 10px;
|
232
|
+
}
|
233
|
+
|
234
|
+
.icon {
|
235
|
+
line-height: inherit;
|
236
|
+
margin-right: 7px;
|
237
|
+
|
238
|
+
&.right, &.text-right { margin-right: 0px; }
|
239
|
+
}
|
240
|
+
|
241
|
+
&.nav-bordered {
|
242
|
+
border: 1px solid #eee;
|
243
|
+
|
244
|
+
li:hover { background-color: #f6f6f6; }
|
245
|
+
}
|
246
|
+
|
247
|
+
&.nav-line li:hover { background-color: #f6f6f6; }
|
248
|
+
|
249
|
+
.badge,
|
250
|
+
.label { margin-top: 5px; }
|
251
|
+
|
252
|
+
.dropdown .dropdown-menu { top: 100%; }
|
253
|
+
}
|
254
|
+
|
255
|
+
@include breakpoint(small) {
|
256
|
+
.nav-vertical .dropdown .dropdown-menu {
|
257
|
+
left: 100%;
|
258
|
+
top: 0;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
|
263
|
+
// Responsive navigation
|
264
|
+
.naver {
|
265
|
+
.naver-handle {
|
266
|
+
color: inherit;
|
267
|
+
cursor: pointer;
|
268
|
+
display: none;
|
269
|
+
@include font-size(24px);
|
270
|
+
text-align: right;
|
271
|
+
text-transform: uppercase;
|
272
|
+
|
273
|
+
@include vendor(user-select, none);
|
274
|
+
}
|
275
|
+
|
276
|
+
.naver-wrapper {
|
277
|
+
height: auto;
|
278
|
+
width: 100%;
|
279
|
+
}
|
280
|
+
|
281
|
+
&.enabled {
|
282
|
+
.naver-handle { display: block; }
|
283
|
+
|
284
|
+
.naver-wrapper {
|
285
|
+
height: 0px;
|
286
|
+
overflow: hidden;
|
287
|
+
|
288
|
+
li {
|
289
|
+
display: block;
|
290
|
+
padding: 8px;
|
291
|
+
text-align: left;
|
292
|
+
width: 100%;
|
293
|
+
|
294
|
+
&:hover { background: #f9f9f9; }
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
.nav-responsive {
|
301
|
+
&.naver .naver-handle:after {
|
302
|
+
content: "\f0c9";
|
303
|
+
font-family: FontAwesome;
|
304
|
+
text-align: right;
|
305
|
+
}
|
306
|
+
|
307
|
+
&.nav-responsive-text.naver {
|
308
|
+
.naver-handle:after { content: "\00a0 \f0c9"; }
|
309
|
+
|
310
|
+
.naver-container:before {
|
311
|
+
clear: both;
|
312
|
+
content: ".";
|
313
|
+
display: block;
|
314
|
+
height: 0;
|
315
|
+
line-height: 0;
|
316
|
+
text-align: right;
|
317
|
+
visibility: hidden;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
|
322
|
+
|
323
|
+
// Left-aligned responsive navigation
|
324
|
+
.nav-responsive-left {
|
325
|
+
&.naver .naver-handle {
|
326
|
+
text-align: left;
|
327
|
+
|
328
|
+
&:before {
|
329
|
+
content: "\f0c9";
|
330
|
+
font-family: FontAwesome;
|
331
|
+
text-align: left;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
&.nav-responsive-text.naver {
|
336
|
+
.naver-handle:before { content: "\f0c9 \00a0"; }
|
337
|
+
|
338
|
+
.naver-container:after {
|
339
|
+
clear: both;
|
340
|
+
content: ".";
|
341
|
+
display: block;
|
342
|
+
height: 0;
|
343
|
+
line-height: 0;
|
344
|
+
text-align: left;
|
345
|
+
visibility: hidden;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
|
351
|
+
// Centered responsive navigation
|
352
|
+
.nav-responsive-center {
|
353
|
+
&.naver .naver-handle {
|
354
|
+
text-align: center;
|
355
|
+
|
356
|
+
&:before {
|
357
|
+
content: "\f0c9";
|
358
|
+
font-family: FontAwesome;
|
359
|
+
text-align: center;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
&.nav-responsive-text.naver {
|
364
|
+
.naver-handle:before { content: "\f0c9 \00a0"; }
|
365
|
+
|
366
|
+
.naver-container:after {
|
367
|
+
clear: both;
|
368
|
+
content: ".";
|
369
|
+
display: block;
|
370
|
+
height: 0;
|
371
|
+
line-height: 0;
|
372
|
+
text-align: center;
|
373
|
+
visibility: hidden;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
@if $use-progress == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $PROGRESS
|
4
|
+
//------------------------------------//
|
5
|
+
.progress {
|
6
|
+
background-color: #f9f9f9;
|
7
|
+
color: #fff;
|
8
|
+
@include font-size(11px, false);
|
9
|
+
height: 12px;
|
10
|
+
line-height: 1.182;
|
11
|
+
margin: 6px 0;
|
12
|
+
position: relative;
|
13
|
+
text-align: center;
|
14
|
+
width: 100%;
|
15
|
+
|
16
|
+
@include vendor(box-shadow, inset 0 1px 1px rgba(100, 100, 100, 0.1));
|
17
|
+
|
18
|
+
@include vendor(box-sizing, initial);
|
19
|
+
}
|
20
|
+
|
21
|
+
.progress-small {
|
22
|
+
@include font-size(9px, false);
|
23
|
+
height: 6px;
|
24
|
+
line-height: 0.875;
|
25
|
+
}
|
26
|
+
|
27
|
+
.progress-large {
|
28
|
+
@include font-size($base-font-size, false);
|
29
|
+
height: 25px;
|
30
|
+
line-height: 1.7;
|
31
|
+
}
|
32
|
+
|
33
|
+
.progress {
|
34
|
+
> span {
|
35
|
+
background-color: rgb(43, 194, 83);
|
36
|
+
display: block;
|
37
|
+
height: 100%;
|
38
|
+
overflow: hidden;
|
39
|
+
position: relative;
|
40
|
+
width: auto;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
// Rounded corners
|
45
|
+
&.border-radius > span { border-radius: $border-radius; }
|
46
|
+
|
47
|
+
|
48
|
+
// Stacked
|
49
|
+
&.progress-stacked {
|
50
|
+
> span {
|
51
|
+
display: inline-block;
|
52
|
+
float: left;
|
53
|
+
}
|
54
|
+
|
55
|
+
&.border-radius > span {
|
56
|
+
border-radius: 0px;
|
57
|
+
|
58
|
+
&:first-of-type { border-radius: $border-radius 0 0 $border-radius; }
|
59
|
+
|
60
|
+
&:last-of-type { border-radius: 0 $border-radius $border-radius 0; }
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
// Striped
|
67
|
+
.progress-striped {
|
68
|
+
> span {
|
69
|
+
&:after, > span {
|
70
|
+
bottom: 0;
|
71
|
+
content: "";
|
72
|
+
left: 0;
|
73
|
+
overflow: hidden;
|
74
|
+
position: absolute;
|
75
|
+
right: 0;
|
76
|
+
top: 0;
|
77
|
+
z-index: 1;
|
78
|
+
|
79
|
+
@include vendor(background-size, 50px 50px);
|
80
|
+
|
81
|
+
background-image:
|
82
|
+
-webkit-gradient(linear, 0 0, 100% 100%, color-stop(0.25, rgba(255, 255, 255, 0.2)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.75, rgba(255, 255, 255, 0.2)), color-stop(0.75, transparent), to(transparent));
|
83
|
+
background-image:
|
84
|
+
-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
// Animated
|
90
|
+
&.progress-animate > span {
|
91
|
+
&:after, > span {
|
92
|
+
@include vendor(animation, move 2s linear infinite);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
@-webkit-keyframes move {
|
98
|
+
0% { background-position: 0 0; }
|
99
|
+
|
100
|
+
100% { background-position: 50px 50px; }
|
101
|
+
}
|
102
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
@if $use-wells == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $WELLS
|
4
|
+
//------------------------------------//
|
5
|
+
.well {
|
6
|
+
background-color: #f9f9f9;
|
7
|
+
border-color: #ededed;
|
8
|
+
border-style: solid;
|
9
|
+
border-width: 1px;
|
10
|
+
margin-bottom: 24px;
|
11
|
+
padding: 0px 15px;
|
12
|
+
|
13
|
+
h1, h2, h3, h4, h5, h6,
|
14
|
+
.h1, .h2, .h3, .h4, .h5, .h6,
|
15
|
+
.giga, .mega, .kilo { color: inherit; }
|
16
|
+
|
17
|
+
p { margin: 10px 0; }
|
18
|
+
|
19
|
+
pre,
|
20
|
+
.pre.well {
|
21
|
+
@include font-size(14px);
|
22
|
+
padding: 10px 15px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.well {
|
27
|
+
// Headings
|
28
|
+
header {
|
29
|
+
h1, h2, h3, h4, h5, h6,
|
30
|
+
.h1, .h2, .h3, .h4, .h5, .h6,
|
31
|
+
.giga, .mega, .kilo { margin: 20px 0 10px; }
|
32
|
+
|
33
|
+
.label,
|
34
|
+
.badge { margin-top: 10px; }
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Background colors
|
39
|
+
&[class*='bg-'] { color: #fff; }
|
40
|
+
|
41
|
+
&.bg-white { color: #666; }
|
42
|
+
|
43
|
+
&.bg-black { border-color: #000; }
|
44
|
+
|
45
|
+
&.bg-green { border-color: darken($bg-green, 15%); }
|
46
|
+
|
47
|
+
&.bg-light-green {
|
48
|
+
border-color: darken($bg-green, 15%);
|
49
|
+
color: $color-green;
|
50
|
+
}
|
51
|
+
|
52
|
+
&.bg-blue { border-color: darken($bg-blue, 15%); }
|
53
|
+
|
54
|
+
&.bg-light-blue {
|
55
|
+
border-color: darken($bg-blue, 15%);
|
56
|
+
color: $color-blue;
|
57
|
+
}
|
58
|
+
|
59
|
+
&.bg-yellow { border-color: darken($bg-yellow, 15%); }
|
60
|
+
|
61
|
+
&.bg-light-yellow {
|
62
|
+
border-color: darken($bg-yellow, 15%);
|
63
|
+
color: $color-yellow;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.bg-red { border-color: darken($bg-red, 15%); }
|
67
|
+
|
68
|
+
&.bg-light-red {
|
69
|
+
border-color: darken($bg-red, 15%);
|
70
|
+
color: $color-red;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
// Close icon
|
76
|
+
.close {
|
77
|
+
color: #000;
|
78
|
+
filter: alpha(opacity = 20);
|
79
|
+
float: right;
|
80
|
+
@include font-size(22px);
|
81
|
+
font-weight: bold;
|
82
|
+
opacity: .2;
|
83
|
+
|
84
|
+
&:hover, &:focus {
|
85
|
+
color: #000;
|
86
|
+
cursor: pointer;
|
87
|
+
filter: alpha(opacity = 50);
|
88
|
+
opacity: .5;
|
89
|
+
text-decoration: none;
|
90
|
+
|
91
|
+
@include vendor(transition, all 0.2s linear);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
button.close {
|
96
|
+
background: transparent;
|
97
|
+
border: 0;
|
98
|
+
cursor: pointer;
|
99
|
+
padding: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
.well .close { margin-top: 6px; }
|
103
|
+
}
|
data/concisecss.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'concisecss/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "concisecss"
|
8
|
+
spec.version = Concisecss::VERSION
|
9
|
+
spec.authors = ["Benjamin Sigidi"]
|
10
|
+
spec.email = ["benjamin@sigididesign.com"]
|
11
|
+
spec.summary = %q{Concise is built from the ground-up for mobile devices. This means it will look great on all devices.}
|
12
|
+
spec.description = %q{Concise is built on a set of simple but important principles that aid in effective and manageable web design. By understanding these principles, Concise can be used to it's full potential and we can create a better paradigm for using HTML and CSS to build websites.}
|
13
|
+
spec.homepage = "http://concisecss.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
|
+
spec.add_development_dependency 'rake', '~> 0'
|
23
|
+
spec.add_development_dependency 'rails', '~> 4.0'
|
24
|
+
spec. add_development_dependency 'httpclient', '~> 2.2', '~> 0'
|
25
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require "thor"
|
2
|
+
require "json"
|
3
|
+
require "httpclient"
|
4
|
+
|
5
|
+
class ConcisecssSource < Thor
|
6
|
+
include Thor::Actions
|
7
|
+
|
8
|
+
desc "fetch source files", "fetch source files from ConciseCSS GitHub "
|
9
|
+
def fetch
|
10
|
+
filtered_tags = fetch_tags
|
11
|
+
tag = select("Which tag do you want to fetch?", filtered_tags)
|
12
|
+
self.destination_root = "app/assets"
|
13
|
+
remote = "https://github.com/ConciseCSS/concise.css"
|
14
|
+
get "#{remote}/raw/#{tag}/scss/concise.scss", "stylesheets/concise.scss"
|
15
|
+
get "#{remote}/raw/#{tag}/scss/_defaults.scss", "stylesheets/_defaults.scss"
|
16
|
+
get "#{remote}/raw/#{tag}/scss/objects/_badges.scss", "stylesheets/objects/_badges.scss"
|
17
|
+
get "#{remote}/raw/#{tag}/scss/objects/_breadcrumbs.scss", "stylesheets/objects/_breadcrumbs.scss"
|
18
|
+
get "#{remote}/raw/#{tag}/scss/objects/_buttons.scss", "stylesheets/objects/_buttons.scss"
|
19
|
+
get "#{remote}/raw/#{tag}/scss/objects/_colors.scss", "stylesheets/objects/_colors.scss"
|
20
|
+
get "#{remote}/raw/#{tag}/scss/objects/_dropdowns.scss", "stylesheets/objects/_dropdowns.scss"
|
21
|
+
get "#{remote}/raw/#{tag}/scss/objects/_groups.scss", "stylesheets/objects/_groups.scss"
|
22
|
+
get "#{remote}/raw/#{tag}/scss/objects/_navigation.scss", "stylesheets/objects/_navigation.scss"
|
23
|
+
get "#{remote}/raw/#{tag}/scss/objects/_progress.scss", "stylesheets/objects/_progress.scss"
|
24
|
+
get "#{remote}/raw/#{tag}/scss/objects/_wells.scss", "stylesheets/objects/_wells.scss"
|
25
|
+
get "#{remote}/raw/#{tag}/scss/objects/_clearfix.scss", "stylesheets/objects/_clearfix.scss"
|
26
|
+
get "#{remote}/raw/#{tag}/scss/objects/_conditional.scss", "stylesheets/objects/_conditional.scss"
|
27
|
+
get "#{remote}/raw/#{tag}/scss/objects/_debug.scss", "stylesheets/objects/_debug.scss"
|
28
|
+
get "#{remote}/raw/#{tag}/scss/objects/_helper.scss", "stylesheets/objects/_helper.scss"
|
29
|
+
get "#{remote}/raw/#{tag}/scss/objects/_mixins.scss", "stylesheets/objects/_mixins.scss"
|
30
|
+
get "#{remote}/raw/#{tag}/scss/objects/_normalize.scss", "stylesheets/objects/_normalize.scss"
|
31
|
+
get "#{remote}/raw/#{tag}/scss/objects/_print.scss", "stylesheets/objects/_print.scss"
|
32
|
+
get "#{remote}/raw/#{tag}/scss/objects/_shared.scss", "stylesheets/objects/_shared.scss"
|
33
|
+
get "#{remote}/raw/#{tag}/scss/base/_blockquotes.scss", "stylesheets/base/_blockquotes.scss"
|
34
|
+
get "#{remote}/raw/#{tag}/scss/base/_container.scss", "stylesheets/base/_container.scss"
|
35
|
+
get "#{remote}/raw/#{tag}/scss/base/_forms.scss", "stylesheets/base/_forms.scss"
|
36
|
+
get "#{remote}/raw/#{tag}/scss/base/_grid.scss", "stylesheets/base/_grid.scss"
|
37
|
+
get "#{remote}/raw/#{tag}/scss/base/_headings.scss", "stylesheets/base/_headings.scss"
|
38
|
+
get "#{remote}/raw/#{tag}/scss/base/_lists.scss", "stylesheets/base/_lists.scss"
|
39
|
+
get "#{remote}/raw/#{tag}/scss/base/_main.scss", "stylesheets/base/_main.scss"
|
40
|
+
get "#{remote}/raw/#{tag}/scss/base/_selection.scss", "stylesheets/base/_selection.scss"
|
41
|
+
get "#{remote}/raw/#{tag}/scss/base/_tables.scss", "stylesheets/base/_tables.scss"
|
42
|
+
get "#{remote}/raw/#{tag}/scss/base/_type.scss", "stylesheets/base/_type.scss"
|
43
|
+
|
44
|
+
get "#{remote}/raw/#{tag}/js/non-responsive.js", "javascripts/concisecss/non-responsive.js"
|
45
|
+
get "#{remote}/raw/#{tag}/js/navigation.js", "javascripts/concisecss/navigation.js"
|
46
|
+
get "#{remote}/raw/#{tag}/js/naver.js", "javascripts/concisecss/naver.js"
|
47
|
+
get "#{remote}/raw/#{tag}/js/dropdown.js", "javascripts/concisecss/dropdown.js"
|
48
|
+
get "#{remote}/raw/#{tag}/js/close.js", "javascripts/concisecss/close.js"
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def fetch_tags
|
56
|
+
http = HTTPClient.new
|
57
|
+
response = JSON.parse(http.get("https://api.github.com/repos/ConciseCSS/concise.css/tags").body)
|
58
|
+
response.map{|tag| tag["name"]}.sort
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
end
|