active_scaffold 3.1.17 → 3.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/app/assets/images/{add.gif → active_scaffold/add.gif} +0 -0
  2. data/app/assets/images/{arrow_down.gif → active_scaffold/arrow_down.gif} +0 -0
  3. data/app/assets/images/{arrow_up.gif → active_scaffold/arrow_up.gif} +0 -0
  4. data/app/assets/images/{close.gif → active_scaffold/close.gif} +0 -0
  5. data/app/assets/images/{close_touch.png → active_scaffold/close_touch.png} +0 -0
  6. data/app/assets/images/{config.png → active_scaffold/config.png} +0 -0
  7. data/app/assets/images/{cross.png → active_scaffold/cross.png} +0 -0
  8. data/app/assets/images/{gears.png → active_scaffold/gears.png} +0 -0
  9. data/app/assets/images/{indicator-small.gif → active_scaffold/indicator-small.gif} +0 -0
  10. data/app/assets/images/{indicator.gif → active_scaffold/indicator.gif} +0 -0
  11. data/app/assets/images/{magnifier.png → active_scaffold/magnifier.png} +0 -0
  12. data/app/assets/javascripts/jquery/active_scaffold.js +125 -125
  13. data/app/assets/javascripts/jquery/date_picker_bridge.js.erb +5 -5
  14. data/app/assets/javascripts/jquery/draggable_lists.js +9 -9
  15. data/app/assets/javascripts/jquery/tiny_mce_bridge.js +2 -2
  16. data/app/assets/stylesheets/active_scaffold.css.erb +166 -147
  17. data/app/assets/stylesheets/active_scaffold.css.erb~ +182 -147
  18. data/app/assets/stylesheets/blue-theme.css +74 -0
  19. data/app/assets/stylesheets/blue-theme.css~ +1150 -0
  20. data/frontends/default/views/_search.html.erb +3 -3
  21. data/lib/active_scaffold/actions/nested.rb +2 -2
  22. data/lib/active_scaffold/actions/nested.rb~ +3 -3
  23. data/lib/active_scaffold/data_structures/nested_info.rb +6 -2
  24. data/lib/active_scaffold/data_structures/nested_info.rb~ +7 -3
  25. data/lib/active_scaffold/helpers/search_column_helpers.rb +3 -1
  26. data/lib/active_scaffold/helpers/view_helpers.rb +1 -1
  27. data/lib/active_scaffold/version.rb +1 -1
  28. data/lib/active_scaffold.rb +2 -1
  29. data/lib/active_scaffold.rb~ +14 -4
  30. metadata +21 -19
@@ -7,6 +7,82 @@
7
7
  For details, see the ActiveScaffold web site: http://www.activescaffold.com/
8
8
 
9
9
  */
