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,432 +0,0 @@
1
- @import "function.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
- .border-top-left-radius(0.4em);
201
- .border-top-right-radius(0.4em);
202
-
203
- a {
204
- display: block;
205
- padding: 0.7em 1.2em;
206
- text-decoration: none;
207
- }
208
- }
209
- }
210
- }
211
-
212
- #user-navigation {
213
- position: absolute;
214
- right: 1.5em;
215
- bottom: 0.2em;
216
- line-height: 1;
217
-
218
- ul {
219
- margin: 0;
220
- padding: 0;
221
- list-style-type: none;
222
-
223
- li {
224
- float: left;
225
- padding: 0 0.5em;
226
-
227
- height: 2.5em;
228
- line-height: 2.5em;
229
-
230
- a, span, button, input {
231
- padding: 0.4em;
232
- text-decoration: none;
233
- }
234
- }
235
- }
236
- }
237
-
238
- .table {
239
- width: 100%;
240
- border-collapse: collapse;
241
- margin-bottom: 1.25em;
242
-
243
- th {
244
- font-weight: bold;
245
- text-align: left;
246
- }
247
-
248
- th:first-child {
249
- .border-top-left-radius(0.4em);
250
- }
251
-
252
- th:last-child {
253
- .border-top-right-radius(0.4em);
254
- }
255
-
256
- th, td {
257
- padding: 0.8em;
258
-
259
- form {
260
- display: inline;
261
-
262
- div {
263
- display: inline;
264
- }
265
- }
266
- }
267
-
268
- td.last {
269
- text-align: right;
270
- }
271
- }
272
-
273
-
274
- .actions-bar {
275
- padding: 1em 1px;
276
- line-height: 2;
277
-
278
- .actions {
279
- float: left;
280
- line-height: 1;
281
-
282
- a, input {
283
- margin-right: 0.45em;
284
- padding: 0.35em 0.45em;
285
- display: block;
286
- .border-radius(0.25em);
287
- text-decoration: none;
288
- float: left;
289
- }
290
- }
291
-
292
- .pagination {
293
- line-height: 1;
294
- float: right;
295
- padding: 1px 0;
296
- }
297
- }
298
-
299
- .pagination {
300
- a, span {
301
- display: block;
302
- float: left;
303
-
304
- padding: 0.35em 0.45em;
305
- margin-right: 0.45em;
306
- border-style: solid;
307
- border-width: 1px;
308
- .border-radius(0.25em);
309
- }
310
-
311
- span.current {
312
- font-weight: bold;
313
- }
314
-
315
- a {
316
- text-decoration: none;
317
- }
318
- }
319
-
320
- .form {
321
- .group {
322
- margin-bottom: 1.25em;
323
- }
324
-
325
- div.left {
326
- width: 20%;
327
- float: left;
328
- }
329
-
330
- div.right {
331
- width: 75%;
332
- float: right;
333
- }
334
-
335
- .columns {
336
- .column {
337
- width: 48%;
338
- }
339
-
340
- .left {
341
- float: left;
342
- }
343
-
344
- .right {
345
- float: right;
346
- }
347
- }
348
-
349
- label.label, input.text_field, textarea.text_area {
350
- font-size: 1.2em;
351
- padding: 1px 0;
352
- margin: 0;
353
- }
354
-
355
- label.right {
356
- text-align: right;
357
- }
358
-
359
- input.checkbox, input.radio {
360
- margin-right: 0.5em;
361
- }
362
-
363
- label.checkbox, label.radio {
364
- line-height: 1.5em;
365
- }
366
-
367
- label.label {
368
- display: block;
369
- padding-bottom: 0.2em;
370
- font-weight: bold;
371
- }
372
-
373
- div.fieldWithErrors label.label {
374
- display: inline;
375
- }
376
-
377
- .fieldWithErrors .error {
378
- color: red;
379
- }
380
-
381
- input.text_field, textarea.text_area {
382
- width: 100%;
383
- border-width: 1px;
384
- border-style: solid;
385
- }
386
- }
387
-
388
-
389
- ul.list {
390
- margin: 0;
391
- padding: 0;
392
- list-style-type: none;
393
-
394
- li {
395
- clear: left;
396
- padding-bottom: 5px;
397
-
398
- .left {
399
- float: left;
400
-
401
- .avatar {
402
- width: 50px;
403
- height: 50px;
404
- }
405
- }
406
-
407
- .item {
408
- margin-left: 80px;
409
-
410
- .avatar {
411
- float: left;
412
- margin: 0 5px 5px 0;
413
- width: 30px;
414
- height: 30px;
415
- }
416
- }
417
- }
418
- }
419
-
420
-
421
-
422
- /* =========================
423
- Patch for Jquery UI
424
- ========================= */
425
- .ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
426
- width: 46%;
427
- }
428
-
429
- .ui-widget {
430
- font-size: 93%;
431
- line-height: 1;
432
- }
@@ -1,18 +0,0 @@
1
- @import "vendor/yui-3.0/reset.css";
2
- @import "vendor/yui-3.0/fonts.css";
3
- @import "vendor/yui-3.0/base.css";
4
-
5
-
6
- ol, ul{
7
- li {
8
- list-style: none;
9
- }
10
- }
11
-
12
- th, td {
13
- border: none;
14
- }
15
-
16
- input[type=text], input[type=password], textarea{
17
- width: auto;
18
- }
@@ -1,80 +0,0 @@
1
- /*
2
- Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.net/yui/license.txt
5
- version: 3.0.0
6
- build: 1549
7
- */
8
- /* base.css, part of YUI's CSS Foundation */
9
- h1 {
10
- /*18px via YUI Fonts CSS foundation*/
11
- font-size:138.5%;
12
- }
13
- h2 {
14
- /*16px via YUI Fonts CSS foundation*/
15
- font-size:123.1%;
16
- }
17
- h3 {
18
- /*14px via YUI Fonts CSS foundation*/
19
- font-size:108%;
20
- }
21
- h1,h2,h3 {
22
- /* top & bottom margin based on font size */
23
- margin:1em 0;
24
- }
25
- h1,h2,h3,h4,h5,h6,strong {
26
- /*bringing boldness back to headers and the strong element*/
27
- font-weight:bold;
28
- }
29
- abbr,acronym {
30
- /*indicating to users that more info is available */
31
- border-bottom:1px dotted #000;
32
- cursor:help;
33
- }
34
- em {
35
- /*bringing italics back to the em element*/
36
- font-style:italic;
37
- }
38
- blockquote,ul,ol,dl {
39
- /*giving blockquotes and lists room to breath*/
40
- margin:1em;
41
- }
42
- ol,ul,dl {
43
- /*bringing lists on to the page with breathing room */
44
- margin-left:2em;
45
- }
46
- ol li {
47
- /*giving OL's LIs generated numbers*/
48
- list-style: decimal outside;
49
- }
50
- ul li {
51
- /*giving UL's LIs generated disc markers*/
52
- list-style: disc outside;
53
- }
54
- dl dd {
55
- /*providing spacing for definition terms*/
56
- margin-left:1em;
57
- }
58
- th,td {
59
- /*borders and padding to make the table readable*/
60
- border:1px solid #000;
61
- padding:.5em;
62
- }
63
- th {
64
- /*distinguishing table headers from data cells*/
65
- font-weight:bold;
66
- text-align:center;
67
- }
68
- caption {
69
- /*coordinated margin to match cell's padding*/
70
- margin-bottom:.5em;
71
- /*centered so it doesn't blend in to other content*/
72
- text-align:center;
73
- }
74
- p,fieldset,table,pre {
75
- /*so things don't run into each other*/
76
- margin-bottom:1em;
77
- }
78
- /* setting a consistent width, 160px;
79
- control of type=file still not possible */
80
- input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
@@ -1,47 +0,0 @@
1
- /*
2
- Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.net/yui/license.txt
5
- version: 3.0.0
6
- build: 1549
7
- */
8
- /**
9
- * Percents could work for IE, but for backCompat purposes, we are using keywords.
10
- * x-small is for IE6/7 quirks mode.
11
- */
12
- body {
13
- font:13px/1.231 arial,helvetica,clean,sans-serif;
14
- *font-size:small; /* for IE */
15
- *font:x-small; /* for IE in quirks mode */
16
- }
17
-
18
- /**
19
- * Nudge down to get to 13px equivalent for these form elements
20
- */
21
- select,
22
- input,
23
- button,
24
- textarea {
25
- font:99% arial,helvetica,clean,sans-serif;
26
- }
27
-
28
- /**
29
- * To help tables remember to inherit
30
- */
31
- table {
32
- font-size:inherit;
33
- font:100%;
34
- }
35
-
36
- /**
37
- * Bump up IE to get to 13px equivalent for these fixed-width elements
38
- */
39
- pre,
40
- code,
41
- kbd,
42
- samp,
43
- tt {
44
- font-family:monospace;
45
- *font-size:108%;
46
- line-height:100%;
47
- }
@@ -1,126 +0,0 @@
1
- /*
2
- Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.net/yui/license.txt
5
- version: 3.0.0
6
- build: 1549
7
- */
8
- /*
9
- TODO will need to remove settings on HTML since we can't namespace it.
10
- TODO with the prefix, should I group by selector or property for weight savings?
11
- */
12
- html{
13
- color:#000;
14
- background:#FFF;
15
- }
16
- /*
17
- TODO remove settings on BODY since we can't namespace it.
18
- */
19
- /*
20
- TODO test putting a class on HEAD.
21
- - Fails on FF.
22
- */
23
- body,
24
- div,
25
- dl,
26
- dt,
27
- dd,
28
- ul,
29
- ol,
30
- li,
31
- h1,
32
- h2,
33
- h3,
34
- h4,
35
- h5,
36
- h6,
37
- pre,
38
- code,
39
- form,
40
- fieldset,
41
- legend,
42
- input,
43
- textarea,
44
- p,
45
- blockquote,
46
- th,
47
- td {
48
- margin:0;
49
- padding:0;
50
- }
51
- table {
52
- border-collapse:collapse;
53
- border-spacing:0;
54
- }
55
- fieldset,
56
- img {
57
- border:0;
58
- }
59
- /*
60
- TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
61
- */
62
- address,
63
- caption,
64
- cite,
65
- code,
66
- dfn,
67
- em,
68
- strong,
69
- th,
70
- var {
71
- font-style:normal;
72
- font-weight:normal;
73
- }
74
- /*
75
- TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
76
- */
77
- li {
78
- list-style:none;
79
- }
80
-
81
- caption,
82
- th {
83
- text-align:left;
84
- }
85
- h1,
86
- h2,
87
- h3,
88
- h4,
89
- h5,
90
- h6 {
91
- font-size:100%;
92
- font-weight:normal;
93
- }
94
- q:before,
95
- q:after {
96
- content:'';
97
- }
98
- abbr,
99
- acronym {
100
- border:0;
101
- font-variant:normal;
102
- }
103
- /* to preserve line-height and selector appearance */
104
- sup {
105
- vertical-align:text-top;
106
- }
107
- sub {
108
- vertical-align:text-bottom;
109
- }
110
- input,
111
- textarea,
112
- select {
113
- font-family:inherit;
114
- font-size:inherit;
115
- font-weight:inherit;
116
- }
117
- /*to enable resizing for IE*/
118
- input,
119
- textarea,
120
- select {
121
- *font-size:100%;
122
- }
123
- /*because legend doesn't inherit in IE */
124
- legend {
125
- color:#000;
126
- }