mas01mj@640: /* mas01mj@640: * File: demo_table.css mas01mj@640: * CVS: $Id$ mas01mj@640: * Description: CSS descriptions for DataTables demo pages mas01mj@640: * Author: Allan Jardine mas01mj@640: * Created: Tue May 12 06:47:22 BST 2009 mas01mj@640: * Modified: $Date$ by $Author$ mas01mj@640: * Language: CSS mas01mj@640: * Project: DataTables mas01mj@640: * mas01mj@640: * Copyright 2009 Allan Jardine. All Rights Reserved. mas01mj@640: * mas01mj@640: * *************************************************************************** mas01mj@640: * DESCRIPTION mas01mj@640: * mas01mj@640: * The styles given here are suitable for the demos that are used with the standard DataTables mas01mj@640: * distribution (see www.datatables.net). You will most likely wish to modify these styles to mas01mj@640: * meet the layout requirements of your site. mas01mj@640: * mas01mj@640: * Common issues: mas01mj@640: * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is mas01mj@640: * no conflict between the two pagination types. If you want to use full_numbers pagination mas01mj@640: * ensure that you either have "example_alt_pagination" as a body class name, or better yet, mas01mj@640: * modify that selector. mas01mj@640: * Note that the path used for Images is relative. All images are by default located in mas01mj@640: * ../images/ - relative to this CSS file. mas01mj@640: */ mas01mj@640: mas01mj@640: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mas01mj@640: * DataTables features mas01mj@640: */ mas01mj@640: mas01mj@640: .dataTables_wrapper { mas01mj@640: position: relative; mas01mj@640: min-height: 302px; mas01mj@640: _height: 302px; mas01mj@640: clear: both; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_processing { mas01mj@640: position: absolute; mas01mj@640: top: 0px; mas01mj@640: left: 50%; mas01mj@640: width: 250px; mas01mj@640: margin-left: -125px; mas01mj@640: border: 1px solid #ddd; mas01mj@640: text-align: center; mas01mj@640: color: #999; mas01mj@640: font-size: 11px; mas01mj@640: padding: 2px 0; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_length { mas01mj@640: width: 40%; mas01mj@640: float: left; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_filter { mas01mj@640: width: 50%; mas01mj@640: float: right; mas01mj@640: text-align: right; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_info { mas01mj@640: width: 60%; mas01mj@640: float: left; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_paginate { mas01mj@640: width: 44px; mas01mj@640: * width: 50px; mas01mj@640: float: right; mas01mj@640: text-align: right; mas01mj@640: } mas01mj@640: mas01mj@640: /* Pagination nested */ mas01mj@640: .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next { mas01mj@640: height: 19px; mas01mj@640: width: 19px; mas01mj@640: margin-left: 3px; mas01mj@640: float: left; mas01mj@640: } mas01mj@640: mas01mj@640: .paginate_disabled_previous { mas01mj@640: background-image: url('../img/back_disabled.jpg'); mas01mj@640: } mas01mj@640: mas01mj@640: .paginate_enabled_previous { mas01mj@640: background-image: url('../img/back_enabled.jpg'); mas01mj@640: } mas01mj@640: mas01mj@640: .paginate_disabled_next { mas01mj@640: background-image: url('../img/forward_disabled.jpg'); mas01mj@640: } mas01mj@640: mas01mj@640: .paginate_enabled_next { mas01mj@640: background-image: url('../img/forward_enabled.jpg'); mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mas01mj@640: * DataTables display mas01mj@640: */ mas01mj@640: table.display { mas01mj@640: margin: 0 auto; mas01mj@640: width: 100%; mas01mj@640: clear: both; mas01mj@640: } mas01mj@640: mas01mj@640: table.display thead th { mas01mj@640: padding: 3px 18px 3px 10px; mas01mj@640: border-bottom: 1px solid black; mas01mj@640: font-weight: bold; mas01mj@640: cursor: pointer; mas01mj@640: * cursor: hand; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tfoot th { mas01mj@640: padding: 3px 10px; mas01mj@640: border-top: 1px solid black; mas01mj@640: font-weight: bold; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.heading2 td { mas01mj@640: border-bottom: 1px solid #aaa; mas01mj@640: } mas01mj@640: mas01mj@640: table.display td { mas01mj@640: padding: 3px 10px; mas01mj@640: } mas01mj@640: mas01mj@640: table.display td.center { mas01mj@640: text-align: center; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mas01mj@640: * DataTables sorting mas01mj@640: */ mas01mj@640: mas01mj@640: .sorting_asc { mas01mj@640: background: url('../img/sort_asc.jpg') no-repeat center right; mas01mj@640: } mas01mj@640: mas01mj@640: .sorting_desc { mas01mj@640: background: url('../img/sort_desc.jpg') no-repeat center right; mas01mj@640: } mas01mj@640: mas01mj@640: .sorting { mas01mj@640: background: url('../img/sort_both.jpg') no-repeat center right; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mas01mj@640: * DataTables row classes mas01mj@640: */ mas01mj@640: table.display tr.odd.gradeA { mas01mj@640: background-color: #ddffdd; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.gradeA { mas01mj@640: background-color: #eeffee; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: table.display tr.odd.gradeA { mas01mj@640: background-color: #ddffdd; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.gradeA { mas01mj@640: background-color: #eeffee; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.odd.gradeC { mas01mj@640: background-color: #ddddff; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.gradeC { mas01mj@640: background-color: #eeeeff; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.odd.gradeX { mas01mj@640: background-color: #ffdddd; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.gradeX { mas01mj@640: background-color: #ffeeee; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.odd.gradeU { mas01mj@640: background-color: #ddd; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.gradeU { mas01mj@640: background-color: #eee; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: tr.odd { mas01mj@640: background-color: #E2E4FF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even { mas01mj@640: background-color: white; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: mas01mj@640: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mas01mj@640: * Misc mas01mj@640: */ mas01mj@640: .top, .bottom { mas01mj@640: padding: 15px; mas01mj@640: background-color: #F5F5F5; mas01mj@640: border: 1px solid #CCCCCC; mas01mj@640: } mas01mj@640: mas01mj@640: .top .dataTables_info { mas01mj@640: float: none; mas01mj@640: } mas01mj@640: mas01mj@640: .clear { mas01mj@640: clear: both; mas01mj@640: } mas01mj@640: mas01mj@640: .dataTables_empty { mas01mj@640: text-align: center; mas01mj@640: } mas01mj@640: mas01mj@640: tfoot input { mas01mj@640: margin: 0.5em 0; mas01mj@640: width: 100%; mas01mj@640: color: #444; mas01mj@640: } mas01mj@640: mas01mj@640: tfoot input.search_init { mas01mj@640: color: #999; mas01mj@640: } mas01mj@640: mas01mj@640: td.group { mas01mj@640: background-color: #d1cfd0; mas01mj@640: border-bottom: 2px solid #A19B9E; mas01mj@640: border-top: 2px solid #A19B9E; mas01mj@640: } mas01mj@640: mas01mj@640: td.details { mas01mj@640: background-color: #d1cfd0; mas01mj@640: border: 2px solid #A19B9E; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: .example_alt_pagination div.dataTables_info { mas01mj@640: width: 40%; mas01mj@640: } mas01mj@640: mas01mj@640: .paging_full_numbers { mas01mj@640: width: 400px; mas01mj@640: height: 22px; mas01mj@640: line-height: 22px; mas01mj@640: } mas01mj@640: mas01mj@640: .paging_full_numbers span.paginate_button, mas01mj@640: .paging_full_numbers span.paginate_active { mas01mj@640: border: 1px solid #aaa; mas01mj@640: -webkit-border-radius: 5px; mas01mj@640: -moz-border-radius: 5px; mas01mj@640: padding: 2px 5px; mas01mj@640: margin: 0 3px; mas01mj@640: cursor: pointer; mas01mj@640: *cursor: hand; mas01mj@640: } mas01mj@640: mas01mj@640: .paging_full_numbers span.paginate_button { mas01mj@640: background-color: #ddd; mas01mj@640: } mas01mj@640: mas01mj@640: .paging_full_numbers span.paginate_button:hover { mas01mj@640: background-color: #ccc; mas01mj@640: } mas01mj@640: mas01mj@640: .paging_full_numbers span.paginate_active { mas01mj@640: background-color: #99B3FF; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.even.row_selected td { mas01mj@640: background-color: #B0BED9; mas01mj@640: } mas01mj@640: mas01mj@640: table.display tr.odd.row_selected td { mas01mj@640: background-color: #9FAFD1; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: /* mas01mj@640: * Sorting classes for columns mas01mj@640: */ mas01mj@640: /* For the standard odd/even */ mas01mj@640: tr.odd td.sorting_1 { mas01mj@640: background-color: #D3D6FF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd td.sorting_2 { mas01mj@640: background-color: #DADCFF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd td.sorting_3 { mas01mj@640: background-color: #E0E2FF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even td.sorting_1 { mas01mj@640: background-color: #EAEBFF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even td.sorting_2 { mas01mj@640: background-color: #F2F3FF; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even td.sorting_3 { mas01mj@640: background-color: #F9F9FF; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: /* For the Conditional-CSS grading rows */ mas01mj@640: /* mas01mj@640: Colour calculations (based off the main row colours) mas01mj@640: Level 1: mas01mj@640: dd > c4 mas01mj@640: ee > d5 mas01mj@640: Level 2: mas01mj@640: dd > d1 mas01mj@640: ee > e2 mas01mj@640: */ mas01mj@640: tr.odd.gradeA td.sorting_1 { mas01mj@640: background-color: #c4ffc4; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeA td.sorting_2 { mas01mj@640: background-color: #d1ffd1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeA td.sorting_3 { mas01mj@640: background-color: #d1ffd1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeA td.sorting_1 { mas01mj@640: background-color: #d5ffd5; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeA td.sorting_2 { mas01mj@640: background-color: #e2ffe2; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeA td.sorting_3 { mas01mj@640: background-color: #e2ffe2; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeC td.sorting_1 { mas01mj@640: background-color: #c4c4ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeC td.sorting_2 { mas01mj@640: background-color: #d1d1ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeC td.sorting_3 { mas01mj@640: background-color: #d1d1ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeC td.sorting_1 { mas01mj@640: background-color: #d5d5ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeC td.sorting_2 { mas01mj@640: background-color: #e2e2ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeC td.sorting_3 { mas01mj@640: background-color: #e2e2ff; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeX td.sorting_1 { mas01mj@640: background-color: #ffc4c4; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeX td.sorting_2 { mas01mj@640: background-color: #ffd1d1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeX td.sorting_3 { mas01mj@640: background-color: #ffd1d1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeX td.sorting_1 { mas01mj@640: background-color: #ffd5d5; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeX td.sorting_2 { mas01mj@640: background-color: #ffe2e2; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeX td.sorting_3 { mas01mj@640: background-color: #ffe2e2; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeU td.sorting_1 { mas01mj@640: background-color: #c4c4c4; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeU td.sorting_2 { mas01mj@640: background-color: #d1d1d1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.odd.gradeU td.sorting_3 { mas01mj@640: background-color: #d1d1d1; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeU td.sorting_1 { mas01mj@640: background-color: #d5d5d5; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeU td.sorting_2 { mas01mj@640: background-color: #e2e2e2; mas01mj@640: } mas01mj@640: mas01mj@640: tr.even.gradeU td.sorting_3 { mas01mj@640: background-color: #e2e2e2; mas01mj@640: } mas01mj@640: mas01mj@640: mas01mj@640: /* mas01mj@640: * Row highlighting example mas01mj@640: */ mas01mj@640: .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted { mas01mj@640: background-color: #ECFFB3; mas01mj@640: } mas01mj@640: mas01mj@640: .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted { mas01mj@640: background-color: #E6FF99; mas01mj@640: }