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 * ../images/ - 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 {
106 .paginate_disabled_previous {
107 background: url('../images/back_disabled.png') no-repeat top left;
110 .paginate_enabled_previous {
111 background: url('../images/back_enabled.png') no-repeat top left;
113 .paginate_enabled_previous:hover {
114 background: url('../images/back_enabled_hover.png') no-repeat top left;
117 .paginate_disabled_next {
118 background: url('../images/forward_disabled.png') no-repeat top right;
121 .paginate_enabled_next {
122 background: url('../images/forward_enabled.png') no-repeat top right;
124 .paginate_enabled_next:hover {
125 background: url('../images/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('../images/sort_asc.png') no-repeat center right;
189 background: url('../images/sort_desc.png') no-repeat center right;
193 background: url('../images/sort_both.png') no-repeat center right;
196 .sorting_asc_disabled {
197 background: url('../images/sort_asc_disabled.png') no-repeat center right;
200 .sorting_desc_disabled {
201 background: url('../images/sort_desc_disabled.png') no-repeat center right;
204 table.display thead th:active,
205 table.display thead td:active {
212 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
213 * DataTables row classes
215 table.display tr.odd.gradeA {
216 background-color: #ddffdd;
219 table.display tr.even.gradeA {
220 background-color: #eeffee;
223 table.display tr.odd.gradeC {
224 background-color: #ddddff;
227 table.display tr.even.gradeC {
228 background-color: #eeeeff;
231 table.display tr.odd.gradeX {
232 background-color: #ffdddd;
235 table.display tr.even.gradeX {
236 background-color: #ffeeee;
239 table.display tr.odd.gradeU {
240 background-color: #ddd;
243 table.display tr.even.gradeU {
244 background-color: #eee;
249 background-color: #E2E4FF;
253 background-color: white;
260 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
267 .dataTables_scrollBody {
269 -webkit-overflow-scrolling: touch;
274 background-color: #F5F5F5;
275 border: 1px solid #CCCCCC;
278 .top .dataTables_info {
296 tfoot input.search_init {
301 background-color: #d1cfd0;
302 border-bottom: 2px solid #A19B9E;
303 border-top: 2px solid #A19B9E;
307 background-color: #d1cfd0;
308 border: 2px solid #A19B9E;
312 .example_alt_pagination div.dataTables_info {
316 .paging_full_numbers {
322 .paging_full_numbers a:active {
326 .paging_full_numbers a:hover {
327 text-decoration: none;
330 .paging_full_numbers a.paginate_button,
331 .paging_full_numbers a.paginate_active {
332 border: 1px solid #aaa;
333 -webkit-border-radius: 5px;
334 -moz-border-radius: 5px;
339 color: #333 !important;
342 .paging_full_numbers a.paginate_button {
343 background-color: #ddd;
346 .paging_full_numbers a.paginate_button:hover {
347 background-color: #ccc;
348 text-decoration: none !important;
351 .paging_full_numbers a.paginate_active {
352 background-color: #99B3FF;
355 table.display tr.even.row_selected td {
356 background-color: #B0BED9;
359 table.display tr.odd.row_selected td {
360 background-color: #9FAFD1;
365 * Sorting classes for columns
367 /* For the standard odd/even */
368 tr.odd td.sorting_1 {
369 background-color: #D3D6FF;
372 tr.odd td.sorting_2 {
373 background-color: #DADCFF;
376 tr.odd td.sorting_3 {
377 background-color: #E0E2FF;
380 tr.even td.sorting_1 {
381 background-color: #EAEBFF;
384 tr.even td.sorting_2 {
385 background-color: #F2F3FF;
388 tr.even td.sorting_3 {
389 background-color: #F9F9FF;
393 /* For the Conditional-CSS grading rows */
395 Colour calculations (based off the main row colours)
403 tr.odd.gradeA td.sorting_1 {
404 background-color: #c4ffc4;
407 tr.odd.gradeA td.sorting_2 {
408 background-color: #d1ffd1;
411 tr.odd.gradeA td.sorting_3 {
412 background-color: #d1ffd1;
415 tr.even.gradeA td.sorting_1 {
416 background-color: #d5ffd5;
419 tr.even.gradeA td.sorting_2 {
420 background-color: #e2ffe2;
423 tr.even.gradeA td.sorting_3 {
424 background-color: #e2ffe2;
427 tr.odd.gradeC td.sorting_1 {
428 background-color: #c4c4ff;
431 tr.odd.gradeC td.sorting_2 {
432 background-color: #d1d1ff;
435 tr.odd.gradeC td.sorting_3 {
436 background-color: #d1d1ff;
439 tr.even.gradeC td.sorting_1 {
440 background-color: #d5d5ff;
443 tr.even.gradeC td.sorting_2 {
444 background-color: #e2e2ff;
447 tr.even.gradeC td.sorting_3 {
448 background-color: #e2e2ff;
451 tr.odd.gradeX td.sorting_1 {
452 background-color: #ffc4c4;
455 tr.odd.gradeX td.sorting_2 {
456 background-color: #ffd1d1;
459 tr.odd.gradeX td.sorting_3 {
460 background-color: #ffd1d1;
463 tr.even.gradeX td.sorting_1 {
464 background-color: #ffd5d5;
467 tr.even.gradeX td.sorting_2 {
468 background-color: #ffe2e2;
471 tr.even.gradeX td.sorting_3 {
472 background-color: #ffe2e2;
475 tr.odd.gradeU td.sorting_1 {
476 background-color: #c4c4c4;
479 tr.odd.gradeU td.sorting_2 {
480 background-color: #d1d1d1;
483 tr.odd.gradeU td.sorting_3 {
484 background-color: #d1d1d1;
487 tr.even.gradeU td.sorting_1 {
488 background-color: #d5d5d5;
491 tr.even.gradeU td.sorting_2 {
492 background-color: #e2e2e2;
495 tr.even.gradeU td.sorting_3 {
496 background-color: #e2e2e2;
501 * Row highlighting example
503 .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
504 background-color: #ECFFB3;
507 .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
508 background-color: #E6FF99;
511 .ex_highlight_row #example tr.even:hover {
512 background-color: #ECFFB3;
515 .ex_highlight_row #example tr.even:hover td.sorting_1 {
516 background-color: #DDFF75;
519 .ex_highlight_row #example tr.even:hover td.sorting_2 {
520 background-color: #E7FF9E;
523 .ex_highlight_row #example tr.even:hover td.sorting_3 {
524 background-color: #E2FF89;
527 .ex_highlight_row #example tr.odd:hover {
528 background-color: #E6FF99;
531 .ex_highlight_row #example tr.odd:hover td.sorting_1 {
532 background-color: #D6FF5C;
535 .ex_highlight_row #example tr.odd:hover td.sorting_2 {
536 background-color: #E0FF84;
539 .ex_highlight_row #example tr.odd:hover td.sorting_3 {
540 background-color: #DBFF70;
548 border: 3px solid transparent;
551 table.KeyTable td.focus {
552 border: 3px solid #3366FF;
555 table.display tr.gradeA {
556 background-color: #eeffee;
559 table.display tr.gradeC {
560 background-color: #ddddff;
563 table.display tr.gradeX {
564 background-color: #ffdddd;
567 table.display tr.gradeU {
568 background-color: #ddd;
575 border: 1px solid #8080FF;
576 background-color: #E5E5FF;