fume 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/fume.gemspec +11 -5
- data/generators/fume/capify/capify_gen.rb +8 -0
- data/generators/fume/capify/templates/Capfile +3 -0
- data/generators/fume/capify/templates/config/deploy.rb +33 -0
- data/generators/fume/simple_theme/templates/public/demo.html +477 -0
- data/generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.js +4376 -0
- data/generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.js +9133 -0
- data/generators/fume/simple_theme/templates/public/stylesheets/base.less +27 -343
- data/generators/fume/simple_theme/templates/public/stylesheets/drastic-dark.less +0 -426
- data/generators/fume/simple_theme/templates/public/stylesheets/ie_patch.less +4 -0
- data/generators/fume/simple_theme/templates/public/stylesheets/layout.less +413 -0
- data/generators/fume/simple_theme/templates/public/stylesheets/simple-theme.css +429 -397
- data/generators/fume/simple_theme/templates/public/stylesheets/simple-theme.less +476 -2
- data/lib/fume/rails_ext.rb +22 -0
- data/lib/fume.rb +4 -2
- metadata +11 -5
- data/generators/fume/simple_theme/USAGE +0 -3
- data/generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.min.js +0 -19
- data/generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.full.min.js +0 -298
@@ -0,0 +1,413 @@
|
|
1
|
+
@import "base.less";
|
2
|
+
|
3
|
+
/* =========================
|
4
|
+
Layout
|
5
|
+
========================= */
|
6
|
+
#container {
|
7
|
+
min-width: 1050px;
|
8
|
+
}
|
9
|
+
|
10
|
+
#header, #page {
|
11
|
+
margin: 0 40px;
|
12
|
+
}
|
13
|
+
|
14
|
+
#page {
|
15
|
+
padding-top: 20px;
|
16
|
+
}
|
17
|
+
|
18
|
+
#footer {
|
19
|
+
padding-bottom: 20px;
|
20
|
+
}
|
21
|
+
|
22
|
+
.sidebar {
|
23
|
+
#main {
|
24
|
+
width: 78%;
|
25
|
+
float: left;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
#sidebar {
|
30
|
+
width: 21%;
|
31
|
+
float: right;
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
#box {
|
36
|
+
width: 500px;
|
37
|
+
margin: 50px auto;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* =========================
|
41
|
+
Containers
|
42
|
+
========================= */
|
43
|
+
#header {
|
44
|
+
position: relative;
|
45
|
+
|
46
|
+
h1 {
|
47
|
+
margin: 0;
|
48
|
+
padding: 0.5em 0;
|
49
|
+
font-size: 2.75em;
|
50
|
+
|
51
|
+
a {
|
52
|
+
text-decoration: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
#main {
|
58
|
+
.block {
|
59
|
+
margin-bottom: 20px;
|
60
|
+
|
61
|
+
.secondary-navigation {
|
62
|
+
font-size: 1.2em;
|
63
|
+
line-height: 1;
|
64
|
+
border-bottom-width: 0.4em;
|
65
|
+
border-bottom-style: solid;
|
66
|
+
.border-top-left-radius(0.4em);
|
67
|
+
.border-top-right-radius(0.4em);
|
68
|
+
|
69
|
+
ul {
|
70
|
+
margin: 0;
|
71
|
+
padding: 0;
|
72
|
+
list-style-type: none;
|
73
|
+
|
74
|
+
li {
|
75
|
+
float: left;
|
76
|
+
|
77
|
+
a, span {
|
78
|
+
display: block;
|
79
|
+
padding: 0.75em 1em 0.55em 1em;
|
80
|
+
text-decoration: none;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
li.first, li.first a, li.first a:hover {
|
85
|
+
.border-top-left-radius(0.4em);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
.content {
|
91
|
+
padding: 1.2em;
|
92
|
+
|
93
|
+
h2 {
|
94
|
+
margin: 0;
|
95
|
+
padding: 0;
|
96
|
+
margin-bottom: 0.4em;
|
97
|
+
font-size: 2em;
|
98
|
+
}
|
99
|
+
|
100
|
+
.inner {
|
101
|
+
padding: 0;
|
102
|
+
margin: 0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
#sidebar {
|
109
|
+
h3 {
|
110
|
+
margin: 0;
|
111
|
+
padding: 0.75em 1em 0.55em 1em;
|
112
|
+
font-size: 1.2em;
|
113
|
+
border-bottom-width: 0.4em;
|
114
|
+
border-bottom-style: solid;
|
115
|
+
.border-top-left-radius(0.4em);
|
116
|
+
.border-top-right-radius(0.4em);
|
117
|
+
}
|
118
|
+
|
119
|
+
ul.navigation {
|
120
|
+
margin: 0;
|
121
|
+
padding: 0;
|
122
|
+
list-style-type: none;
|
123
|
+
line-height: 1;
|
124
|
+
|
125
|
+
li a {
|
126
|
+
display: block;
|
127
|
+
padding: 1em 1.2em;
|
128
|
+
text-decoration: none;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
.block {
|
133
|
+
margin-bottom: 1em;
|
134
|
+
padding-bottom: 1em;
|
135
|
+
.border-radius(0.4em);
|
136
|
+
|
137
|
+
.content {
|
138
|
+
padding: 1em 1em 0 1em;
|
139
|
+
|
140
|
+
p {
|
141
|
+
margin: 0;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.notice, .sidebar-block {
|
147
|
+
padding: 1em;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
#box {
|
152
|
+
.block {
|
153
|
+
margin-bottom: 20px;
|
154
|
+
|
155
|
+
h1 {
|
156
|
+
font-size: 2.75em;
|
157
|
+
}
|
158
|
+
|
159
|
+
h2 {
|
160
|
+
padding: 0.5em 0.8em;
|
161
|
+
font-size: 1.5em;
|
162
|
+
margin: 0;
|
163
|
+
}
|
164
|
+
|
165
|
+
.content {
|
166
|
+
padding: 1em 1.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
#footer {
|
173
|
+
.block {
|
174
|
+
.border-radius(0.4em);
|
175
|
+
|
176
|
+
p {
|
177
|
+
margin: 0;
|
178
|
+
padding: 0.9em;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
/* =========================
|
184
|
+
Ids and Classes
|
185
|
+
========================= */
|
186
|
+
#main-navigation {
|
187
|
+
width: 100%;
|
188
|
+
font-size: 1.3em;
|
189
|
+
line-height: 1;
|
190
|
+
.border-top-left-radius(0.4em);
|
191
|
+
.border-top-right-radius(0.4em);
|
192
|
+
|
193
|
+
ul {
|
194
|
+
margin: 0;
|
195
|
+
padding: 0;
|
196
|
+
list-style-type: none;
|
197
|
+
|
198
|
+
li {
|
199
|
+
float: left;
|
200
|
+
margin-left: 1.2em;
|
201
|
+
.border-top-left-radius(0.4em);
|
202
|
+
.border-top-right-radius(0.4em);
|
203
|
+
|
204
|
+
a {
|
205
|
+
display: block;
|
206
|
+
padding: 0.7em 0em;
|
207
|
+
text-decoration: none;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
li.active {
|
212
|
+
a {
|
213
|
+
padding: 0.7em 1.2em;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
#user-navigation {
|
220
|
+
position: absolute;
|
221
|
+
right: 1.5em;
|
222
|
+
bottom: 0.2em;
|
223
|
+
line-height: 1;
|
224
|
+
|
225
|
+
ul {
|
226
|
+
margin: 0;
|
227
|
+
padding: 0;
|
228
|
+
list-style-type: none;
|
229
|
+
|
230
|
+
li {
|
231
|
+
float: left;
|
232
|
+
padding: 0 0.5em;
|
233
|
+
|
234
|
+
height: 2.5em;
|
235
|
+
line-height: 2.5em;
|
236
|
+
|
237
|
+
a, span, button, input {
|
238
|
+
padding: 0.4em;
|
239
|
+
text-decoration: none;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
.table {
|
246
|
+
width: 100%;
|
247
|
+
border-collapse: collapse;
|
248
|
+
margin-bottom: 1.25em;
|
249
|
+
|
250
|
+
th {
|
251
|
+
font-weight: bold;
|
252
|
+
text-align: left;
|
253
|
+
}
|
254
|
+
|
255
|
+
th.first {
|
256
|
+
.border-top-left-radius(0.4em);
|
257
|
+
}
|
258
|
+
|
259
|
+
th.last {
|
260
|
+
.border-top-right-radius(0.4em);
|
261
|
+
}
|
262
|
+
|
263
|
+
th, td {
|
264
|
+
padding: 0.8em;
|
265
|
+
|
266
|
+
form {
|
267
|
+
display: inline;
|
268
|
+
|
269
|
+
div {
|
270
|
+
display: inline;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
td.last {
|
276
|
+
text-align: right;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
.actions-bar {
|
282
|
+
padding: 1em 1px;
|
283
|
+
|
284
|
+
.actions {
|
285
|
+
float: left;
|
286
|
+
}
|
287
|
+
|
288
|
+
.pagination {
|
289
|
+
float: right;
|
290
|
+
padding: 1px 0;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
.pagination {
|
295
|
+
a, span {
|
296
|
+
display: block;
|
297
|
+
float: left;
|
298
|
+
|
299
|
+
padding: 0.25em 0.45em;
|
300
|
+
margin-right: 0.45em;
|
301
|
+
border-style: solid;
|
302
|
+
border-width: 1px;
|
303
|
+
.border-radius(0.25em);
|
304
|
+
}
|
305
|
+
|
306
|
+
span.current {
|
307
|
+
font-weight: bold;
|
308
|
+
}
|
309
|
+
|
310
|
+
a {
|
311
|
+
text-decoration: none;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
.form {
|
316
|
+
.group {
|
317
|
+
margin-bottom: 1.25em;
|
318
|
+
}
|
319
|
+
|
320
|
+
div.left {
|
321
|
+
width: 20%;
|
322
|
+
float: left;
|
323
|
+
}
|
324
|
+
|
325
|
+
div.right {
|
326
|
+
width: 75%;
|
327
|
+
float: right;
|
328
|
+
}
|
329
|
+
|
330
|
+
.columns {
|
331
|
+
.column {
|
332
|
+
width: 48%;
|
333
|
+
}
|
334
|
+
|
335
|
+
.left {
|
336
|
+
float: left;
|
337
|
+
}
|
338
|
+
|
339
|
+
.right {
|
340
|
+
float: right;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
label.label, input.text_field, textarea.text_area {
|
345
|
+
font-size: 1.2em;
|
346
|
+
padding: 1px 0;
|
347
|
+
margin: 0;
|
348
|
+
}
|
349
|
+
|
350
|
+
label.right {
|
351
|
+
text-align: right;
|
352
|
+
}
|
353
|
+
|
354
|
+
input.checkbox, input.radio {
|
355
|
+
margin-right: 0.5em;
|
356
|
+
}
|
357
|
+
|
358
|
+
label.checkbox, label.radio {
|
359
|
+
line-height: 1.5em;
|
360
|
+
}
|
361
|
+
|
362
|
+
label.label {
|
363
|
+
display: block;
|
364
|
+
padding-bottom: 0.2em;
|
365
|
+
font-weight: bold;
|
366
|
+
}
|
367
|
+
|
368
|
+
div.fieldWithErrors label.label {
|
369
|
+
display: inline;
|
370
|
+
}
|
371
|
+
|
372
|
+
.fieldWithErrors .error {
|
373
|
+
color: red;
|
374
|
+
}
|
375
|
+
|
376
|
+
input.text_field, textarea.text_area {
|
377
|
+
width: 100%;
|
378
|
+
border-width: 1px;
|
379
|
+
border-style: solid;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
ul.list {
|
385
|
+
margin: 0;
|
386
|
+
padding: 0;
|
387
|
+
list-style-type: none;
|
388
|
+
|
389
|
+
li {
|
390
|
+
clear: left;
|
391
|
+
padding-bottom: 5px;
|
392
|
+
|
393
|
+
.left {
|
394
|
+
float: left;
|
395
|
+
|
396
|
+
.avatar {
|
397
|
+
width: 50px;
|
398
|
+
height: 50px;
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
402
|
+
.item {
|
403
|
+
margin-left: 80px;
|
404
|
+
|
405
|
+
.avatar {
|
406
|
+
float: left;
|
407
|
+
margin: 0 5px 5px 0;
|
408
|
+
width: 30px;
|
409
|
+
height: 30px;
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
}
|