fume 0.6.7 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/CHANGELOG.md +7 -0
  2. data/VERSION +1 -1
  3. data/fume.gemspec +4 -1
  4. data/lib/fume/app_setting_loader.rb +13 -0
  5. data/lib/fume/authlogic.rb +1 -1
  6. data/lib/fume/cancan.rb +1 -1
  7. data/lib/fume/rails_ext.rb +16 -1
  8. data/lib/fume/railtie.rb +2 -2
  9. data/lib/fume/simple_nav.rb +49 -0
  10. data/lib/fume.rb +2 -1
  11. metadata +42 -64
  12. data/lib/fume/simple_theme.rb +0 -59
  13. data/rails_generators/fume/simple_theme/simple_theme_gen.rb +0 -9
  14. data/rails_generators/fume/simple_theme/templates/public/stylesheets/reset.css +0 -89
  15. data/rails_generators/fume/simple_theme/templates/public/stylesheets/reset.less +0 -1
  16. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/demo.html +0 -513
  17. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/simple-theme-ie-patch.js +0 -19
  18. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/simple-theme.css +0 -864
  19. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/simple-theme.less +0 -539
  20. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/base.less +0 -9
  21. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/function.less +0 -17
  22. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/layout.less +0 -432
  23. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/reset.less +0 -18
  24. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/vendor/yui-3.0/base.css +0 -80
  25. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/vendor/yui-3.0/fonts.css +0 -47
  26. data/rails_generators/fume/simple_theme/templates/public/themes/simple_theme/src/vendor/yui-3.0/reset.css +0 -126
  27. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-1.4.2.js +0 -6240
  28. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.js +0 -10921
  29. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
  30. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  31. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
  32. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
  33. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  34. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  35. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  36. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  37. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  38. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-icons_222222_256x240.png +0 -0
  39. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
  40. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-icons_a83300_256x240.png +0 -0
  41. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-icons_cccccc_256x240.png +0 -0
  42. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness/ui-icons_ffffff_256x240.png +0 -0
  43. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-1.8.ui-darkness.css +0 -480
  44. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery-ui-i18n-1.8.js +0 -1176
  45. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery.ba-bbq-1.2.1.js +0 -1137
  46. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery.corner-2.09.js +0 -239
  47. data/rails_generators/fume/simple_theme/templates/public/themes/vendor/jquery.timepicker-0.2.1.js +0 -413
