22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/data-table.rb', line 22
def self.default_css_styles
" .data_table {width: 100%; empty-cells: show}\n .data_table td, .data_table th {padding: 3px}\n\n .data_table caption {font-size: 2em; font-weight: bold}\n\n .data_table thead th {background-color: #ddd; border-bottom: 1px solid #bbb;}\n\n .data_table tbody tr.alt {background-color: #eee;}\n\n .data_table .group_header th {text-align: left;}\n\n .data_table .subtotal.first td,\n .data_table .parent_subtotal.first td\n {\n border-top: 1px solid #000;\n }\n\n .data_table tfoot .total.index_0 td\n {\n border-top: 1px solid #000;\n }\n\n .empty_data_table {text-align: center; background-color: #ffc;}\n\n /* Data Types */\n .data_table .number, .data_table .money {text-align: right}\n .data_table .text {text-align: left}\n\n .level_1,\n .level_2 {\n text-align: left\n }\n\n .level_2 th {\n padding-left: 35px;\n }\n CSS_STYLE\nend\n"
|