10
+ <%
11
+ @disabled_color ||= '#999'
12
+ @actions_disabled_color ||= '#666'
13
+ @link_color ||= '#06c'
14
+ @hover_bg ||= '#ff8'
15
+ @header_color ||= '#555'
16
+
17
+ @column_header_bg ||= @header_color
18
+ @column_header_link_color ||= '#fff'
19
+ @column_header_link_hover_bg ||= '#000'
20
+ @column_header_link_hover_color ||= '#ff8'
21
+ @column_header_color ||= '#eee'
22
+ @column_header_sorted_bg ||= '#333'
23
+
24
+ @column_bg ||= '#E6F2FF'
25
+ @column_even_bg ||= '#fff'
26
+ @column_color ||= '#333'
27
+ @column_empty_color ||= '#999'
28
+ @column_border_color ||= '#C5DBF7'
29
+ @column_even_border_color ||= '#ddd'
30
+ @column_actions_border_color ||= '#ccc'
31
+
32
+ @column_sorted_bg ||= '#B9DCFF'
33
+ @column_sorted_border_color ||= '#AFD0F5'
34
+ @column_even_sorted_bg ||= '#E6F2FF'
35
+ @column_even_sorted_border_color ||= '#AFD0F5'
36
+
37
+ @calculations_bg ||= '#eee'
38
+ @calculations_border_color ||= '#005CB8'
39
+
40
+ @action_group_color ||= '#0066CC'
41
+ @action_group_hover_bg ||= '#ff8'
42
+ @action_group_border_color ||= '#005CB8'
43
+ @action_group_items_bg ||= '#EEE'
44
+ @action_group_items_border_color ||= '#222'
45
+ @action_group_link_color ||= @column_color
46
+
47
+ @nested_bg ||= '#DAFFCD'
48
+ @nested_border_color ||= '#7FCF00'
49
+ @nested_footer_color ||= '#444'
50
+ @nested_column_bg ||= '#ECFFE7'
51
+ @nested_column_border_color ||= @column_border_color
52
+
53
+ @second_nested_bg ||= '#FFFFBB'
54
+ @second_nested_border_color ||= '#DDDF37'
55
+
56
+ @third_nested_bg ||= @nested_bg
57
+ @third_nested_border_color ||= @nested_border_color
58
+
59
+ @pagination_border_color ||= '#ccc'
60
+ @msg_color ||= '#333'
61
+ @msg_error_bg ||= '#fbb'
62
+ @msg_error_border_color ||= '#f66'
63
+ @msg_warning_bg ||= '#ffb'
64
+ @msg_warning_border_color ||= '#ff6'
65
+ @msg_info_bg ||= '#bbf'
66
+ @msg_info_border_color ||= '#66f'
67
+ @msg_filtered_bg ||= '#e8e8e8'
68
+ @msg_filtered_color ||= '#666'
69
+
70
+ @form_title_color ||= '#1F7F00'
71
+ @label_color ||= @header_color
72
+ @description_color ||= '#999'
73
+ @placeholder_color ||= '#aaa'
74
+ @input_border_color ||= @form_title_color
75
+ @input_error_border_color ||= '#f00'
76
+ @input_focus_bg ||= '#ffc'
77
+
78
+ @draggable_list_bg ||= '#FFFF88'
79
+ @draggable_list_selected_bg ||= '#7FCF00'
80
+ @checkbox_list_bg ||= '#fff'
81
+
82
+ @subform_color ||= '#999'
83
+ @subform_header_color ||= @header_color
84
+ @subform_footer_color ||= @subform_color
85
+ %>
10
86
 
11
87
  .active-scaffold form,
12
88
  .active-scaffold table,
@@ -28,16 +104,16 @@ border-collapse: separate;
28
104
 
29
105
  .active-scaffold a,
30
106
  .active-scaffold a:visited {
31
- color: #06c;
107
+ color: <%= @link_color %>;
32
108
  text-decoration: none;
33
109
  }
34
110
 
35
111
  .active-scaffold a.disabled {
36
- color: #999;
112
+ color: <%= @disabled_color %>;
37
113
  }
38
114
 
39
115
  .active-scaffold a:hover, .active-scaffold div.hover, .active-scaffold td span.hover {
40
- background-color: #ff8;
116
+ background-color: <%= @hover_bg %>;
41
117
  }
42
118
 
43
119
  .active-scaffold div.actions a img,
@@ -56,12 +132,12 @@ clear: both;
56
132
  }
57
133
 
58
134
  noscript.active-scaffold {
59
- border-left: solid 5px #f66;
60
- background-color: #fbb;
135
+ border-left: solid 5px <%= @msg_error_border_color %>;
136
+ background-color: <%= @msg_error_bg %>;
61
137
  font-size: 11px;
62
138
  font-weight: bold;
63
139
  padding: 5px 20px 5px 5px;
64
- color: #333;
140
+ color: <%= @column_color %>;
65
141
  }
66
142
 
67
143
  .active-scaffold .mark_record_column {
@@ -75,22 +151,13 @@ color: #333;
75
151
  position: relative;
76
152
  }
77
153
 
78
- .blue-theme .active-scaffold-header {
79
- background-color: #005CB8;
80
- }
81
-
82
154
  .active-scaffold-header h2 {
83
155
  padding: 2px 0px;
84
156
  margin: 0;
85
- color: #555;
157
+ color: <%= @header_color %>;
86
158
  font: bold 160% arial, sans-serif;
87
159
  }
88
160
 
