fume 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,476 @@
1
- @import "base.less";
2
- @import "drastic-dark.less";
1
+ @import "layout.less";
2
+ @import "drastic-dark.less";
3
+
4
+ /*
5
+ Drastic Dark
6
+ by Juan Maria Martinez Arce
7
+ juan[at]insignia4u.com
8
+
9
+ light grey: #cfcfcf
10
+ medium grey: #36393d
11
+ dark grey: #1a1a1a
12
+ interactive action yellow #ffff88
13
+ red #cc0000
14
+ light blue #E6EEFC
15
+ dark blue #0B43A8
16
+
17
+ */
18
+
19
+ #color_schemes {
20
+ nav: #ffffff;
21
+ nav-bg: #36393d;
22
+ nav-dark-bg: #1a1a1a;
23
+ nav-hover-bg: #666666;
24
+ disabled: #888;
25
+
26
+ body-color: #222;
27
+ }
28
+
29
+ /* =========================
30
+ Containers
31
+ ========================= */
32
+ body {
33
+ color: #color_schemes['body-color'];
34
+ background: #cfcfcf;
35
+ font-family: helvetica, arial, sans-serif;
36
+ }
37
+
38
+ #header_wrapper {
39
+ background: #36393d;
40
+ }
41
+
42
+ #header {
43
+ h1 {
44
+ font-weight: bold;
45
+
46
+ a {
47
+ color: #FFF;
48
+ }
49
+ }
50
+ }
51
+
52
+
53
+
54
+ #main {
55
+ .block {
56
+ .content {
57
+ background: #FFF;
58
+
59
+ h2 {
60
+ font-weight: bold;
61
+ }
62
+
63
+ p {
64
+
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ #footer {
71
+ .block {
72
+ color: #color_schemes['nav'];
73
+ background: #color_schemes['nav-dark-bg'];
74
+ }
75
+ }
76
+
77
+ #sidebar {
78
+ h3 {
79
+ background: #color_schemes['nav-bg'];
80
+ color: #color_schemes['nav'];
81
+ border-color: #color_schemes['nav-dark-bg'];
82
+ }
83
+
84
+ ul li a {
85
+ :link, :visited {
86
+ background: #FFF;
87
+ border-bottom: 1px solid #F0F0EE;
88
+ text-decoration: none;
89
+ }
90
+
91
+ :hover, :active {
92
+ background: #color_schemes['nav-hover-bg'];
93
+ color: #color_schemes['nav'];
94
+ }
95
+ }
96
+
97
+ .block {
98
+ background: #FFF;
99
+
100
+ h4 {
101
+ font-weight: bold;
102
+ }
103
+ }
104
+
105
+ .notice {
106
+ background: #E6EEFC;
107
+
108
+ h4 {
109
+ color: #0B43A8;
110
+ }
111
+ }
112
+ }
113
+
114
+ #box {
115
+ .block {
116
+ h2 {
117
+ background: #36393d;
118
+ color: #FFF;
119
+ .border-top-left-radius(0.4em);
120
+ .border-top-right-radius(0.4em);
121
+ }
122
+
123
+ .content {
124
+ background: #FFF;
125
+ }
126
+ }
127
+ }
128
+ /* =========================
129
+ Ids and Classes
130
+ ========================= */
131
+ #main-navigation {
132
+ background: #color_schemes['nav-dark-bg'];
133
+
134
+ ul {
135
+ li {
136
+ background: #color_schemes['nav-dark-bg'];
137
+
138
+ a {
139
+ color: #color_schemes['nav'];
140
+ }
141
+ }
142
+
143
+ li.active {
144
+ background: #f0f0ee;
145
+
146
+ a {
147
+ color: #color_schemes['nav-dark-bg'];
148
+
149
+ :link, :visited, :hover, :active {
150
+ color: #color_schemes['nav-dark-bg'];
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+
157
+ #user-navigation {
158
+ ul li {
159
+ span, a {
160
+ color: #color_schemes['nav'];
161
+
162
+ :link, :visited, :hover, :active {
163
+ color: #color_schemes['nav'];
164
+ }
165
+ }
166
+
167
+ .logout {
168
+ background-color: red;
169
+ color: #color_schemes['nav'];
170
+ border: 0px solid #999;
171
+ .border-radius(0.4em);
172
+ cursor: pointer;
173
+ }
174
+ }
175
+ }
176
+
177
+ .secondary-navigation {
178
+ background: #color_schemes['nav-bg'];
179
+ border-bottom-color: #color_schemes['nav-dark-bg'];
180
+
181
+ li a:hover {
182
+ background: #color_schemes['nav-hover-bg'];
183
+ }
184
+
185
+ ul li.active, ul li.active a:hover {
186
+ background-color: #color_schemes['nav-dark-bg'];
187
+ }
188
+
189
+ ul li {
190
+ a, span {
191
+ color: #color_schemes['nav'];
192
+
193
+ :link, :visited, :hover, :active {
194
+ color: #color_schemes['nav'];
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+
201
+
202
+ .small {
203
+ font-size: 11px;
204
+ font-style: normal;
205
+ font-weight: normal;
206
+ text-transform: normal;
207
+ letter-spacing: normal;
208
+ line-height: 1.4em;
209
+ }
210
+
211
+ .table {
212
+ th {
213
+ background: #color_schemes['nav-bg'];
214
+ color: #color_schemes['nav'];
215
+
216
+ a {
217
+ color: #color_schemes['nav'];
218
+ }
219
+ }
220
+
221
+ td {
222
+ border-bottom: 1px solid #F0F0EE;
223
+ }
224
+
225
+ tr.even {
226
+ background: #ebebeb;
227
+ }
228
+ }
229
+
230
+ .pagination {
231
+ a, span {
232
+ background: #cfcfcf;
233
+ border: 1px solid #c1c1c1;
234
+ }
235
+
236
+ span.disabled {
237
+ color: #color_schemes['disabled'];
238
+ }
239
+
240
+ span.current {
241
+ background: #color_schemes['nav-bg'];
242
+ color: #FFF;
243
+ border: 1px solid #36393d;
244
+ }
245
+
246
+ a {
247
+ color: #1a1a1a;
248
+
249
+ :hover {
250
+ border: 1px solid #color_schemes['nav-bg'];
251
+ }
252
+ }
253
+ }
254
+
255
+
256
+ .formtastic {
257
+ ol {
258
+ list-style: none;
259
+ margin: 0;
260
+ padding: 0;
261
+
262
+ li {
263
+ margin-bottom: 1em;
264
+ }
265
+
266
+ .required abbr {
267
+ color: red;
268
+ border: none;
269
+ vertical-align: super;
270
+ }
271
+
272
+ .error {
273
+ border-left: 0.3em solid red;
274
+ padding-left: 1em;
275
+ .inline-errors {
276
+ color: red;
277
+ margin: 0;
278
+ font-size: 1.1em;
279
+ }
280
+ }
281
+
282
+
283
+ .string, .select, .text {
284
+
285
+ label {
286
+ font-size: 1.2em;
287
+ color: #666666;
288
+ display: block;
289
+ padding-bottom: 0.2em;
290
+ }
291
+
292
+ input {
293
+ display: inline;
294
+ }
295
+
296
+ .inline-hints {
297
+ margin: 0 0 0 1em;
298
+ font-style: italic;
299
+ display: inline;
300
+ color: #888;
301
+ }
302
+ }
303
+
304
+ .check_boxes {
305
+ fieldset {
306
+ .label label {
307
+ font-size: 1.2em;
308
+ }
309
+
310
+ ol li {
311
+ float: left;
312
+ margin-right: 0.5em;
313
+
314
+ label {
315
+ font-size: 1em;
316
+ color: #color_schemes['body-color'];
317
+ }
318
+ }
319
+ }
320
+ }
321
+ }
322
+
323
+ fieldset.inputs {
324
+ border-top: 1px solid #999;
325
+ padding: 1em 1em 0 1em;
326
+
327
+ legend {
328
+ color: #666666;
329
+ span {
330
+ font-size: 1.3em;
331
+ }
332
+ }
333
+ }
334
+
335
+ fieldset.buttons {
336
+ padding: 0 1em 1em 1em;
337
+
338
+ ol {
339
+ list-style: none;
340
+ margin: 0;
341
+ padding: 0;
342
+
343
+ li {
344
+ float: left;
345
+ line-height: 2;
346
+ margin-right: 0.5em;
347
+ }
348
+
349
+ .commit {
350
+ input {
351
+ background: #cfcfcf;
352
+ .border-radius(5px);
353
+ border: 1px solid #c1c1c1;
354
+ padding: 0.2em 0.5em;
355
+ cursor: pointer;
356
+ font-weight: bold;
357
+
358
+ :hover {
359
+ border: 1px solid #666;
360
+ }
361
+ }
362
+ }
363
+
364
+ .cancel a {
365
+ color: #cc0000;
366
+ }
367
+ }
368
+ }
369
+ }
370
+
371
+ /* forms */
372
+ .form {
373
+ label.label {
374
+ color: #666666;
375
+ }
376
+
377
+ input.text_field, textarea.text_area {
378
+ border: 1px solid #cfcfcf;
379
+ }
380
+
381
+ input.button {
382
+ background: #cfcfcf;
383
+ .border-radius(5px);
384
+ border: 1px solid #c1c1c1;
385
+ padding: 2px 5px;
386
+ cursor: pointer;
387
+ font-weight: bold;
388
+
389
+ :hover {
390
+ border: 1px solid #666;
391
+ }
392
+ }
393
+
394
+ input.button[disabled] {
395
+ color: #color_schemes['disabled'];
396
+ }
397
+
398
+ .description {
399
+ font-style: italic;
400
+ color: #8C8C8C;
401
+ font-size: .9em;
402
+ }
403
+
404
+ .navform a {
405
+ color: #cc0000;
406
+ }
407
+ }
408
+
409
+ ul.list li {
410
+ border-bottom-color: #F0F0EE;
411
+ border-bottom-width: 1px;
412
+ border-bottom-style: solid;
413
+
414
+
415
+ .item .avatar {
416
+ border-color: #F0F0EE;
417
+ border-width: 1px;
418
+ border-style: solid;
419
+ padding: 2px;
420
+ }
421
+ }
422
+
423
+ .flash {
424
+ .message {
425
+ .border-radius(0.4em);
426
+ text-align:center;
427
+ margin: 0 auto 15px;
428
+
429
+ p {
430
+ margin: 0.75em;
431
+ }
432
+ }
433
+
434
+ .error {
435
+ border: 1px solid #fbb;
436
+ background-color: #fdd;
437
+ }
438
+
439
+ .warning {
440
+ border: 1px solid #E3DA4C;
441
+ background-color: #ffffcc;
442
+ }
443
+
444
+ .notice {
445
+ border: 1px solid #1FDF00;
446
+ background-color: #BBFFB6;
447
+ }
448
+ }
449
+
450
+ .gray {
451
+ color: #999999;
452
+ font-family: serif;
453
+ font-style: italic;
454
+ font-weight: normal;
455
+ text-transform: normal;
456
+ letter-spacing: normal;
457
+ line-height: 1.6em;
458
+ }
459
+
460
+ .hightlight {
461
+ color: #36393d;
462
+ background-color: #ffff88;
463
+ font-weight: bold;
464
+ }
465
+
466
+ a:link, a:visited, a:hover, a:active, h1, h2, h3 { color: #36393d; }
467
+ a { -moz-outline: none; }
468
+
469
+ hr {
470
+ background: #f0f0ee;
471
+ color: #f0f0ee;
472
+ }
473
+
474
+
475
+
476
+ @import "ie_patch.less";
@@ -0,0 +1,22 @@
1
+ module Fume
2
+ module RailsExt
3
+
4
+ def self.enable
5
+ ActionController::Base.send :helper, RailsHelpers
6
+ end
7
+
8
+ module RailsHelpers
9
+ def public_path(source)
10
+ url_for("#{ActionController::Base.relative_url_root}#{source}")
11
+ end
12
+
13
+ def translate_attribute(klass, attribute_name)
14
+ klass.human_attribute_name(attribute_name)
15
+ end
16
+
17
+ alias :ta :translate_attribute
18
+ end
19
+ end
20
+ end
21
+
22
+
data/lib/fume.rb CHANGED
@@ -1,10 +1,12 @@
1
- require 'fume/simple_theme'
2
1
  require 'fume/authlogic'
3
2
  require 'fume/searchlogic'
3
+ require 'fume/simple_theme'
4
+ require 'fume/rails_ext'
4
5
 
5
- Fume::SimpleTheme.enable
6
6
  Fume::Authlogic.enable
7
7
  Fume::Searchlogic.enable
8
+ Fume::SimpleTheme.enable
9
+ Fume::RailsExt.enable
8
10
 
9
11
  module Fume
10
12
  def self.root
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunteya
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-17 00:00:00 +08:00
12
+ date: 2009-12-18 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -36,9 +36,12 @@ files:
36
36
  - Rakefile
37
37
  - VERSION.yml
38
38
  - fume.gemspec
39
+ - generators/fume/capify/capify_gen.rb
40
+ - generators/fume/capify/templates/Capfile
41
+ - generators/fume/capify/templates/config/deploy.rb
39
42
  - generators/fume/fume_generator.rb
40
- - generators/fume/simple_theme/USAGE
41
43
  - generators/fume/simple_theme/simple_theme_gen.rb
44
+ - generators/fume/simple_theme/templates/public/demo.html
42
45
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_30_cccccc_40x100.png
43
46
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png
44
47
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-bg_glass_20_555555_1x400.png
@@ -53,8 +56,8 @@ files:
53
56
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_a83300_256x240.png
54
57
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_cccccc_256x240.png
55
58
  - generators/fume/simple_theme/templates/public/images/jquery-ui-1.7.2.ui-darkness/ui-icons_ffffff_256x240.png
56
- - generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.min.js
57
- - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.full.min.js
59
+ - generators/fume/simple_theme/templates/public/javascripts/jquery-1.3.2.js
60
+ - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-1.7.2.js
58
61
  - generators/fume/simple_theme/templates/public/javascripts/jquery-ui-i18n-1.7.2.js
59
62
  - generators/fume/simple_theme/templates/public/stylesheets/base.less
60
63
  - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/ie.css
@@ -87,12 +90,15 @@ files:
87
90
  - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/reset.css
88
91
  - generators/fume/simple_theme/templates/public/stylesheets/blueprint-0.9.1/src/typography.css
89
92
  - generators/fume/simple_theme/templates/public/stylesheets/drastic-dark.less
93
+ - generators/fume/simple_theme/templates/public/stylesheets/ie_patch.less
90
94
  - generators/fume/simple_theme/templates/public/stylesheets/jquery-ui-1.7.2.ui-darkness.css
95
+ - generators/fume/simple_theme/templates/public/stylesheets/layout.less
91
96
  - generators/fume/simple_theme/templates/public/stylesheets/simple-theme.css
92
97
  - generators/fume/simple_theme/templates/public/stylesheets/simple-theme.less
93
98
  - init.rb
94
99
  - lib/fume.rb
95
100
  - lib/fume/authlogic.rb
101
+ - lib/fume/rails_ext.rb
96
102
  - lib/fume/searchlogic.rb
97
103
  - lib/fume/simple_theme.rb
98
104
  - rails/init.rb
@@ -1,3 +0,0 @@
1
- Usage:
2
-
3
- script/generate fume_simple_theme