active_scaffold 3.1.19 → 3.1.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,1117 +5,7 @@
5
5
  ActiveScaffold is freely distributable under the terms of an MIT-style license.
6
6
 
7
7
  For details, see the ActiveScaffold web site: http://www.activescaffold.com/
8
-
8
+ *= require active_scaffold_layout
9
+ *= require active_scaffold_default
9
10
  */
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
- %>
86
-
87
- .active-scaffold form,
88
- .active-scaffold table,
89
- .active-scaffold p,
90
- .active-scaffold div,
91
- .active-scaffold fieldset {
92
- margin: 0;
93
- padding: 0;
94
- }
95
-
96
- .active-scaffold {
97
- margin: 5px 0;
98
- }
99
-
100
- .active-scaffold table {
101
- width: 100%;
102
- border-collapse: separate;
103
- }
104
-
105
- .active-scaffold a,
106
- .active-scaffold a:visited {
107
- color: <%= @link_color %>;
108
- text-decoration: none;
109
- }
110
-
111
- .active-scaffold a.disabled {
112
- color: <%= @disabled_color %>;
113
- }
114
-
115
- .active-scaffold a:hover, .active-scaffold div.hover, .active-scaffold td span.hover {
116
- background-color: <%= @hover_bg %>;
117
- }
118
-
119
- .active-scaffold div.actions a img,
120
- .active-scaffold td.actions a img {
121
- border: none;
122
- vertical-align: middle;
123
- }
124
-
125
- .active-scaffold div.actions a.disabled img,
126
- .active-scaffold td.actions a.disabled img {
127
- opacity: 0.5;
128
- }
129
-
130
- .active-scaffold .clear-fix {
131
- clear: both;
132
- }
133
-
134
- noscript.active-scaffold {
135
- border-left: solid 5px <%= @msg_error_border_color %>;
136
- background-color: <%= @msg_error_bg %>;
137
- font-size: 11px;
138
- font-weight: bold;
139
- padding: 5px 20px 5px 5px;
140
- color: <%= @column_color %>;
141
- }
142
-
143
- .active-scaffold .mark_record_column {
144
- width: 1px;
145
- }
146
-
147
- /* Header
148
- ======================== */
149
-
150
- .active-scaffold-header {
151
- position: relative;
152
- }
153
-
154
- .active-scaffold-header h2 {
155
- padding: 2px 0px;
156
- margin: 0;
157
- color: <%= @header_color %>;
158
- font: bold 160% arial, sans-serif;
159
- }
160
-
161
- .active-scaffold-header div.actions a,
162
- .active-scaffold-header div.actions {
163
- float: right;
164
- font: bold 14px arial;
165
- letter-spacing: -1px;
166
- text-decoration: none;
167
- padding: 1px 2px;
168
- white-space: nowrap;
169
- margin-left: 5px;
170
- background-position: 1px 50%;
171
- background-repeat: no-repeat;
172
- }
173
-
174
- .active-scaffold-header div.actions a {
175
- padding: 5px 5px;
176
- margin-left: 0px;
177
- }
178
-
179
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a {
180
- padding: 1px 5px;
181
- }
182
-
183
- .active-scaffold-header div.actions div.action_group {
184
- display: inline;
185
- float: right;
186
- }
187
-
188
- .active-scaffold-header div.actions div.action_group li a,
189
- .active-scaffold-header div.actions div.action_group li div {
190
- float: none;
191
- margin: 0;
192
- }
193
-
194
- .active-scaffold-header div.actions .action_group ul {
195
- line-height: 130%;
196
- top: 19px;
197
- }
198
-
199
- .active-scaffold .active-scaffold .active-scaffold-header div.actions .action_group ul {
200
- top: 14px;
201
- }
202
-
203
- .view .active-scaffold-header div.actions a,
204
- .view .active-scaffold-header div.actions div,
205
- .view .active-scaffold-header div.actions div.action_group {
206
- float: left;
207
- }
208
-
209
- .active-scaffold-header div.actions a.disabled {
210
- color: <%= @actions_disabled_color %>;
211
- opacity: 0.5;
212
- }
213
-
214
- .active-scaffold-header div.actions a.new,
215
- .active-scaffold-header div.actions a.new_existing,
216
- .active-scaffold-header div.actions a.show_search,
217
- .active-scaffold-header div.actions a.show_config_list,
218
- .active-scaffold-header div.actions div.action_group div {
219
- margin:0;
220
- padding: 5px 5px 5px 25px;
221
- background-position: 5px 50%;
222
- background-repeat: no-repeat;
223
- }
224
-
225
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.new,
226
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.new_existing,
227
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.show_search,
228
- .active-scaffold .active-scaffold .active-scaffold-header div.actions > a.show_config_list,
229
- .active-scaffold .active-scaffold .active-scaffold-header div.actions div.action_group > div {
230
- margin:0;
231
- padding: 1px 5px 1px 20px;
232
- background-position: 1px 50%;
233
- background-repeat: no-repeat;
234
- }
235
-
236
- .active-scaffold-header div.actions div.action_group div {
237
- background-image: url(<%= asset_path 'active_scaffold/gears.png' %>); /* default icon for actions or override with css */
238
- }
239
-
240
- .active-scaffold-header div.actions a.show_config_list {
241
- background-image: url(<%= asset_path 'active_scaffold/config.png' %>);
242
- }
243
-
244
- .active-scaffold-header div.actions a.new,
245
- .active-scaffold-header div.actions a.new_existing {
246
- background-image: url(<%= asset_path 'active_scaffold/add.gif' %>);
247
- }
248
-
249
- .active-scaffold-header div.actions a.show_search {
250
-
251
- background-image: url(<%= asset_path 'active_scaffold/magnifier.png' %>);
252
- }
253
-
254
- .active-scaffold-header div.actions a.disabled:hover {
255
- background-color: transparent;
256
- cursor: default;
257
- }
258
-
259
- .active-scaffold-header div.actions {
260
- position: absolute;
261
- right: 5px;
262
- top: 5px;
263
- text-align: right;
264
- }
265
-
266
- /* Table :: Column Headers
267
- ============================= */
268
-
269
- .active-scaffold th {
270
- background-color: <%= @column_header_bg %>;
271
- text-align: left;
272
- }
273
-
274
- .active-scaffold th a,
275
- .active-scaffold th p {
276
- font: bold 11px arial, sans-serif;
277
- display: block;
278
- background-color: <%= @column_header_bg %>;
279
- }
280
-
281
- .active-scaffold th a, .active-scaffold th a:visited {
282
- color: <%= @column_header_link_color %>;
283
- padding: 2px 2px 2px 5px;
284
- }
285
-
286
- .active-scaffold th p {
287
- color: <%= @column_header_color %>;
288
- padding: 2px 5px;
289
- }
290
-
291
- .active-scaffold th a:hover {
292
- background-color: <%= @column_header_link_hover_bg %>;
293
- color: <%= @column_header_link_hover_color %>;
294
- }
295
-
296
- .active-scaffold th.sorted {
297
- background-color: <%= @column_header_sorted_bg %>;
298
- }
299
-
300
- .active-scaffold th.sorted a {
301
- padding-right: 18px;
302
- }
303
-
304
- .active-scaffold th.asc a,
305
- .active-scaffold th.asc a:hover {
306
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_up.gif' %>) right 50% no-repeat;
307
- }
308
-
309
- .active-scaffold th.desc a,
310
- .active-scaffold th.desc a:hover {
311
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/arrow_down.gif' %>) right 50% no-repeat;
312
- }
313
-
314
- .active-scaffold th.loading a,
315
- .active-scaffold th.loading a:hover {
316
- background: <%= @column_header_sorted_bg %> url(<%= asset_path 'active_scaffold/indicator-small.gif' %>) right 50% no-repeat;
317
- }
318
-
319
- .active-scaffold th .mark_heading {
320
- margin-left: 5px;
321
- }
322
-
323
- .active-scaffold th.hidden, .active-scaffold td.hidden {
324
- display: none;
325
- }
326
-
327
- /* Table :: Record Rows
328
- ============================= */
329
-
330
- .active-scaffold tr.record {
331
- background-color: <%= @column_bg %>;
332
- }
333
- .active-scaffold tr.record td {
334
- padding: 5px 4px;
335
- color: <%= @column_color %>;
336
- font-family: Verdana, sans-serif;
337
- font-size: 11px;
338
- border: solid 1px <%= @column_border_color %>;
339
- border-width: 0 0 1px 1px;
340
- }
341
-
342
- .active-scaffold tr.record td.messages-container {
343
- padding: 0px;
344
- }
345
-
346
- .active-scaffold tr.even-record {
347
- background-color: <%= @column_even_bg %>;
348
- }
349
- .active-scaffold tr.even-record td {
350
- border-left-color: <%= @column_even_border_color %>;
351
- }
352
-
353
- .active-scaffold tr.record td.sorted {
354
- background-color: <%= @column_sorted_bg %>;
355
- border-bottom-color: <%= @column_sorted_border_color %>;
356
- }
357
-
358
- .active-scaffold tr.even-record td.sorted {
359
- background-color: <%= @column_even_sorted_bg %>;
360
- border-bottom-color: <%= @column_even_sorted_border_color %>;
361
- }
362
-
363
- .active-scaffold tbody.records td.empty {
364
- color: <%= @column_empty_color %>;
365
- text-align: center;
366
- }
367
-
368
- .active-scaffold td.numeric,
369
- .active-scaffold-calculations td {
370
- text-align: right;
371
- }
372
-
373
- /* Table :: Actions (Edit, Delete)
374
- ============================= */
375
- .active-scaffold tr.record td.actions {
376
- border-right: solid 1px <%= @column_actions_border_color %>;
377
- padding: 0;
378
- min-width: 1%;
379
- }
380
-
381
- .active-scaffold tr.record td.actions table {
382
- float: right;
383
- width: auto;
384
- margin-right: 5px;
385
- }
386
-
387
- .active-scaffold tr.record td.actions table td {
388
- border: none;
389
- text-align: right;
390
- padding: 0 2px;
391
- }
392
-
393
- .active-scaffold tr.record td.actions a,
394
- .active-scaffold tr.record td.actions div {
395
- font: bold 11px verdana, sans-serif;
396
- letter-spacing: -1px;
397
- padding: 2px;
398
- margin: 0 2px;
399
- line-height: 16px;
400
- white-space: nowrap;
401
- }
402
-
403
- .active-scaffold tr.record td.actions a.disabled {
404
- color: <%= @actions_disabled_color %>;
405
- opacity: 0.5;
406
- }
407
-
408
- .active-scaffold .actions .action_group div:hover {
409
- background-color: <%= @action_group_hover_bg %>;
410
- }
411
-
412
- .active-scaffold .actions .action_group {
413
- position: relative;
414
- text-align: left;
415
- color: <%= @action_group_color %>;
416
- }
417
-
418
- .active-scaffold .actions .action_group ul {
419
- border: 2px solid <%= @action_group_border_color %>;
420
- list-style-type: none;
421
- margin: 0;
422
- padding: 0;
423
- position: absolute;
424
- line-height: 200%;
425
- display: none;
426
- width: 150px;
427
- right: 0px;
428
- }
429
-
430
- .active-scaffold .actions .action_group ul ul {
431
- display: none;
432
- position: absolute;
433
- top: 0;
434
- right: 150px;
435
- }
436
-
437
- .active-scaffold .actions .action_group ul li {
438
- background: none repeat scroll 0 0 <%= @action_group_items_bg %>;
439
- border-top: 1px dashed <%= @action_group_items_border_color %>;
440
- display: block;
441
- position: relative;
442
- width: auto;
443
- z-index: 2;
444
- }
445
-
446
- .active-scaffold .actions .action_group ul li div {
447
- margin: 0;
448
- padding: 5px 5px 5px 25px;
449
- background-position: 5px 50%;
450
- background-repeat: no-repeat;
451
- }
452
-
453
- .active-scaffold .actions .action_group ul li a {
454
- display: block;
455
- color: <%= @action_group_link_color %>;
456
- margin: 0;
457
- padding: 5px 5px 5px 25px;
458
- background-position: 5px 50%;
459
- background-repeat: no-repeat;
460
- }
461
-
462
- .active-scaffold .actions .action_group ul li.top {
463
- border-top-width: 0px;
464
- }
465
-
466
- .active-scaffold .actions .action_group:hover ul ul,
467
- .active-scaffold .actions .action_group:hover ul ul ul {
468
- display: none;
469
- }
470
-
471
- .active-scaffold .actions .action_group:hover ul,
472
- .active-scaffold .actions .action_group ul li:hover > ul,
473
- .active-scaffold .actions .action_group ul ul li:hover ul {
474
- display: block;
475
- }
476
-
477
- /* Table :: Inline Adapter
478
- ============================= */
479
-
480
- .active-scaffold .view {
481
- background-color: <%= @nested_bg %>;
482
- padding: 4px;
483
- border: solid 1px <%= @nested_border_color %>;
484
- }
485
-
486
- .active-scaffold tbody.records td.inline-adapter-cell .view {
487
- border-top: none;
488
- }
489
-
490
- .active-scaffold .before-header td.inline-adapter-cell .view {
491
- border-bottom: none;
492
- }
493
-
494
- .active-scaffold a.inline-adapter-close {
495
- float: right;
496
- text-indent: -4000px;
497
- width: 16px;
498
- height: 17px;
499
- background: url(<%= asset_path 'active_scaffold/close.gif' %>) 0 0 no-repeat;
500
- }
501
-
502
- /* Nested
503
- ======================== */
504
-
505
- .active-scaffold .active-scaffold .active-scaffold-header {
506
- margin-right: 25px;
507
- }
508
-
509
- .active-scaffold .active-scaffold .active-scaffold-header h2 {
510
- font-size: 12px;
511
- font-weight: bold;
512
- }
513
-
514
- .active-scaffold .active-scaffold .active-scaffold-footer {
515
- color: <%= @nested_footer_color %>;
516
- }
517
-
518
- .active-scaffold .active-scaffold .active-scaffold-header div.actions {
519
- top: 0px;
520
- right: 0px;
521
- }
522
-
523
- .active-scaffold .active-scaffold .active-scaffold-header div.actions a,
524
- .active-scaffold .active-scaffold .active-scaffold-header div.actions div {
525
- font: bold 11px verdana, sans-serif;
526
- }
527
-
528
- .active-scaffold .active-scaffold .view {
529
- background-color: transparent;
530
- padding: 0px;
531
- border: none;
532
- }
533
-
534
- .active-scaffold .active-scaffold td {
535
- background-color: <%= @nested_column_bg %>;
536
- border-bottom: solid 1px <%= @nested_column_border_color %>;
537
- border-left: solid 1px <%= @nested_column_border_color %>;
538
- }
539
-
540
- .active-scaffold .active-scaffold td.inline-adapter-cell {
541
- background-color: <%= @second_nested_bg %>;
542
- padding: 4px;
543
- border: solid 1px <%= @second_nested_border_color %>;
544
- border-top: none;
545
- }
546
-
547
- .active-scaffold .active-scaffold .active-scaffold td.inline-adapter-cell {
548
- background-color: <%= @third_nested_bg %>;
549
- padding: 4px;
550
- border: solid 1px <%= @third_nested_border_color %>;
551
- border-top: none;
552
- }
553
-
554
- .active-scaffold .active-scaffold .active-scaffold-footer {
555
- font-size: 11px;
556
- }
557
-
558
- /* Footer
559
- ========================== */
560
-
561
- .active-scaffold-calculations td {
562
- background-color: <%= @calculations_bg %>;
563
- border-top: 2px solid <%= @calculations_border_color %>;
564
- font: bold 12px arial, sans-serif;
565
- }
566
-
567
- .active-scaffold .active-scaffold-footer {
568
- padding: 3px 0px 2px 0px;
569
- border-bottom: none;
570
- font: bold 12px arial, sans-serif;
571
- }
572
-
573
- .active-scaffold-footer .active-scaffold-pagination {
574
- float: right;
575
- white-space: nowrap;
576
- margin-right: 5px;
577
- }
578
-
579
- .active-scaffold-footer a {
580
- text-decoration: none;
581
- letter-spacing: 0;
582
- padding: 0 2px;
583
- margin: 0 -2px;
584
- font: bold 12px arial, sans-serif;
585
- }
586
-
587
- .active-scaffold-footer .next {
588
- margin-left: 0;
589
- padding-left: 5px;
590
- border-left: solid 1px <%= @pagination_border_color %>;
591
- }
592
-
593
- .active-scaffold-footer .previous {
594
- margin-right: 0;
595
- padding-right: 5px;
596
- border-right: solid 1px <%= @pagination_border_color %>;
597
- }
598
-
599
- /* Messages
600
- ========================= */
601
-
602
- .active-scaffold .messages-container,
603
- .active-scaffold .active-scaffold .messages-container{
604
- padding: 0;
605
- margin: 0 7px;
606
- border: none;
607
- }
608
-
609
- .active-scaffold .empty-message, .active-scaffold .filtered-message {
610
- background-color: <%= @msg_filtered_bg %>;
611
- padding: 4px;
612
- text-align: center;
613
- color: <%= @msg_filtered_color %>;
614
- }
615
-
616
- .active-scaffold .message {
617
- font-size: 11px;
618
- font-weight: bold;
619
- padding: 5px 20px 5px 5px;
620
- color: <%= @msg_color %>;
621
- position: relative;
622
- margin: 2px 7px;
623
- line-height: 12px;
624
- }
625
-
626
- .active-scaffold .message a {
627
- position: absolute;
628
- right: 10px;
629
- top: 4px;
630
- padding: 0;
631
- font: bold 11px verdana, sans-serif;
632
- letter-spacing: -1px;
633
- }
634
-
635
- .active-scaffold .messages-container .message {
636
- margin: 0;
637
- }
638
-
639
- .active-scaffold .error-message {
640
- border-left: solid 5px <%= @msg_error_border_color %>;
641
- background-color: <%= @msg_error_bg %>;
642
- }
643
-
644
- .active-scaffold .warning-message {
645
- border-left: solid 5px <%= @msg_warning_border_color %>;
646
- background-color: <%= @msg_warning_bg %>;
647
- }
648
-
649
- .active-scaffold .info-message {
650
- border-left: solid 5px <%= @msg_info_border_color %>;
651
- background-color: <%= @msg_info_bg %>;
652
- }
653
-
654
- /* Error Styling
655
- ========================== */
656
-
657
- .active-scaffold .errorExplanation {
658
- background-color: <%= @msg_error_bg %>;
659
- margin: 2px 0;
660
- border: solid 1px <%= @msg_error_border_color %>;
661
- }
662
-
663
- .active-scaffold fieldset {
664
- clear: both;
665
- }
666
-
667
- .active-scaffold .errorExplanation h2 {
668
- padding: 2px 5px;
669
- color: <%= @msg_color %>;
670
- font-size: 11px;
671
- margin: 0;
672
- letter-spacing: 0;
673
- font-family: Verdana;
674
- background-color: <%= @msg_error_border_color %>;
675
- }
676
-
677
- .active-scaffold .errorExplanation ul {
678
- margin: 0;
679
- padding: 0 2px 4px 25px;
680
- list-style: disc;
681
- }
682
-
683
- .active-scaffold .errorExplanation p {
684
- font-size: 11px;
685
- padding: 2px 5px;
686
- font-family: Verdana;
687
- margin: 0;
688
- }
689
-
690
- .active-scaffold .errorExplanation ul li {
691
- font: bold 11px verdana;
692
- letter-spacing: -1px;
693
- margin: 0;
694
- padding: 0;
695
- background-color: transparent;
696
- }
697
-
698
- /* Loading Indicators
699
- ============================== */
700
-
701
- .active-scaffold .loading-indicator {
702
- vertical-align: text-bottom;
703
- width: 16px;
704
- margin: 0;
705
- }
706
-
707
- .active-scaffold .active-scaffold-header .loading-indicator {
708
- margin-top: 3px;
709
- }
710
-
711
- /* Show
712
- ============================= */
713
-
714
- .active-scaffold .show-view dl {
715
- margin-left: 5px;
716
- }
717
- .active-scaffold .show-view dl dl {
718
- margin-left: 0px;
719
- }
720
-
721
- .active-scaffold .show-view dt {
722
- width: 12em;
723
- float: left;
724
- clear: left;
725
- font: normal 11px verdana, sans-serif;
726
- color: <%= @label_color %>;
727
- line-height: 16px;
728
- }
729
-
730
- .active-scaffold .show-view dd {
731
- float: left;
732
- font: bold 14px arial;
733
- padding-left: 5px;
734
- margin-bottom: 5px;
735
- }
736
-
737
- /* Form
738
- ============================== */
739
-
740
- .active-scaffold dl {
741
- margin: 0;
742
- }
743
-
744
- .active-scaffold .submit {
745
- font-weight: bold;
746
- font-size: 14px;
747
- font-family: Arial, sans-serif;
748
- letter-spacing: 0;
749
- margin: 0;
750
- margin-top: 5px;
751
- }
752
-
753
- .active-scaffold form p {
754
- clear: both;
755
- }
756
-
757
- .active-scaffold fieldset {
758
- border: none;
759
- }
760
-
761
- .active-scaffold h4,
762
- .active-scaffold h5 {
763
- padding: 2px;
764
- margin: 0;
765
- text-transform: none;
766
- color: <%= @form_title_color %>;
767
- letter-spacing: -1px;
768
- font: bold 16px arial;
769
- }
770
-
771
- .active-scaffold h5 {
772
- padding: 0;
773
- margin: 5px 0 2px 0;
774
- font-size: 14px;
775
- letter-spacing: 0;
776
- }
777
-
778
- .active-scaffold ol {
779
- clear: both;
780
- float: none;
781
- padding: 2px;
782
- margin-left: 5px;
783
- list-style: none;
784
- }
785
-
786
- .active-scaffold p.form-footer {
787
- clear: both;
788
- }
789
-
790
- .active-scaffold a.as_cancel,
791
- .active-scaffold p.form-footer a {
792
- font: bold 14px arial, sans-serif;
793
- letter-spacing: 0;
794
- }
795
-
796
- /* Form :: Fields
797
- ============================== */
798
-
799
- .active-scaffold li.form-element {
800
- clear: both;
801
- }
802
-
803
- .active-scaffold label {
804
- font: normal 11px verdana, sans-serif;
805
- color: <%= @label_color %>;
806
- }
807
-
808
- .active-scaffold li.form-element dt {
809
- float: left;
810
- width: 12em;
811
- padding: 6px 0;
812
- }
813
-
814
- .active-scaffold li.form-element dd {
815
- float: left;
816
- }
817
-
818
- .active-scaffold li.form-element dd p,
819
- .active-scaffold li.form-element dd input[type="checkbox"] {
820
- margin-top: 6px;
821
- }
822
-
823
- .active-scaffold .form dd {
824
- margin: 0;
825
- }
826
-
827
-
828
- .active-scaffold .description {
829
- display: inline-block;
830
- color: <%= @description_color %>;
831
- font-size: 10px;
832
- margin-left: 5px;
833
- }
834
-
835
- .active-scaffold .required label {
836
- font-weight: bold;
837
- }
838
-
839
- .active-scaffold label.example {
840
- font-size: 11px;
841
- font-family: arial;
842
- color: <%= @placeholder_color %>;
843
- }
844
-
845
- .active-scaffold input.text-input,
846
- .active-scaffold select {
847
- font: bold 16px arial;
848
- letter-spacing: -1px;
849
- border: solid 1px <%= @input_border_color %>;
850
- }
851
-
852
- .active-scaffold input.text-input {
853
- padding: 2px;
854
- }
855
-
856
- .active-scaffold .fieldWithErrors input,
857
- .active-scaffold .field_with_errors input,
858
- .active-scaffold .fieldWithErrors textarea,
859
- .active-scaffold .field_with_errors textarea,
860
- .active-scaffold .fieldWithErrors select,
861
- .active-scaffold .field_with_errors select {
862
- border: solid 1px <%= @input_error_border_color %>;
863
- }
864
-
865
- .active-scaffold select {
866
- padding: 1px;
867
- }
868
-
869
- .active-scaffold input.example {
870
- color: <%= @placeholder_color %>;
871
- }
872
-
873
- .active-scaffold select:focus,
874
- .active-scaffold input.text-input:focus {
875
- background-color: <%= @input_focus_bg %>;
876
- }
877
-
878
- .active-scaffold textarea {
879
- font-family: Arial, sans-serif;
880
- font-size: 12px;
881
- padding: 1px;
882
- border: solid 1px <%= @input_border_color %>;
883
- }
884
-
885
- .active-scaffold .checkbox-list {
886
- padding-left: 0px;
887
- }
888
-
889
- .active-scaffold .checkbox-list li {
890
- padding-right: 5px;
891
- display: inline;
892
- }
893
-
894
- .active-scaffold .checkbox-list li label {
895
- padding: 0 0 0 2px;
896
- }
897
-
898
- .active-scaffold .draggable-list {
899
- float: left;
900
- width: 300px;
901
- margin-right: 15px;
902
- min-height: 30px;
903
- max-height: 100px;
904
- overflow: auto;
905
- background-color: <%= @draggable_list_bg %>;
906
- }
907
-
908
- .active-scaffold .draggable-list.hover {
909
- opacity: 0.5;
910
- }
911
-
912
- .active-scaffold .draggable-list.selected {
913
- background-color: <%= @draggable_list_selected_bg %>;
914
- }
915
-
916
- .active-scaffold .draggable-list li {
917
- display: block;
918
- }
919
-
920
- li.draggable-item {
921
- list-style: none;
922
- }
923
- li.draggable-item input,
924
- .active-scaffold .draggable-list input {
925
- display: none;
926
- }
927
-
928
- /* Form :: Sub-Sections
929
- ============================== */
930
-
931
- .active-scaffold li.sub-section {
932
- clear: left;
933
- padding: 5px 0;
934
- }
935
-
936
- /* Form :: Association Sub-Forms
937
- ============================== */
938
-
939
- .active-scaffold .sub-form {
940
- float: left;
941
- clear: left;
942
- padding: 5px 0;
943
- padding-left: 5px;
944
- }
945
-
946
- .active-scaffold .sub-form h5 {
947
- margin-left: -5px;
948
- }
949
-
950
- .active-scaffold .sub-form table,
951
- .active-scaffold .sub-form table td {
952
- width: auto;
953
- background: none;
954
- }
955
-
956
- .active-scaffold .sub-form table th {
957
- font: normal 10px verdana, sans-serif;
958
- color: <%= @subform_header_color %>;
959
- padding: 0 5px 0 1px;
960
- background: none;
961
- }
962
-
963
- .active-scaffold .horizontal-sub-form td dt label {
964
- display: none;
965
- }
966
-
967
- .active-scaffold .sub-form .checkbox-list {
968
- padding: 0 2px 2px 2px;
969
- background-color: <%= @checkbox_list_bg %>;
970
- border: solid 1px <%= @input_border_color %>;
971
- }
972
-
973
- .active-scaffold .sub-form .checkbox-list label {
974
- display: block;
975
- }
976
-
977
- .active-scaffold .sub-form table td {
978
- border: none;
979
- background-color: transparent;
980
- padding: 1px;
981
- vertical-align: top;
982
- color: <%= @subform_color %>;
983
- }
984
-
985
- .active-scaffold .sub-form .actions {
986
- vertical-align: middle;
987
- background-color: transparent;
988
- clear: left;
989
- }
990
-
991
- .active-scaffold .sub-form .association-record a.destroy {
992
- font-weight: bold;
993
- display: block;
994
- height: 16px;
995
- padding: 0;
996
- width: 16px;
997
- text-indent: -4000px;
998
- background: url(<%= asset_path 'active_scaffold/cross.png' %>) 0 0 no-repeat;
999
- }
1000
-
1001
- .active-scaffold .sub-form .locked a.destroy {
1002
- display: none;
1003
- }
1004
-
1005
- .active-scaffold .sub-form .association-record a {
1006
- font: bold 12px arial;
1007
- }
1008
-
1009
- .active-scaffold .sub-form input.text-input,
1010
- .active-scaffold .sub-form select {
1011
- letter-spacing: 0;
1012
- font: bold 12px arial;
1013
- }
1014
-
1015
- .active-scaffold .sub-form .footer-wrapper {
1016
- margin-top: 3px;
1017
- margin-right: 10px;
1018
- }
1019
-
1020
- .active-scaffold .sub-form .footer {
1021
- color: <%= @subform_footer_color %>;
1022
- padding: 3px 5px;
1023
- }
1024
-
1025
- .active-scaffold .sub-form .footer select,
1026
- .active-scaffold .sub-form .footer input {
1027
- font-weight: bold;
1028
- font-size: 12px;
1029
- padding: 0;
1030
- }
1031
-
1032
- .active-scaffold a.visibility-toggle {
1033
- font-size: 100%;
1034
- }
1035
-
1036
- .active-scaffold-found {
1037
- float:left;
1038
- }
1039
-
1040
- .as_touch a.inline-adapter-close {
1041
- width: 25px;
1042
- height: 27px;
1043
- background: url(<%= asset_path 'active_scaffold/close_touch.png' %>) 0 0 no-repeat;
1044
- }
1045
-
1046
- .as_touch .as_paginate {
1047
- font-size: 20px;
1048
- padding: 3px 10px;
1049
- }
1050
-
1051
- .as_touch .active-scaffold-header div.actions a {
1052
- padding: 7px 5px;
1053
- }
1054
-
1055
- .as_touch .active-scaffold .active-scaffold-header div.actions a {
1056
- padding: 7px 5px;
1057
- }
1058
-
1059
- .as_touch .active-scaffold-header div.actions .action_group ul {
1060
- line-height: 130%;
1061
- top: 23px;
1062
- }
1063
-
1064
- .as_touch .active-scaffold .active-scaffold-header div.actions .action_group ul {
1065
- top: 23px;
1066
- }
1067
-
1068
- .as_touch .active-scaffold-header div.actions a.new,
1069
- .as_touch .active-scaffold-header div.actions a.new_existing,
1070
- .as_touch .active-scaffold-header div.actions a.show_search,
1071
- .as_touch .active-scaffold-header div.actions a.show_config_list,
1072
- .as_touch .active-scaffold-header div.actions div.action_group div {
1073
- padding: 7px 5px 7px 25px;
1074
- }
1075
-
1076
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.new,
1077
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.new_existing,
1078
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.show_search,
1079
- .as_touch .active-scaffold .active-scaffold-header div.actions > a.show_config_list,
1080
- .as_touch .active-scaffold .active-scaffold-header div.actions div.action_group > div {
1081
- padding: 7px 5px 7px 25px;
1082
- background-position: 5px 50%;
1083
- }
1084
-
1085
- .as_touch .actions .action_group ul li div {
1086
- padding: 7px 5px 7px 25px;
1087
- }
1088
-
1089
- .as_touch .actions .action_group ul li a {
1090
- padding: 7px 5px 7px 25px;
1091
- }
1092
-
1093
- .as_touch .active-scaffold-header h2 {
1094
- padding: 4px 0px;
1095
- }
1096
-
1097
- .as_touch .active-scaffold .active-scaffold-header div.actions a,
1098
- .as_touch .active-scaffold .active-scaffold-header div.actions div {
1099
- font: bold 14px arial;
1100
- }
1101
-
1102
- .as_touch .active-scaffold .active-scaffold-header div.actions {
1103
- right: 15px;
1104
- }
1105
-
1106
- .as_touch tr.record {
1107
- line-height: 130%;
1108
- }
1109
-
1110
- .as_touch th a, .as_touch th a:visited {
1111
- color: <%= @column_header_link_color %>;
1112
- padding: 5px 2px 5px 5px;
1113
- }
1114
-
1115
- .as_touch tr.record td {
1116
- padding: 5px 10px;
1117
- }
1118
-
1119
- <% require_asset "jquery-ui" %>
1120
- <% ActiveScaffold.stylesheets.each {|css| require_asset css} %>
1121
- <% ActiveScaffold::Bridges.all_stylesheets.each {|css| require_asset css} %>
11
+ @import 'active_scaffold_colors<%= '.css' unless defined? Sass %>';