89
- .blue-theme .active-scaffold-header h2 {
90
- color: #fff;
91
- padding: 2px 5px 4px 5px;
92
- }
93
-
94
161
  .active-scaffold-header div.actions a,
95
162
  .active-scaffold-header div.actions {
96
163
  float: right;
@@ -139,17 +206,8 @@ top: 14px;
139
206
  float: left;
140
207
  }
141
208
 
142
- .blue-theme .active-scaffold-header div.actions a {
143
- color: #fff;
144
- }
145
-
146
209
  .active-scaffold-header div.actions a.disabled {
147
- color: #666;
148
- opacity: 0.5;
149
- }
150
-
151
- .blue-theme .active-scaffold-header div.actions a.disabled {
152
- color: #fff;
210
+ color: <%= @actions_disabled_color %>;
153
211
  opacity: 0.5;
154
212
  }
155
213
 
@@ -176,25 +234,21 @@ background-repeat: no-repeat;
176
234
  }
177
235
 
178
236
  .active-scaffold-header div.actions div.action_group div {
179
- background-image: url(<%= asset_path 'gears.png' %>); /* default icon for actions or override with css */
237
+ background-image: url(<%= asset_path 'active_scaffold/gears.png' %>); /* default icon for actions or override with css */
180
238
  }
181
239
 
182
240
  .active-scaffold-header div.actions a.show_config_list {
183
- background-image: url(<%= asset_path 'config.png' %>);
241
+ background-image: url(<%= asset_path 'active_scaffold/config.png' %>);
184
242
  }
185
243
 
186
244
  .active-scaffold-header div.actions a.new,
187
245
  .active-scaffold-header div.actions a.new_existing {
188
- background-image: url(<%= asset_path 'add.gif' %>);
246
+ background-image: url(<%= asset_path 'active_scaffold/add.gif' %>);
189
247
  }
190
248
 
191
249
  .active-scaffold-header div.actions a.show_search {
192
250
 
193
- background-image: url(<%= asset_path 'magnifier.png' %>);
194
- }
195
-
196
- .blue-theme .active-scaffold-header div.actions a:hover {
197
- background-color: #378CDF;
251
+ background-image: url(<%= asset_path 'active_scaffold/magnifier.png' %>);
198
252
  }
199
253
 
