datatable 0.1.0alpha2
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +3 -0
- data/.gitignore +7 -0
- data/.rspec +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +83 -0
- data/MIT-LICENSE +20 -0
- data/README.md +135 -0
- data/Rakefile +27 -0
- data/TODO +71 -0
- data/datatable.gemspec +20 -0
- data/example_app/.DS_Store +0 -0
- data/example_app/.gitignore +6 -0
- data/example_app/.rspec +1 -0
- data/example_app/Gemfile +35 -0
- data/example_app/Gemfile.lock +126 -0
- data/example_app/Rakefile +7 -0
- data/example_app/app/controllers/application_controller.rb +3 -0
- data/example_app/app/controllers/orders_controller.rb +13 -0
- data/example_app/app/datatables/orders_index.rb +31 -0
- data/example_app/app/helpers/application_helper.rb +2 -0
- data/example_app/app/models/customer.rb +4 -0
- data/example_app/app/models/item.rb +4 -0
- data/example_app/app/models/order.rb +5 -0
- data/example_app/app/models/order_item.rb +4 -0
- data/example_app/app/models/sales_rep.rb +3 -0
- data/example_app/app/views/layouts/application.html.erb +12 -0
- data/example_app/app/views/orders/index.html.erb +14 -0
- data/example_app/config/application.rb +41 -0
- data/example_app/config/boot.rb +6 -0
- data/example_app/config/database.yml.mysql +20 -0
- data/example_app/config/database.yml.pg +20 -0
- data/example_app/config/environment.rb +5 -0
- data/example_app/config/environments/development.rb +28 -0
- data/example_app/config/environments/production.rb +49 -0
- data/example_app/config/environments/test.rb +35 -0
- data/example_app/config/initializers/backtrace_silencers.rb +7 -0
- data/example_app/config/initializers/datatable.rb +6 -0
- data/example_app/config/initializers/inflections.rb +10 -0
- data/example_app/config/initializers/mime_types.rb +5 -0
- data/example_app/config/initializers/secret_token.rb +9 -0
- data/example_app/config/initializers/session_store.rb +8 -0
- data/example_app/config/locales/en.yml +5 -0
- data/example_app/config/routes.rb +6 -0
- data/example_app/config.ru +4 -0
- data/example_app/db/migrate/20110429185712_create_customers.rb +15 -0
- data/example_app/db/migrate/20110429185742_create_sales_reps.rb +14 -0
- data/example_app/db/migrate/20110429185807_create_items.rb +15 -0
- data/example_app/db/migrate/20110429185913_create_orders.rb +15 -0
- data/example_app/db/migrate/20110429190005_create_order_items.rb +14 -0
- data/example_app/db/schema.rb +53 -0
- data/example_app/db/seeds.rb +49 -0
- data/example_app/lib/tasks/.gitkeep +0 -0
- data/example_app/lib/tasks/setup.rake +12 -0
- data/example_app/public/404.html +26 -0
- data/example_app/public/422.html +26 -0
- data/example_app/public/500.html +26 -0
- data/example_app/public/datatable/css/demo_page.css +99 -0
- data/example_app/public/datatable/css/demo_table.css +539 -0
- data/example_app/public/datatable/css/demo_table_jui.css +521 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/example_app/public/datatable/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/example_app/public/datatable/css/smoothness/jquery-ui-1.8.14.custom.css +568 -0
- data/example_app/public/datatable/images/back_disabled.jpg +0 -0
- data/example_app/public/datatable/images/back_enabled.jpg +0 -0
- data/example_app/public/datatable/images/favicon.ico +0 -0
- data/example_app/public/datatable/images/forward_disabled.jpg +0 -0
- data/example_app/public/datatable/images/forward_enabled.jpg +0 -0
- data/example_app/public/datatable/images/sort_asc.png +0 -0
- data/example_app/public/datatable/images/sort_asc_disabled.png +0 -0
- data/example_app/public/datatable/images/sort_both.png +0 -0
- data/example_app/public/datatable/images/sort_desc.png +0 -0
- data/example_app/public/datatable/images/sort_desc_disabled.png +0 -0
- data/example_app/public/datatable/js/jquery-ui-1.8.14.custom.min.js +789 -0
- data/example_app/public/datatable/js/jquery.dataTables.js +7347 -0
- data/example_app/public/datatable/js/jquery.dataTables.min.js +151 -0
- data/example_app/public/favicon.ico +0 -0
- data/example_app/public/flash/copy_cvs_xls.swf +0 -0
- data/example_app/public/flash/copy_cvs_xls_pdf.swf +0 -0
- data/example_app/public/images/rails.png +0 -0
- data/example_app/public/javascripts/application.js +2 -0
- data/example_app/public/javascripts/jquery.js +8936 -0
- data/example_app/public/javascripts/jquery.min.js +18 -0
- data/example_app/public/javascripts/jquery_ujs.js +316 -0
- data/example_app/public/robots.txt +5 -0
- data/example_app/public/stylesheets/.gitkeep +0 -0
- data/example_app/script/rails +6 -0
- data/example_app/spec/datatables/active_record_dsl_spec.rb +59 -0
- data/example_app/spec/datatables/active_record_link_to_spec.rb +22 -0
- data/example_app/spec/datatables/active_record_pagination_spec.rb +94 -0
- data/example_app/spec/datatables/active_record_table_operations_spec.rb +180 -0
- data/example_app/spec/datatables/config_spec.rb +10 -0
- data/example_app/spec/datatables/query_params_spec.rb +73 -0
- data/example_app/spec/datatables/sql_default_spec.rb +22 -0
- data/example_app/spec/datatables/sql_pagination_spec.rb +177 -0
- data/example_app/spec/datatables/sql_search_cast_spec.rb +6 -0
- data/example_app/spec/datatables/sql_search_global_spec.rb +107 -0
- data/example_app/spec/datatables/sql_search_individual_spec.rb +113 -0
- data/example_app/spec/datatables/sql_search_where_spec.rb +87 -0
- data/example_app/spec/datatables/sql_sorting_spec.rb +80 -0
- data/example_app/spec/datatables/sql_variables_spec.rb +104 -0
- data/example_app/spec/factories/customer_factory.rb +4 -0
- data/example_app/spec/factories/item_factory.rb +2 -0
- data/example_app/spec/factories/order_factory.rb +7 -0
- data/example_app/spec/factories/order_item_factory.rb +2 -0
- data/example_app/spec/factories/sales_rep_factory.rb +4 -0
- data/example_app/spec/helpers/aocolumn_spec.rb +239 -0
- data/example_app/spec/helpers/data_table_helper_spec.rb +148 -0
- data/example_app/spec/helpers/headings_spec.rb +71 -0
- data/example_app/spec/spec_helper.rb +29 -0
- data/generators.txt +6 -0
- data/images/datatable_screenshot.png +0 -0
- data/lib/datatable/active_record_dsl.rb +49 -0
- data/lib/datatable/errors.rb +5 -0
- data/lib/datatable/helper.rb +199 -0
- data/lib/datatable/railtie.rb +17 -0
- data/lib/datatable/version.rb +4 -0
- data/lib/datatable.rb +341 -0
- data/lib/generators/datatable/install_generator.rb +58 -0
- data/lib/generators/datatable/new_generator.rb +46 -0
- data/lib/generators/templates/datatable.rb +33 -0
- data/lib/generators/templates/datatable_initializer.rb +6 -0
- data/vendor/datatable/Readme.txt +11 -0
- data/vendor/datatable/extras/TableTools/media/css/TableTools.css +264 -0
- data/vendor/datatable/extras/TableTools/media/css/TableTools_JUI.css +182 -0
- data/vendor/datatable/extras/TableTools/media/images/background.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/collection.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/collection_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/copy.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/copy_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/csv.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/csv_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/pdf.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/pdf_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/print.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/print_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/xls.png +0 -0
- data/vendor/datatable/extras/TableTools/media/images/xls_hover.png +0 -0
- data/vendor/datatable/extras/TableTools/media/js/TableTools.js +2410 -0
- data/vendor/datatable/extras/TableTools/media/js/TableTools.min.js +78 -0
- data/vendor/datatable/extras/TableTools/media/js/TableTools.min.js.gz +0 -0
- data/vendor/datatable/extras/TableTools/media/js/ZeroClipboard.js +365 -0
- data/vendor/datatable/extras/TableTools/media/swf/copy_cvs_xls.swf +0 -0
- data/vendor/datatable/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf +0 -0
- data/vendor/datatable/license-bsd.txt +10 -0
- data/vendor/datatable/license-gpl2.txt +339 -0
- data/vendor/datatable/media/css/demo_page.css +99 -0
- data/vendor/datatable/media/css/demo_table.css +539 -0
- data/vendor/datatable/media/css/demo_table_jui.css +521 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/datatable/media/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/datatable/media/css/smoothness/jquery-ui-1.8.14.custom.css +568 -0
- data/vendor/datatable/media/images/back_disabled.jpg +0 -0
- data/vendor/datatable/media/images/back_enabled.jpg +0 -0
- data/vendor/datatable/media/images/favicon.ico +0 -0
- data/vendor/datatable/media/images/forward_disabled.jpg +0 -0
- data/vendor/datatable/media/images/forward_enabled.jpg +0 -0
- data/vendor/datatable/media/images/sort_asc.png +0 -0
- data/vendor/datatable/media/images/sort_asc_disabled.png +0 -0
- data/vendor/datatable/media/images/sort_both.png +0 -0
- data/vendor/datatable/media/images/sort_desc.png +0 -0
- data/vendor/datatable/media/images/sort_desc_disabled.png +0 -0
- data/vendor/datatable/media/js/jquery-ui-1.8.14.custom.min.js +789 -0
- data/vendor/datatable/media/js/jquery.dataTables.js +7347 -0
- data/vendor/datatable/media/js/jquery.dataTables.min.js +151 -0
- metadata +270 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
This DataTables plugin (v1.8.x) for jQuery was developed out of the desire to allow highly configurable access to HTML tables with advanced access features.
|
2
|
+
|
3
|
+
For detailed installation, usage and API instructions, please refer to the DataTables web-pages: http://www.datatables.net
|
4
|
+
|
5
|
+
Questions, feature requests and bug reports (etc) can all be asked on the DataTables forums: http://www.datatables.net/forums/
|
6
|
+
|
7
|
+
The DataTables source can be found in the media/js/ directory of this archive.
|
8
|
+
|
9
|
+
DataTables is released with dual licensing, using the GPL v2 (license-gpl2.txt) and an BSD style license (license-bsd.txt). Please see the corresponding license file for details of these licenses. You are free to use, modify and distribute this software, but all copyright information must remain.
|
10
|
+
|
11
|
+
If you discover any bugs in DataTables, have any suggestions for improvements or even if you just like using it, please free to get in touch with me: www.datatables.net/contact
|
@@ -0,0 +1,264 @@
|
|
1
|
+
/*
|
2
|
+
* File: TableTools.css
|
3
|
+
* Description: Styles for TableTools 2
|
4
|
+
* Author: Allan Jardine (www.sprymedia.co.uk)
|
5
|
+
* Language: Javascript
|
6
|
+
* License: LGPL / 3 point BSD
|
7
|
+
* Project: DataTables
|
8
|
+
*
|
9
|
+
* Copyright 2010 Allan Jardine, all rights reserved.
|
10
|
+
*
|
11
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
12
|
+
*
|
13
|
+
* CSS name space:
|
14
|
+
* DTTT DataTables TableTools
|
15
|
+
*
|
16
|
+
* Colour dictionary:
|
17
|
+
* Button border #d0d0d0
|
18
|
+
* Button border hover #999999
|
19
|
+
* Hover background #f0f0f0
|
20
|
+
* Action blue #4b66d9
|
21
|
+
*
|
22
|
+
* Style sheet provides:
|
23
|
+
* CONTAINER TableTools container element and styles applying to all components
|
24
|
+
* BUTTON_STYLES Action specific button styles
|
25
|
+
* SELECTING Row selection styles
|
26
|
+
* COLLECTIONS Drop down list (collection) styles
|
27
|
+
* PRINTING Print display styles
|
28
|
+
* MISC Minor misc styles
|
29
|
+
*/
|
30
|
+
|
31
|
+
|
32
|
+
/*
|
33
|
+
* CONTAINER
|
34
|
+
* TableTools container element and styles applying to all components
|
35
|
+
*/
|
36
|
+
div.DTTT_container {
|
37
|
+
float: right;
|
38
|
+
margin-bottom: 1em;
|
39
|
+
}
|
40
|
+
|
41
|
+
button.DTTT_button {
|
42
|
+
position: relative;
|
43
|
+
float: left;
|
44
|
+
height: 30px;
|
45
|
+
margin-right: 3px;
|
46
|
+
padding: 3px 5px;
|
47
|
+
border: 1px solid #d0d0d0;
|
48
|
+
background-color: #fff;
|
49
|
+
cursor: pointer;
|
50
|
+
*cursor: hand;
|
51
|
+
}
|
52
|
+
|
53
|
+
button.DTTT_button::-moz-focus-inner {
|
54
|
+
border: none !important;
|
55
|
+
padding: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
/*
|
60
|
+
* BUTTON_STYLES
|
61
|
+
* Action specific button styles
|
62
|
+
*/
|
63
|
+
|
64
|
+
button.DTTT_button_csv {
|
65
|
+
padding-right: 30px;
|
66
|
+
background: url(../images/csv.png) no-repeat center right;
|
67
|
+
}
|
68
|
+
|
69
|
+
button.DTTT_button_csv_hover {
|
70
|
+
padding-right: 30px;
|
71
|
+
border: 1px solid #999;
|
72
|
+
background: #f0f0f0 url(../images/csv_hover.png) no-repeat center right;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
button.DTTT_button_xls {
|
77
|
+
padding-right: 30px;
|
78
|
+
background: url(../images/xls.png) no-repeat center right;
|
79
|
+
}
|
80
|
+
|
81
|
+
button.DTTT_button_xls_hover {
|
82
|
+
padding-right: 30px;
|
83
|
+
border: 1px solid #999;
|
84
|
+
background: #f0f0f0 url(../images/xls_hover.png) no-repeat center right;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
button.DTTT_button_copy {
|
89
|
+
padding-right: 30px;
|
90
|
+
background: url(../images/copy.png) no-repeat center right;
|
91
|
+
}
|
92
|
+
|
93
|
+
button.DTTT_button_copy_hover {
|
94
|
+
padding-right: 30px;
|
95
|
+
border: 1px solid #999;
|
96
|
+
background: #f0f0f0 url(../images/copy_hover.png) no-repeat center right;
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
button.DTTT_button_pdf {
|
101
|
+
padding-right: 30px;
|
102
|
+
background: url(../images/pdf.png) no-repeat center right;
|
103
|
+
}
|
104
|
+
|
105
|
+
button.DTTT_button_pdf_hover {
|
106
|
+
padding-right: 30px;
|
107
|
+
border: 1px solid #999;
|
108
|
+
background: #f0f0f0 url(../images/pdf_hover.png) no-repeat center right;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
button.DTTT_button_print {
|
113
|
+
padding-right: 30px;
|
114
|
+
background: url(../images/print.png) no-repeat center right;
|
115
|
+
}
|
116
|
+
|
117
|
+
button.DTTT_button_print_hover {
|
118
|
+
padding-right: 30px;
|
119
|
+
border: 1px solid #999;
|
120
|
+
background: #f0f0f0 url(../images/print_hover.png) no-repeat center right;
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
button.DTTT_button_text {
|
125
|
+
}
|
126
|
+
|
127
|
+
button.DTTT_button_text_hover {
|
128
|
+
border: 1px solid #999;
|
129
|
+
background-color: #f0f0f0;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
button.DTTT_button_collection {
|
134
|
+
padding-right: 17px;
|
135
|
+
background: url(../images/collection.png) no-repeat center right;
|
136
|
+
}
|
137
|
+
|
138
|
+
button.DTTT_button_collection_hover {
|
139
|
+
padding-right: 17px;
|
140
|
+
border: 1px solid #999;
|
141
|
+
background: #f0f0f0 url(../images/collection_hover.png) no-repeat center right;
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
/*
|
146
|
+
* SELECTING
|
147
|
+
* Row selection styles
|
148
|
+
*/
|
149
|
+
table.DTTT_selectable tbody tr {
|
150
|
+
cursor: pointer;
|
151
|
+
*cursor: hand;
|
152
|
+
}
|
153
|
+
|
154
|
+
tr.DTTT_selected.odd {
|
155
|
+
background-color: #9FAFD1;
|
156
|
+
}
|
157
|
+
|
158
|
+
tr.DTTT_selected.odd td.sorting_1 {
|
159
|
+
background-color: #9FAFD1;
|
160
|
+
}
|
161
|
+
|
162
|
+
tr.DTTT_selected.odd td.sorting_2 {
|
163
|
+
background-color: #9FAFD1;
|
164
|
+
}
|
165
|
+
|
166
|
+
tr.DTTT_selected.odd td.sorting_3 {
|
167
|
+
background-color: #9FAFD1;
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
tr.DTTT_selected.even {
|
172
|
+
background-color: #B0BED9;
|
173
|
+
}
|
174
|
+
|
175
|
+
tr.DTTT_selected.even td.sorting_1 {
|
176
|
+
background-color: #B0BED9;
|
177
|
+
}
|
178
|
+
|
179
|
+
tr.DTTT_selected.even td.sorting_2 {
|
180
|
+
background-color: #B0BED9;
|
181
|
+
}
|
182
|
+
|
183
|
+
tr.DTTT_selected.even td.sorting_3 {
|
184
|
+
background-color: #B0BED9;
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
/*
|
189
|
+
* COLLECTIONS
|
190
|
+
* Drop down list (collection) styles
|
191
|
+
*/
|
192
|
+
|
193
|
+
div.DTTT_collection {
|
194
|
+
width: 150px;
|
195
|
+
padding: 3px;
|
196
|
+
border: 1px solid #ccc;
|
197
|
+
background-color: #f3f3f3;
|
198
|
+
overflow: hidden;
|
199
|
+
z-index: 2002;
|
200
|
+
}
|
201
|
+
|
202
|
+
div.DTTT_collection_background {
|
203
|
+
background: transparent url(../images/background.png) repeat top left;
|
204
|
+
z-index: 2001;
|
205
|
+
}
|
206
|
+
|
207
|
+
div.DTTT_collection button.DTTT_button {
|
208
|
+
float: none;
|
209
|
+
width: 100%;
|
210
|
+
margin-bottom: 2px;
|
211
|
+
background-color: white;
|
212
|
+
}
|
213
|
+
|
214
|
+
|
215
|
+
/*
|
216
|
+
* PRINTING
|
217
|
+
* Print display styles
|
218
|
+
*/
|
219
|
+
|
220
|
+
.DTTT_print_info {
|
221
|
+
position: absolute;
|
222
|
+
top: 50%;
|
223
|
+
left: 50%;
|
224
|
+
width: 400px;
|
225
|
+
height: 150px;
|
226
|
+
margin-left: -200px;
|
227
|
+
margin-top: -75px;
|
228
|
+
text-align: center;
|
229
|
+
background-color: #3f3f3f;
|
230
|
+
color: white;
|
231
|
+
padding: 10px 30px;
|
232
|
+
|
233
|
+
opacity: 0.9;
|
234
|
+
|
235
|
+
border-radius: 5px;
|
236
|
+
-moz-border-radius: 5px;
|
237
|
+
-webkit-border-radius: 5px;
|
238
|
+
|
239
|
+
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
240
|
+
-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
241
|
+
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
242
|
+
}
|
243
|
+
|
244
|
+
.DTTT_print_info h6 {
|
245
|
+
font-weight: normal;
|
246
|
+
font-size: 28px;
|
247
|
+
line-height: 28px;
|
248
|
+
margin: 1em;
|
249
|
+
}
|
250
|
+
|
251
|
+
.DTTT_print_info p {
|
252
|
+
font-size: 14px;
|
253
|
+
line-height: 20px;
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
/*
|
258
|
+
* MISC
|
259
|
+
* Minor misc styles
|
260
|
+
*/
|
261
|
+
|
262
|
+
.DTTT_disabled {
|
263
|
+
color: #999;
|
264
|
+
}
|
@@ -0,0 +1,182 @@
|
|
1
|
+
/*
|
2
|
+
* File: TableTools.css
|
3
|
+
* Description: Styles for TableTools 2 with JUI theming
|
4
|
+
* Author: Allan Jardine (www.sprymedia.co.uk)
|
5
|
+
* Language: Javascript
|
6
|
+
* License: LGPL / 3 point BSD
|
7
|
+
* Project: DataTables
|
8
|
+
*
|
9
|
+
* Copyright 2010 Allan Jardine, all rights reserved.
|
10
|
+
*
|
11
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
12
|
+
*
|
13
|
+
* Notes:
|
14
|
+
* Generally speaking, please refer to the TableTools.css file - this file contains basic
|
15
|
+
* modifications to that 'master' stylesheet for ThemeRoller.
|
16
|
+
*
|
17
|
+
* CSS name space:
|
18
|
+
* DTTT DataTables TableTools
|
19
|
+
*
|
20
|
+
* Colour dictionary:
|
21
|
+
* Button border #d0d0d0
|
22
|
+
* Button border hover #999999
|
23
|
+
* Hover background #f0f0f0
|
24
|
+
* Action blue #4b66d9
|
25
|
+
*
|
26
|
+
* Style sheet provides:
|
27
|
+
* CONTAINER TableTools container element and styles applying to all components
|
28
|
+
* SELECTING Row selection styles
|
29
|
+
* COLLECTIONS Drop down list (collection) styles
|
30
|
+
* PRINTING Print display styles
|
31
|
+
* MISC Minor misc styles
|
32
|
+
*/
|
33
|
+
|
34
|
+
|
35
|
+
/*
|
36
|
+
* CONTAINER
|
37
|
+
* TableTools container element and styles applying to all components
|
38
|
+
*/
|
39
|
+
div.DTTT_container {
|
40
|
+
float: left;
|
41
|
+
}
|
42
|
+
|
43
|
+
button.DTTT_button {
|
44
|
+
position: relative;
|
45
|
+
float: left;
|
46
|
+
height: 24px;
|
47
|
+
margin-right: 3px;
|
48
|
+
padding: 3px 10px;
|
49
|
+
border: 1px solid #d0d0d0;
|
50
|
+
background-color: #fff;
|
51
|
+
cursor: pointer;
|
52
|
+
*cursor: hand;
|
53
|
+
}
|
54
|
+
|
55
|
+
button.DTTT_button::-moz-focus-inner {
|
56
|
+
border: none !important;
|
57
|
+
padding: 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
/*
|
63
|
+
* SELECTING
|
64
|
+
* Row selection styles
|
65
|
+
*/
|
66
|
+
table.DTTT_selectable tbody tr {
|
67
|
+
cursor: pointer;
|
68
|
+
*cursor: hand;
|
69
|
+
}
|
70
|
+
|
71
|
+
tr.DTTT_selected.odd {
|
72
|
+
background-color: #9FAFD1;
|
73
|
+
}
|
74
|
+
|
75
|
+
tr.DTTT_selected.odd td.sorting_1 {
|
76
|
+
background-color: #9FAFD1;
|
77
|
+
}
|
78
|
+
|
79
|
+
tr.DTTT_selected.odd td.sorting_2 {
|
80
|
+
background-color: #9FAFD1;
|
81
|
+
}
|
82
|
+
|
83
|
+
tr.DTTT_selected.odd td.sorting_3 {
|
84
|
+
background-color: #9FAFD1;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
tr.DTTT_selected.even {
|
89
|
+
background-color: #B0BED9;
|
90
|
+
}
|
91
|
+
|
92
|
+
tr.DTTT_selected.even td.sorting_1 {
|
93
|
+
background-color: #B0BED9;
|
94
|
+
}
|
95
|
+
|
96
|
+
tr.DTTT_selected.even td.sorting_2 {
|
97
|
+
background-color: #B0BED9;
|
98
|
+
}
|
99
|
+
|
100
|
+
tr.DTTT_selected.even td.sorting_3 {
|
101
|
+
background-color: #B0BED9;
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/*
|
106
|
+
* COLLECTIONS
|
107
|
+
* Drop down list (collection) styles
|
108
|
+
*/
|
109
|
+
|
110
|
+
div.DTTT_collection {
|
111
|
+
width: 150px;
|
112
|
+
background-color: #f3f3f3;
|
113
|
+
overflow: hidden;
|
114
|
+
z-index: 2002;
|
115
|
+
|
116
|
+
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
117
|
+
-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
118
|
+
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
119
|
+
}
|
120
|
+
|
121
|
+
div.DTTT_collection_background {
|
122
|
+
background: url(../images/background.png) repeat top left;
|
123
|
+
z-index: 2001;
|
124
|
+
}
|
125
|
+
|
126
|
+
div.DTTT_collection button.DTTT_button {
|
127
|
+
float: none;
|
128
|
+
width: 100%;
|
129
|
+
margin-bottom: -0.1em;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
/*
|
134
|
+
* PRINTING
|
135
|
+
* Print display styles
|
136
|
+
*/
|
137
|
+
|
138
|
+
.DTTT_print_info {
|
139
|
+
position: absolute;
|
140
|
+
top: 50%;
|
141
|
+
left: 50%;
|
142
|
+
width: 400px;
|
143
|
+
height: 150px;
|
144
|
+
margin-left: -200px;
|
145
|
+
margin-top: -75px;
|
146
|
+
text-align: center;
|
147
|
+
background-color: #3f3f3f;
|
148
|
+
color: white;
|
149
|
+
padding: 10px 30px;
|
150
|
+
|
151
|
+
opacity: 0.9;
|
152
|
+
|
153
|
+
border-radius: 5px;
|
154
|
+
-moz-border-radius: 5px;
|
155
|
+
-webkit-border-radius: 5px;
|
156
|
+
|
157
|
+
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
158
|
+
-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
159
|
+
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
160
|
+
}
|
161
|
+
|
162
|
+
.DTTT_print_info h6 {
|
163
|
+
font-weight: normal;
|
164
|
+
font-size: 28px;
|
165
|
+
line-height: 28px;
|
166
|
+
margin: 1em;
|
167
|
+
}
|
168
|
+
|
169
|
+
.DTTT_print_info p {
|
170
|
+
font-size: 14px;
|
171
|
+
line-height: 20px;
|
172
|
+
}
|
173
|
+
|
174
|
+
|
175
|
+
/*
|
176
|
+
* MISC
|
177
|
+
* Minor misc styles
|
178
|
+
*/
|
179
|
+
|
180
|
+
.DTTT_disabled {
|
181
|
+
color: #999;
|
182
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|