4 * Description: CSS descriptions for DataTables demo pages
5 * Author: Allan Jardine
6 * Created: Tue May 12 06:47:22 BST 2009
7 * Modified: $Date$ by $Author$
11 * Copyright 2009 Allan Jardine. All Rights Reserved.
13 * ***************************************************************************
16 * The styles given here are suitable for the demos that are used with the standard DataTables
17 * distribution (see www.datatables.net). You will most likely wish to modify these styles to
18 * meet the layout requirements of your site.
21 * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
22 * no conflict between the two pagination types. If you want to use full_numbers pagination
23 * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
24 * modify that selector.
25 * Note that the path used for Images is relative. All images are by default located in
26 * /static/img/datatables/ - relative to this CSS file.
29 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
36 zoom: 1; /* Feeling sorry for IE */
39 .dataTables_processing {
47 padding: 14px 0 2px 0;
48 border: 1px solid #ddd;
52 background-color: white;
71 .dataTables_paginate {
76 /* Pagination nested */
77 .paginate_disabled_previous, .paginate_enabled_previous,
78 .paginate_disabled_next, .paginate_enabled_next {
83 color: #111 !important;
85 .paginate_disabled_previous:hover, .paginate_enabled_previous:hover,
86 .paginate_disabled_next:hover, .paginate_enabled_next:hover {
87 text-decoration: none !important;
89 .paginate_disabled_previous:active, .paginate_enabled_previous:active,
90 .paginate_disabled_next:active, .paginate_enabled_next:active {
94 .paginate_disabled_previous,
95 .paginate_disabled_next {
96 color: #666 !important;
98 .paginate_disabled_previous, .paginate_enabled_previous {
101 .paginate_disabled_next, .paginate_enabled_next {
103 margin-left: 10px;C:\Dropbox\Development\CPE\trunk\CPEEngagement\CPEEngagement\static\css\
106 .paginate_disabled_previous {
107 background: url('/static/img/datatables/back_disabled.png') no-repeat top left;
110 .paginate_enabled_previous {
111 background: url('/static/img/datatables/back_enabled.png') no-repeat top left;
113 .paginate_enabled_previous:hover {
114 background: url('/static/img/datatables/back_enabled_hover.png') no-repeat top left;
117 .paginate_disabled_next {
118 background: url('/static/img/datatables/forward_disabled.png') no-repeat top right;
121 .paginate_enabled_next {
122 background: url('/static/img/datatables/forward_enabled.png') no-repeat top right;
124 .paginate_enabled_next:hover {
125 background: url('/static/img/datatables/forward_enabled_hover.png') no-repeat top right;
130 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
138 /* Note Firefox 3.5 and before have a bug with border-collapse
139 * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
140 * border-spacing: 0; is one possible option. Conditional-css.com is
141 * useful for this kind of thing
143 * Further note IE 6/7 has problems when calculating widths with border width.
144 * It subtracts one px relative to the other browsers from the first column, and
145 * adds one to the end...
147 * If you want that effect I'd suggest setting a border-top/left on th/td's and
148 * then filling in the gaps with other borders.
152 table.display thead th {
153 padding: 3px 18px 3px 10px;
154 border-bottom: 1px solid black;
160 table.display tfoot th {
161 padding: 3px 18px 3px 10px;
162 border-top: 1px solid black;
166 table.display tr.heading2 td {
167 border-bottom: 1px solid #aaa;
174 table.display td.center {
180 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
185 background: url('/static/img/datatables/sort_asc.png') no-repeat center right;
189 background: url('/static/img/datatables/sort_desc.png') no-repeat center right;
193 background: url('/static/img/datatables/sort_both.png') no-repeat center right;
196 .sorting_asc_disabled {
197 background: url('/static/img/datatables/sort_asc_disabled.png') no-repeat center right;
200 .sorting_desc_disabled {
201 background: url('/static/img/datatables/sort_desc_disabled.png') no-repeat center right;
211 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
212 * DataTables row classes
214 table.display tr.odd.gradeA {
215 background-color: #ddffdd;
218 table.display tr.even.gradeA {
219 background-color: #eeffee;
222 table.display tr.odd.gradeC {
223 background-color: #ddddff;
226 table.display tr.even.gradeC {
227 background-color: #eeeeff;
230 table.display tr.odd.gradeX {
231 background-color: #ffdddd;
234 table.display tr.even.gradeX {
235 background-color: #ffeeee;
238 table.display tr.odd.gradeU {
239 background-color: #ddd;
242 table.display tr.even.gradeU {
243 background-color: #eee;
248 background-color: #E2E4FF;
252 background-color: white;
259 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
266 .dataTables_scrollBody {
268 -webkit-overflow-scrolling: touch;
273 background-color: #F5F5F5;
274 border: 1px solid #CCCCCC;
277 .top .dataTables_info {
295 tfoot input.search_init {
300 background-color: #d1cfd0;
301 border-bottom: 2px solid #A19B9E;
302 border-top: 2px solid #A19B9E;
306 background-color: #d1cfd0;
307 border: 2px solid #A19B9E;
311 .example_alt_pagination div.dataTables_info {
315 .paging_full_numbers {
321 .paging_full_numbers a:active {
325 .paging_full_numbers a:hover {
326 text-decoration: none;
329 .paging_full_numbers a.paginate_button,
330 .paging_full_numbers a.paginate_active {
331 border: 1px solid #aaa;
332 -webkit-border-radius: 5px;
333 -moz-border-radius: 5px;
338 color: #333 !important;
341 .paging_full_numbers a.paginate_button {
342 background-color: #ddd;
345 .paging_full_numbers a.paginate_button:hover {
346 background-color: #ccc;
347 text-decoration: none !important;
350 .paging_full_numbers a.paginate_active {
351 background-color: #99B3FF;
354 table.display tr.even.row_selected td {
355 background-color: #B0BED9;
358 table.display tr.odd.row_selected td {
359 background-color: #9FAFD1;
364 * Sorting classes for columns
366 /* For the standard odd/even */
367 tr.odd td.sorting_1 {
368 background-color: #D3D6FF;
371 tr.odd td.sorting_2 {
372 background-color: #DADCFF;
375 tr.odd td.sorting_3 {
376 background-color: #E0E2FF;
379 tr.even td.sorting_1 {
380 background-color: #EAEBFF;
383 tr.even td.sorting_2 {
384 background-color: #F2F3FF;
387 tr.even td.sorting_3 {
388 background-color: #F9F9FF;
392 /* For the Conditional-CSS grading rows */
394 Colour calculations (based off the main row colours)
402 tr.odd.gradeA td.sorting_1 {
403 background-color: #c4ffc4;
406 tr.odd.gradeA td.sorting_2 {
407 background-color: #d1ffd1;
410 tr.odd.gradeA td.sorting_3 {
411 background-color: #d1ffd1;
414 tr.even.gradeA td.sorting_1 {
415 background-color: #d5ffd5;
418 tr.even.gradeA td.sorting_2 {
419 background-color: #e2ffe2;
422 tr.even.gradeA td.sorting_3 {
423 background-color: #e2ffe2;
426 tr.odd.gradeC td.sorting_1 {
427 background-color: #c4c4ff;
430 tr.odd.gradeC td.sorting_2 {
431 background-color: #d1d1ff;
434 tr.odd.gradeC td.sorting_3 {
435 background-color: #d1d1ff;
438 tr.even.gradeC td.sorting_1 {
439 background-color: #d5d5ff;
442 tr.even.gradeC td.sorting_2 {
443 background-color: #e2e2ff;
446 tr.even.gradeC td.sorting_3 {
447 background-color: #e2e2ff;
450 tr.odd.gradeX td.sorting_1 {
451 background-color: #ffc4c4;
454 tr.odd.gradeX td.sorting_2 {
455 background-color: #ffd1d1;
458 tr.odd.gradeX td.sorting_3 {
459 background-color: #ffd1d1;
462 tr.even.gradeX td.sorting_1 {
463 background-color: #ffd5d5;
466 tr.even.gradeX td.sorting_2 {
467 background-color: #ffe2e2;
470 tr.even.gradeX td.sorting_3 {
471 background-color: #ffe2e2;
474 tr.odd.gradeU td.sorting_1 {
475 background-color: #c4c4c4;
478 tr.odd.gradeU td.sorting_2 {
479 background-color: #d1d1d1;
482 tr.odd.gradeU td.sorting_3 {
483 background-color: #d1d1d1;
486 tr.even.gradeU td.sorting_1 {
487 background-color: #d5d5d5;
490 tr.even.gradeU td.sorting_2 {
491 background-color: #e2e2e2;
494 tr.even.gradeU td.sorting_3 {
495 background-color: #e2e2e2;
500 * Row highlighting example
502 .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
503 background-color: #ECFFB3;
506 .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
507 background-color: #E6FF99;
510 .ex_highlight_row #example tr.even:hover {
511 background-color: #ECFFB3;
514 .ex_highlight_row #example tr.even:hover td.sorting_1 {
515 background-color: #DDFF75;
518 .ex_highlight_row #example tr.even:hover td.sorting_2 {
519 background-color: #E7FF9E;
522 .ex_highlight_row #example tr.even:hover td.sorting_3 {
523 background-color: #E2FF89;
526 .ex_highlight_row #example tr.odd:hover {
527 background-color: #E6FF99;
530 .ex_highlight_row #example tr.odd:hover td.sorting_1 {
531 background-color: #D6FF5C;
534 .ex_highlight_row #example tr.odd:hover td.sorting_2 {
535 background-color: #E0FF84;
538 .ex_highlight_row #example tr.odd:hover td.sorting_3 {
539 background-color: #DBFF70;
547 border: 3px solid transparent;
550 table.KeyTable td.focus {
551 border: 3px solid #3366FF;
554 table.display tr.gradeA {
555 background-color: #eeffee;
558 table.display tr.gradeC {
559 background-color: #ddddff;
562 table.display tr.gradeX {
563 background-color: #ffdddd;
566 table.display tr.gradeU {
567 background-color: #ddd;
574 border: 1px solid #8080FF;
575 background-color: #E5E5FF;