200
254
  .active-scaffold-header div.actions a.disabled:hover {
@@ -213,7 +267,7 @@ text-align: right;
213
267
  ============================= */
214
268
 
215
269
  .active-scaffold th {
216
- background-color: #555;
270
+ background-color: <%= @column_header_bg %>;
217
271
  text-align: left;
218
272
  }
219
273
 
@@ -221,26 +275,26 @@ text-align: left;
221
275
  .active-scaffold th p {
222
276
  font: bold 11px arial, sans-serif;
223
277
  display: block;
224
- background-color: #555;
278
+ background-color: <%= @column_header_bg %>;
225
279
  }
226
280
 
227
281
  .active-scaffold th a, .active-scaffold th a:visited {
228
- color: #fff;
282
+ color: <%= @column_header_link_color %>;
229
283
  padding: 2px 2px 2px 5px;
230
284
  }
231
285
 
232
286
  .active-scaffold th p {
233
- color: #eee;
287
+ color: <%= @column_header_color %>;
234
288
  padding: 2px 5px;
235
289
  }
236
290
 
237
291
  .active-scaffold th a:hover {
238
- background-color: #000;
239
- color: #ff8;
292
+ background-color: <%= @column_header_link_hover_bg %>;
293
+ color: <%= @column_header_link_hover_color %>;
240
294
  }
241
295
 
242
296
  .active-scaffold th.sorted {
243
- background-color: #333;
297
+ background-color: <%= @column_header_sorted_bg %>;
244
298
  }
245
299
 
246
300
  .active-scaffold th.sorted a {
@@ -249,17 +303,17 @@ padding-right: 18px;
249
303
 
250
304
  .active-scaffold th.asc a,
251
305
  .active-scaffold th.asc a:hover {
252
- background: #333 url(<%= asset_path 'arrow_up.gif' %>) right 50% no-repeat;
306
+ background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_up.gif' %>) right 50% no-repeat;
253
307
  }
254
308
 
255
309
  .active-scaffold th.desc a,
256
310
  .active-scaffold th.desc a:hover {
257
- background: #333 url(<%= asset_path 'arrow_down.gif' %>) right 50% no-repeat;
311
+ background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_down.gif' %>) right 50% no-repeat;
258
312
  }
259
313
 
260
314
  .active-scaffold th.loading a,
261
315
  .active-scaffold th.loading a:hover {
262
- background: #333 url(<%= asset_path 'indicator-small.gif' %>) right 50% no-repeat;
316
+ background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/indicator-small.gif' %>) right 50% no-repeat;
263
317
  }
264
318
 
265
319
  .active-scaffold th .mark_heading {
@@ -274,15 +328,15 @@ display: none;
274
328
  ============================= */
275
329
 
276
330
  .active-scaffold tr.record {
277
- background-color: #E6F2FF;
331
+ background-color: <%= @column_bg %>;
278
332
  }
279
333
  .active-scaffold tr.record td {
280
334
  padding: 5px 4px;
281
- color: #333;
335
+ color: <%= @column_color %>;
282
336
  font-family: Verdana, sans-serif;
283
337
  font-size: 11px;
284
- border-bottom: solid 1px #C5DBF7;
285
- border-left: solid 1px #C5DBF7;
338
+ border: solid 1px <%= @column_border_color %>;
339
+ border-width: 0 0 1px 1px;
286
340
  }
287
341
 
288
342
  .active-scaffold tr.record td.messages-container {
@@ -290,24 +344,24 @@ padding: 0px;
290
344
  }
291
345
 
292
346
  .active-scaffold tr.even-record {
293
- background-color: #fff;
347
+ background-color: <%= @column_even_bg %>;
294
348
  }
295
349
  .active-scaffold tr.even-record td {
296
- border-left-color: #ddd;
350
+ border-left-color: <%= @column_even_border_color %>;
297
351
  }
298
352
 
299
353
  .active-scaffold tr.record td.sorted {
300
- background-color: #B9DCFF;
301
- border-bottom-color: #AFD0F5;
354
+ background-color: <%= @column_sorted_bg %>;
355
+ border-bottom-color: <%= @column_sorted_border_color %>;
302
356
  }
303
357
 
304
358
  .active-scaffold tr.even-record td.sorted {
305
- background-color: #E6F2FF;
306
- border-bottom-color: #AFD0F5;
359
+ background-color: <%= @column_even_sorted_bg %>;
360
+ border-bottom-color: <%= @column_even_sorted_border_color %>;
307
361
  }
308
362
 
309
363
  .active-scaffold tbody.records td.empty {
310
- color: #999;
364
+ color: <%= @column_empty_color %>;
311
365
  text-align: center;
312
366
  }
313
367
 
@@ -319,7 +373,7 @@ text-align: right;
319
373
  /* Table :: Actions (Edit, Delete)
320
374
  ============================= */
321
375
  .active-scaffold tr.record td.actions {
322
- border-right: solid 1px #ccc;
376
+ border-right: solid 1px <%= @column_actions_border_color %>;
323
377
  padding: 0;
324
378
  min-width: 1%;
325
379
  }
@@ -347,22 +401,22 @@ white-space: nowrap;
347
401
  }
348
402
 
349
403
  .active-scaffold tr.record td.actions a.disabled {
350
- color: #666;
404
+ color: <%= @actions_disabled_color %>;
351
405
  opacity: 0.5;
352
406
  }
353
407
 
354
408
  .active-scaffold .actions .action_group div:hover {
355
- background-color: #ff8;
409
+ background-color: <%= @action_group_hover_bg %>;
356
410
  }
357
411
 
358
412
  .active-scaffold .actions .action_group {
359
413
  position: relative;
360
414
  text-align: left;
361
- color: #0066CC;
415
+ color: <%= @action_group_color %>;
362
416
  }
363
417
 
364
418
  .active-scaffold .actions .action_group ul {
365
- border: 2px solid #005CB8;
419
+ border: 2px solid <%= @action_group_border_color %>;
366
420
  list-style-type: none;
367
421
  margin: 0;
368
422
  padding: 0;
@@ -381,8 +435,8 @@ right: 150px;
381
435
  }
382
436
 
383
437
  .active-scaffold .actions .action_group ul li {
384
- background: none repeat scroll 0 0 #EEE;
385
- border-top: 1px dashed #222;
438
+ background: none repeat scroll 0 0 <%= @action_group_items_bg %>;
439
+ border-top: 1px dashed <%= @action_group_items_border_color %>;
386
440
  display: block;
387
441
  position: relative;
388
442
  width: auto;
@@ -398,7 +452,7 @@ z-index: 2;
398
452
 
399
453
  .active-scaffold .actions .action_group ul li a {
400
454
  display: block;
401
- color: #333;
455
+ color: <%= @action_group_link_color %>;
402
456
  margin: 0;
403
457
  padding: 5px 5px 5px 25px;
404
458
  background-position: 5px 50%;
@@ -406,7 +460,7 @@ z-index: 2;
406
460
  }
407
461
 
408
462
  .active-scaffold .actions .action_group ul li.top {
409
- border-top: 0px solid #005CB8;
463
+ border-top-width: 0px;
410
464
  }
411
465
 
412
466
  .active-scaffold .actions .action_group:hover ul ul,
@@ -424,9 +478,9 @@ display: block;
424
478
  ============================= */
425
479
 
426
480
  .active-scaffold .view {
427
- background-color: #DAFFCD;
481
+ background-color: <%= @nested_bg %>;
428
482
  padding: 4px;
429
- border: solid 1px #7FcF00;
483
+ border: solid 1px <%= @nested_border_color %>;
430
484
  }
431
485
 
432
486
  .active-scaffold tbody.records td.inline-adapter-cell .view {
@@ -442,19 +496,12 @@ float: right;
442
496
  text-indent: -4000px;
443
497
  width: 16px;
444
498
  height: 17px;
445
- background: url(<%= asset_path 'close.gif' %>) 0 0 no-repeat;
499
+ background: url(<%= asset_path 'active_scaffold/close.gif' %>) 0 0 no-repeat;
446
500
  }
447
501
 
448
502
  /* Nested
449
503
  ======================== */
450
504
 
451
- .blue-theme .active-scaffold .active-scaffold-header,
452
- .blue-theme .active-scaffold .active-scaffold-footer {
453
- background-color: #1F7F00;
454
-
455
- background: transparent;
456
- }
457
-
458
505
  .active-scaffold .active-scaffold .active-scaffold-header {
459
506
  margin-right: 25px;
460
507
  }
@@ -464,9 +511,8 @@ font-size: 12px;
464
511
  font-weight: bold;
465
512
  }
466
513
 
467
- .blue-theme .active-scaffold .active-scaffold-header h2,
468
514
  .active-scaffold .active-scaffold .active-scaffold-footer {
469
- color: #444;
515
+ color: <%= @nested_footer_color %>;
470
516
  }
471
517
 
472
518
  .active-scaffold .active-scaffold .active-scaffold-header div.actions {
@@ -479,15 +525,6 @@ right: 0px;
479
525
  font: bold 11px verdana, sans-serif;
480
526
  }
481
527
 
482
- .blue-theme .active-scaffold .active-scaffold-header div.actions a,
483
- .blue-theme .active-scaffold .active-scaffold-header div.actions a:visited {
484
- color: #06c;
485
- }
486
-
487
- .blue-theme .active-scaffold .active-scaffold-header div.actions a:hover {
488
- background-color: #ff8;
489
- }
490
-
491
528
  .active-scaffold .active-scaffold .view {
492
529
  background-color: transparent;
493
530
  padding: 0px;
@@ -495,22 +532,22 @@ border: none;
495
532
  }
496
533
 
497
534
  .active-scaffold .active-scaffold td {
498
- background-color: #ECFFE7;
499
- border-bottom: solid 1px #CDF7C5;
500
- border-left: solid 1px #CDF7C5;
535
+ background-color: <%= @nested_column_bg %>;
536
+ border-bottom: solid 1px <%= @nested_column_border_color %>;
537
+ border-left: solid 1px <%= @nested_column_border_color %>;
501
538
  }
502
539
 
503
540
  .active-scaffold .active-scaffold td.inline-adapter-cell {
504
- background-color: #FFFFBB;
541
+ background-color: <%= @second_nested_bg %>;
505
542
  padding: 4px;
506
- border: solid 1px #DDDF37;
543
+ border: solid 1px <%= @second_nested_border_color %>;
507
544
  border-top: none;
508
545
  }
509
546
 
510
547
  .active-scaffold .active-scaffold .active-scaffold td.inline-adapter-cell {
511
- background-color: #DAFFCD;
548
+ background-color: <%= @third_nested_bg %>;
512
549
  padding: 4px;
513
- border: solid 1px #7FcF00;
550
+ border: solid 1px <%= @third_nested_border_color %>;
514
551
  border-top: none;
515
552
  }
516
553
 
@@ -522,8 +559,8 @@ font-size: 11px;
522
559
  ========================== */
523
560
 
524
561
  .active-scaffold-calculations td {
525
- background-color: #eee;
526
- border-top: 2px solid #005CB8;
562
+ background-color: <%= @calculations_bg %>;
563
+ border-top: 2px solid <%= @calculations_border_color %>;
527
564
  font: bold 12px arial, sans-serif;
528
565
  }
529
566
 
@@ -533,21 +570,12 @@ border-bottom: none;
533
570
  font: bold 12px arial, sans-serif;
534
571
  }
535
572
 
536
- .blue-theme .active-scaffold-footer {
537
- background-color: #005CB8;
538
- color: #ccc;
539
- }
540
-
541
573
  .active-scaffold-footer .active-scaffold-pagination {
542
574
  float: right;
543
575
  white-space: nowrap;
544
576
  margin-right: 5px;
545
577
  }
546
578
 
547
- .blue-theme .active-scaffold-footer .active-scaffold-records {
548
- margin-left: 5px;
549
- }
550
-
551
579
  .active-scaffold-footer a {
552
580
  text-decoration: none;
553
581
  letter-spacing: 0;
@@ -556,25 +584,16 @@ margin: 0 -2px;
556
584
  font: bold 12px arial, sans-serif;
557
585
  }
558
586
 
559
- .blue-theme .active-scaffold-footer a,
560
- .blue-theme .active-scaffold-footer a:visited {
561
- color: #fff;
562
- }
563
-
564
- .blue-theme .active-scaffold-footer a:hover {
565
- background-color: #378CDF;
566
- }
567
-
568
587
  .active-scaffold-footer .next {
569
588
  margin-left: 0;
570
589
  padding-left: 5px;
571
- border-left: solid 1px #ccc;
590
+ border-left: solid 1px <%= @pagination_border_color %>;
572
591
  }
573
592
 
574
593
  .active-scaffold-footer .previous {
575
594
  margin-right: 0;
576
595
  padding-right: 5px;
577
- border-right: solid 1px #ccc;
596
+ border-right: solid 1px <%= @pagination_border_color %>;
578
597
  }
579
598
 
580
599
  /* Messages
@@ -588,17 +607,17 @@ border: none;
588
607
  }
589
608
 
590
609
  .active-scaffold .empty-message, .active-scaffold .filtered-message {
591
- background-color: #e8e8e8;
610
+ background-color: <%= @msg_filtered_bg %>;
592
611
  padding: 4px;
593
612
  text-align: center;
594
- color: #666;
613
+ color: <%= @msg_filtered_color %>;
595
614
  }
596
615
 
597
616
  .active-scaffold .message {
598
617
  font-size: 11px;
599
618
  font-weight: bold;
600
619
  padding: 5px 20px 5px 5px;
601
- color: #333;
620
+ color: <%= @msg_color %>;
602
621
  position: relative;
603
622
  margin: 2px 7px;
604
623
  line-height: 12px;
@@ -618,27 +637,27 @@ margin: 0;
618
637
  }
619
638
 
620
639
  .active-scaffold .error-message {
621
- border-left: solid 5px #f66;
622
- background-color: #fbb;
640
+ border-left: solid 5px <%= @msg_error_border_color %>;
641
+ background-color: <%= @msg_error_bg %>;
623
642
  }
624
643
 
625
644
  .active-scaffold .warning-message {
626
- border-left: solid 5px #ff6;
627
- background-color: #ffb;
645
+ border-left: solid 5px <%= @msg_warning_border_color %>;
646
+ background-color: <%= @msg_warning_bg %>;
628
647
  }
629
648
 
630
649
  .active-scaffold .info-message {
631
- border-left: solid 5px #66f;
632
- background-color: #bbf;
650
+ border-left: solid 5px <%= @msg_info_border_color %>;
651
+ background-color: <%= @msg_info_bg %>;
633
652
  }
634
653
 
635
654
  /* Error Styling
636
655
  ========================== */
637
656
 
638
657
  .active-scaffold .errorExplanation {
639
- background-color: #fcc;
658
+ background-color: <%= @msg_error_bg %>;
640
659
  margin: 2px 0;
641
- border: solid 1px #f66;
660
+ border: solid 1px <%= @msg_error_border_color %>;
642
661
  }
643
662
 
644
663
  .active-scaffold fieldset {
@@ -647,12 +666,12 @@ clear: both;
647
666
 
648
667
  .active-scaffold .errorExplanation h2 {
649
668
  padding: 2px 5px;
650
- color: #333;
669
+ color: <%= @msg_color %>;
651
670
  font-size: 11px;
652
671
  margin: 0;
653
672
  letter-spacing: 0;
654
673
  font-family: Verdana;
655
- background-color: #f66;
674
+ background-color: <%= @msg_error_border_color %>;
656
675
  }
657
676
 
658
677
  .active-scaffold .errorExplanation ul {
@@ -704,7 +723,7 @@ width: 12em;
704
723
  float: left;
705
724
  clear: left;
706
725
  font: normal 11px verdana, sans-serif;
707
- color: #555;
726
+ color: <%= @label_color %>;
708
727
  line-height: 16px;
709
728
  }
710
729
 
@@ -744,7 +763,7 @@ border: none;
744
763
  padding: 2px;
745
764
  margin: 0;
746
765
  text-transform: none;
747
- color: #1F7F00;
766
+ color: <%= @form_title_color %>;
748
767
  letter-spacing: -1px;
749
768
  font: bold 16px arial;
750
769
  }
@@ -783,7 +802,7 @@ clear: both;
783
802
 
784
803
  .active-scaffold label {
785
804
  font: normal 11px verdana, sans-serif;
786
- color: #555;
805
+ color: <%= @label_color %>;
787
806
  }
788
807
 
789
808
  .active-scaffold li.form-element dt {
@@ -808,7 +827,7 @@ margin: 0;
808
827
 
809
828
  .active-scaffold .description {
810
829
  display: inline-block;
811
- color: #999;
830
+ color: <%= @description_color %>;
812
831
  font-size: 10px;
813
832
  margin-left: 5px;
814
833
  }
@@ -820,14 +839,14 @@ font-weight: bold;
820
839
  .active-scaffold label.example {
821
840
  font-size: 11px;
822
841
  font-family: arial;
823
- color: #888;
842
+ color: <%= @placeholder_color %>;
824
843
  }
825
844
 
826
845
  .active-scaffold input.text-input,
827
846
  .active-scaffold select {
828
847
  font: bold 16px arial;
829
848
  letter-spacing: -1px;
830
- border: solid 1px #1F7F00;
849
+ border: solid 1px <%= @input_border_color %>;
831
850
  }
832
851
 
833
852
  .active-scaffold input.text-input {
@@ -840,7 +859,7 @@ padding: 2px;
840
859
  .active-scaffold .field_with_errors textarea,
841
860
  .active-scaffold .fieldWithErrors select,
842
861
  .active-scaffold .field_with_errors select {
843
- border: solid 1px #f00;
862
+ border: solid 1px <%= @input_error_border_color %>;
844
863
  }
845
864
 
846
865
  .active-scaffold select {
@@ -848,19 +867,19 @@ padding: 1px;
848
867
  }
849
868
 
850
869
  .active-scaffold input.example {
851
- color: #aaa;
870
+ color: <%= @placeholder_color %>;
852
871
  }
853
872
 
854
873
  .active-scaffold select:focus,
855
874
  .active-scaffold input.text-input:focus {
856
- background-color: #ffc;
875
+ background-color: <%= @input_focus_bg %>;
857
876
  }
858
877
 
859
878
  .active-scaffold textarea {
860
879
  font-family: Arial, sans-serif;
861
880
  font-size: 12px;
862
881
  padding: 1px;
863
- border: solid 1px #1F7F00;
882
+ border: solid 1px <%= @input_border_color %>;
864
883
  }
865
884
 
866
885
  .active-scaffold .checkbox-list {
@@ -883,7 +902,7 @@ margin-right: 15px;
883
902
  min-height: 30px;
884
903
  max-height: 100px;
885
904
  overflow: auto;
886
- background-color: #FFFF88;
905
+ background-color: <%= @draggable_list_bg %>;
887
906
  }
888
907
 
889
908
  .active-scaffold .draggable-list.hover {
@@ -891,7 +910,7 @@ opacity: 0.5;
891
910
  }
892
911
 
893
912
  .active-scaffold .draggable-list.selected {
894
- background-color: #7FCF00;
913
+ background-color: <%= @draggable_list_selected_bg %>;
895
914
  }
896
915
 
897
916
  .active-scaffold .draggable-list li {
@@ -936,7 +955,7 @@ background: none;
936
955
 
937
956
  .active-scaffold .sub-form table th {
938
957
  font: normal 10px verdana, sans-serif;
939
- color: #555;
958
+ color: <%= @subform_header_color %>;
940
959
  padding: 0 5px 0 1px;
941
960
  background: none;
942
961
  }
@@ -947,8 +966,8 @@ display: none;
947
966
 
948
967
  .active-scaffold .sub-form .checkbox-list {
949
968
  padding: 0 2px 2px 2px;
950
- background-color: #fff;
951
- border: solid 1px #1F7F00;
969
+ background-color: <%= @checkbox_list_bg %>;
970
+ border: solid 1px <%= @input_border_color %>;
952
971
  }
953
972
 
954
973
  .active-scaffold .sub-form .checkbox-list label {
@@ -960,7 +979,7 @@ border: none;
960
979
  background-color: transparent;
961
980
  padding: 1px;
962
981
  vertical-align: top;
963
- color: #999;
982
+ color: <%= @subform_color %>;
964
983
  }
965
984
 
966
985
  .active-scaffold .sub-form .actions {
@@ -976,7 +995,7 @@ height: 16px;
976
995
  padding: 0;
977
996
  width: 16px;
978
997
  text-indent: -4000px;
979
- background: url(<%= asset_path 'cross.png' %>) 0 0 no-repeat;
998
+ background: url(<%= asset_path 'active_scaffold/cross.png' %>) 0 0 no-repeat;
980
999
  }
981
1000
 
982
1001
  .active-scaffold .sub-form .locked a.destroy {
@@ -999,7 +1018,7 @@ margin-right: 10px;
999
1018
  }
1000
1019
 
1001
1020
  .active-scaffold .sub-form .footer {
1002
- color: #999;
1021
+ color: <%= @subform_footer_color %>;
1003
1022
  padding: 3px 5px;
1004
1023
  }
1005
1024
 
@@ -1021,7 +1040,7 @@ font-size: 100%;
1021
1040
  .as_touch a.inline-adapter-close {
1022
1041
  width: 25px;
1023
1042
  height: 27px;
1024
- background: url(<%= asset_path 'close_touch.png' %>) 0 0 no-repeat;
1043
+ background: url(<%= asset_path 'active_scaffold/close_touch.png' %>) 0 0 no-repeat;
1025
1044
  }
1026
1045
 
1027
1046
  .as_touch .as_paginate {
@@ -1089,7 +1108,7 @@ line-height: 130%;
1089
1108
  }
1090
1109
 
1091
1110
  .as_touch th a, .as_touch th a:visited {
1092
- color: #fff;
1111
+ color: <%= @column_header_link_color %>;
1093
1112
  padding: 5px 2px 5px 5px;
1094
1113
  }
1095
1114