@@ -1,539 +0,0 @@
1
- @import "src/function.less";
2
- @import "src/reset.less";
3
- @import "src/base.less";
4
- @import "src/layout.less";
5
-
6
-
7
- /*
8
- Drastic Dark
9
- by Juan Maria Martinez Arce
10
- juan[at]insignia4u.com
11
-
12
- light grey: #cfcfcf
13
- medium grey: #36393d
14
- dark grey: #1a1a1a
15
- interactive action yellow #ffff88
16
- red #cc0000
17
- light blue #E6EEFC
18
- dark blue #0B43A8
19
-
20
- */
21
-
22
-
23
- #color_schemes {
24
- nav: #ffffff;
25
- nav-bg: #36393d;
26
- nav-dark-bg: #1a1a1a;
27
- nav-hover-bg: #666666;
28
- disabled: #888;
29
-
30
- body-color: #222;
31
- }
32
-
33
- /*@import "drastic-dark.less";*/
34
-
35
- /* =========================
36
- Containers
37
- ========================= */
38
- html {
39
- background: #cfcfcf;
40
- }
41
-
42
- body {
43
- color: #color_schemes['body-color'];
44
- background: #cfcfcf;
45
- font-family: helvetica, arial, sans-serif;
46
- }
47
-
48
- #header_wrapper {
49
- background: #36393d;
50
- }
51
-
52
- #header {
53
- h1 {
54
- font-weight: bold;
55
- color: #FFF;
56
-
57
- a {
58
- color: #FFF;
59
- }
60
- }
61
- }
62
-
63
-
64
-
65
- #main {
66
- .block {
67
- .content {
68
- background: #FFF;
69
-
70
- h2 {
71
- font-weight: bold;
72
- }
73
-
74
- p {
75
-
76
- }
77
- }
78
- }
79
- }
80
-
81
- #footer {
82
- .block {
83
- color: #color_schemes['nav'];
84
- background: #color_schemes['nav-dark-bg'];
85
- }
86
- }
87
-
88
- #sidebar {
89
- h3 {
90
- background: #color_schemes['nav-bg'];
91
- color: #color_schemes['nav'];
92
- border-color: #color_schemes['nav-dark-bg'];
93
- }
94
-
95
- ul li a {
96
- :link, :visited {
97
- background: #FFF;
98
- border-bottom: 1px solid #F0F0EE;
99
- text-decoration: none;
100
- }
101
-
102
- :hover, :active {
103
- background: #color_schemes['nav-hover-bg'];
104
- color: #color_schemes['nav'];
105
- }
106
- }
107
-
108
- .block {
109
- background: #FFF;
110
-
111
- h4 {
112
- font-weight: bold;
113
- }
114
- }
115
-
116
- .notice {
117
- background: #E6EEFC;
118
-
119
- h4 {
120
- color: #0B43A8;
121
- }
122
- }
123
- }
124
-
125
- #box {
126
- .block {
127
- h2 {
128
- background: #36393d;
129
- color: #FFF;
130
- .border-top-left-radius(0.4em);
131
- .border-top-right-radius(0.4em);
132
- }
133
-
134
- .content {
135
- background: #FFF;
136
- }
137
- }
138
- }
139
- /* =========================
140
- Ids and Classes
141
- ========================= */
142
- #main-navigation {
143
- background: #color_schemes['nav-dark-bg'];
144
-
145
- ul {
146
- li {
147
- background: #color_schemes['nav-dark-bg'];
148
-
149
- a {
150
- color: #color_schemes['nav'];
151
- }
152
- }
153
-
154
- li.active {
155
- background: #f0f0ee;
156
-
157
- a {
158
- color: #color_schemes['nav-dark-bg'];
159
-
160
- :link, :visited, :hover, :active {
161
- color: #color_schemes['nav-dark-bg'];
162
- }
163
- }
164
- }
165
- }
166
- }
167
-
168
- #user-navigation {
169
- ul li {
170
- span, a {
171
- color: #color_schemes['nav'];
172
-
173
- :link, :visited, :hover, :active {
174
- color: #color_schemes['nav'];
175
- }
176
- }
177
-
178
- .logout {
179
- background-color: red;
180
- color: #color_schemes['nav'];
181
- border: 0px solid #999;
182
- .border-radius(0.4em);
183
- cursor: pointer;
184
- }
185
- }
186
- }
187
-
188
- .secondary-navigation {
189
- background: #color_schemes['nav-bg'];
190
- border-bottom-color: #color_schemes['nav-dark-bg'];
191
-
192
- li a:hover {
193
- background: #color_schemes['nav-hover-bg'];
194
- }
195
-
196
- ul li.active, ul li.active a:hover {
197
- background-color: #color_schemes['nav-dark-bg'];
198
- }
199
-
200
- ul li {
201
- a, span {
202
- color: #color_schemes['nav'];
203
-
204
- :link, :visited, :hover, :active {
205
- color: #color_schemes['nav'];
206
- }
207
- }
208
- }
209
- }
210
-
211
-
212
-
213
- .small {
214
- font-size: 11px;
215
- font-style: normal;
216
- font-weight: normal;
217
- text-transform: normal;
218
- letter-spacing: normal;
219
- line-height: 1.4em;
220
- }
221
-
222
- .table {
223
- th {
224
- background: #color_schemes['nav-bg'];
225
- color: #color_schemes['nav'];
226
-
227
- a {
228
- color: #color_schemes['nav'];
229
- }
230
- }
231
-
232
- td {
233
- border-bottom: 1px solid #F0F0EE;
234
- }
235
-
236
- tr.even {
237
- background: #ebebeb;
238
- }
239
- }
240
-
241
- .actions-bar {
242
- .actions {
243
- a, input {
244
- background: #cfcfcf;
245
- border: 1px solid #c1c1c1;
246
-
247
- :hover {
248
- border: 1px solid #color_schemes['nav-bg'];
249
- }
250
- }
251
- }
252
- }
253
-
254
- .pagination {
255
- a, span {
256
- background: #cfcfcf;
257
- border: 1px solid #c1c1c1;
258
- }
259
-
260
- span.disabled {
261
- color: #color_schemes['disabled'];
262
- }
263
-
264
- span.current {
265
- background: #color_schemes['nav-bg'];
266
- color: #FFF;
267
- border: 1px solid #36393d;
268
- }
269
-
270
- a {
271
- color: #1a1a1a;
272
-
273
- :hover {
274
- border: 1px solid #color_schemes['nav-bg'];
275
- }
276
- }
277
- }
278
-
279
-
280
- .formtastic {
281
- ol {
282
- list-style: none;
283
- margin: 0;
284
- padding: 0;
285
-
286
- li {
287
- margin-bottom: 1em;
288
- }
289
-
290
- .required abbr {
291
- line-height: 1;
292
- color: red;
293
- border: none;
294
- }
295
-
296
- .error {
297
- border-left: 0.3em solid red;
298
- padding-left: 1em;
299
- .inline-errors {
300
- color: red;
301
- margin: 0;
302
- font-size: 1.1em;
303
- margin-top: 0.2em;
304
- }
305
- }
306
-
307
-
308
- .string, .select, .text, .numeric, .file, .password, .boolean {
309
-
310
- label {
311
- font-size: 1.2em;
312
- color: #666666;
313
- display: block;
314
- padding-bottom: 0.2em;
315
- }
316
-
317
- input {
318
- display: inline;
319
- padding: 0.1em 0.2em;
320
- }
321
-
322
- .inline-hints {
323
- margin: 0 0 0 1em;
324
- font-style: italic;
325
- display: inline;
326
- color: #888;
327
- }
328
- }
329
-
330
- .boolean {
331
- label {
332
- input {
333
- margin-right: 0.5em;
334
- }
335
- }
336
- }
337
-
338
- .check_boxes {
339
- fieldset {
340
- .label {
341
- padding-bottom: 0.2em;
342
-
343
- label {
344
- font-size: 1.2em;
345
- }
346
- }
347
-
348
- ol li {
349
- float: left;
350
- margin-right: 0.5em;
351
-
352
- label {
353
- font-size: 1em;
354
- color: #color_schemes['body-color'];
355
- }
356
- }
357
- }
358
- }
359
- }
360
-
361
- fieldset.inputs {
362
- border-top: 1px solid #999;
363
- padding: 1em 1em 0 1em;
364
-
365
- legend {
366
- color: #666666;
367
- span {
368
- font-size: 1.3em;
369
- }
370
- }
371
- }
372
-
373
- fieldset.buttons {
374
- padding: 0 1em 1em 1em;
375
-
376
- ol {
377
- list-style: none;
378
- margin: 0;
379
- padding: 0;
380
-
381
- li {
382
- float: left;
383
- line-height: 2;
384
- margin-right: 0.5em;
385
- }
386
-
387
- .commit {
388
- input {
389
- background: #cfcfcf;
390
- .border-radius(5px);
391
- border: 1px solid #c1c1c1;
392
- padding: 0.2em 0.5em;
393
- cursor: pointer;
394
- font-weight: bold;
395
-
396
- :hover {
397
- border: 1px solid #666;
398
- }
399
- }
400
- }
401
-
402
- .cancel a {
403
- color: #cc0000;
404
- }
405
- }
406
- }
407
- }
408
-
409
- .sidebar-block .formtastic {
410
- margin-right: 1em;
411
-
412
- .string, .select, .text, .numeric, .file, .password, .boolean {
413
- input {
414
- width: 100%;
415
- }
416
- }
417
-
418
- fieldset.inputs {
419
- border: none;
420
- padding: 0;
421
- margin: 0;
422
- }
423
-
424
- fieldset.buttons {
425
- border: none;
426
- padding: 0;
427
- margin: 0;
428
-
429
- li {
430
- margin-bottom: 0;
431
- }
432
- }
433
- }
434
-
435
-
436
- /* forms */
437
- .form {
438
- label.label {
439
- color: #666666;
440
- }
441
-
442
- input.text_field, textarea.text_area {
443
- border: 1px solid #cfcfcf;
444
- }
445
-
446
- input.button {
447
- background: #cfcfcf;
448
- .border-radius(5px);
449
- border: 1px solid #c1c1c1;
450
- padding: 2px 5px;
451
- cursor: pointer;
452
- font-weight: bold;
453
-
454
- :hover {
455
- border: 1px solid #666;
456
- }
457
- }
458
-
459
- input.button[disabled] {
460
- color: #color_schemes['disabled'];
461
- }
462
-
463
- .description {
464
- font-style: italic;
465
- color: #8C8C8C;
466
- font-size: .9em;
467
- }
468
-
469
- .navform a {
470
- color: #cc0000;
471
- }
472
- }
473
-
474
- ul.list li {
475
- border-bottom-color: #F0F0EE;
476
- border-bottom-width: 1px;
477
- border-bottom-style: solid;
478
-
479
-
480
- .item .avatar {
481
- border-color: #F0F0EE;
482
- border-width: 1px;
483
- border-style: solid;
484
- padding: 2px;
485
- }
486
- }
487
-
488
- .flash {
489
- .message {
490
- .border-radius(0.4em);
491
- text-align:center;
492
- margin: 0 auto 15px;
493
-
494
- p {
495
- margin: 0.75em;
496
- }
497
- }
498
-
499
- .error {
500
- border: 1px solid #fbb;
501
- background-color: #fdd;
502
- }
503
-
504
- .warning {
505
- border: 1px solid #E3DA4C;
506
- background-color: #ffffcc;
507
- }
508
-
509
- .notice {
510
- border: 1px solid #1FDF00;
511
- background-color: #BBFFB6;
512
- }
513
- }
514
-
515
- .gray {
516
- color: #999999;
517
- font-family: serif;
518
- font-style: italic;
519
- font-weight: normal;
520
- text-transform: normal;
521
- letter-spacing: normal;
522
- line-height: 1.6em;
523
- }
524
-
525
- .hightlight {
526
- color: #36393d;
527
- background-color: #ffff88;
528
- font-weight: bold;
529
- }
530
-
531
- a:link, a:visited, a:hover, a:active, h1, h2, h3 { color: #36393d; }
532
- a { -moz-outline: none; }
533
-
534
- hr {
535
- background: #f0f0ee;
536
- color: #f0f0ee;
537
- }
538
-
539
-
@@ -1,9 +0,0 @@
1
- body {
2
- line-height: 1;
3
- font-size: 13px;
4
- }
5
-
6
- .clear {
7
- clear: both;
8
- }
9
-
@@ -1,17 +0,0 @@
1
- .border-radius (@radius: 0) {
2
- border-radius: @radius;
3
- -moz-border-radius: @radius;
4
- -webkit-border-radius: @radius;
5
- }
6
-
7
- .border-top-left-radius (@radius: 0) {
8
- border-top-left-radius: @radius;
9
- -moz-border-radius-topleft: @radius;
10
- -webkit-border-top-left-radius: @radius;
11
-
12
- }
13
- .border-top-right-radius (@radius: 0) {
14
- border-top-right-radius: @radius;
15
- -moz-border-radius-topright: @radius;
16
- -webkit-border-top-right-radius: @radius;
17
- }