Last active
December 20, 2015 13:29
-
-
Save morrismukiri/6139724 to your computer and use it in GitHub Desktop.
CSS for Datatables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Document : datatbles | |
Created on : Aug 2, 2013, 10:55:31 AM | |
Author : morris | |
Description: | |
Style DataTables | |
*/ | |
/* | |
* Colour dictionary: | |
* | |
* Table control elements: #719ba7 | |
* Header cells: #66A9BD | |
* Body header cells: #91c5d4 | |
* Body content cells: #d5eaf0 | |
* Body content cells (alt): #bcd9e1 | |
* Footer header: #b0cc7f | |
* Footer content: #d7e1c5 | |
*/ | |
/* | |
* Page setup styles | |
*/ | |
body { | |
font: 80%/1.45em Arial, Verdana, Helvetica, sans-serif; | |
margin: 0; | |
padding: 0; | |
color: #111; | |
background-color: #fff; | |
} | |
.dataTable { | |
margin: 0 auto; | |
width: 960px; | |
border: none; | |
border-collapse: collapse; | |
} | |
h1 { | |
text-align: center; | |
font-size: 1.2em; | |
font-weight: bold; | |
margin: 1em 0; | |
} | |
/* | |
* DataTables framework | |
*/ | |
div.dataTables_wrapper { | |
background-color: #FFFFFF; | |
margin: 50px auto; | |
} | |
div.dataTables_length { | |
float: left; | |
margin-left: 7em; | |
color: #BADB01; | |
font-size: 22px; | |
} | |
div.dataTables_filter { | |
float: right; | |
margin-right: 7em; | |
color: #BADB01; | |
font-size: 22px; | |
} | |
div.dataTables_info { | |
padding: 14px 0px; | |
float: left; | |
margin-left: 8em; color: #BADB01; | |
font-size: 19px; | |
} | |
div.dataTables_paginate { | |
float: right; | |
margin: 5px 145px; | |
font-size: 19px; | |
} | |
div.dataTables_length, | |
div.dataTables_filter, | |
div.dataTables_paginate { | |
padding: 6px; | |
} | |
/* Self clearing - http://www.webtoolkit.info/css-clearfix.html */ | |
.dataTables_wrapper:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; | |
} | |
html[xmlns] .dataTables_wrapper { | |
display: block; | |
} | |
* html .dataTables_wrapper { | |
height: 1%; | |
} | |
/* | |
* Table styles | |
*/ | |
table.pretty { | |
width: 100%; | |
clear: both; | |
} | |
table.pretty td, | |
table.pretty th { | |
padding: 5px; | |
border: 1px solid #fff; | |
} | |
/* Header cells */ | |
table.pretty thead th { | |
text-align: center; | |
background: #66a9bd; | |
} | |
/* Body cells */ | |
table.pretty tbody th { | |
text-align: left; | |
background: #91c5d4; | |
} | |
table.pretty tbody td { | |
text-align: center; | |
background: #d5eaf0; | |
} | |
table.pretty tbody tr.odd td { | |
background: #bcd9e1; | |
} | |
/* Footer cells */ | |
table.pretty tfoot th { | |
background: #b0cc7f; | |
text-align: left; | |
} | |
table.pretty tfoot td { | |
background: #d7e1c5; | |
text-align: center; | |
font-weight: bold; | |
} | |
/* | |
* Pagination | |
*/ | |
a.paginate_button, | |
a.paginate_active { | |
display: inline-block; | |
background-color: #608995; | |
padding: 2px 6px; | |
margin-left: 2px; | |
cursor: pointer; | |
*cursor: hand; | |
} | |
a.paginate_active { | |
background-color: transparent; | |
border: 1px solid black; | |
} | |
a.paginate_button_disabled { | |
color: #3d6672; | |
} | |
.paging_full_numbers a:active { | |
outline: none | |
} | |
.paging_full_numbers a:hover { | |
text-decoration: none; | |
} | |
div.dataTables_paginate span>a { | |
width: 15px; | |
text-align: center; | |
} | |
/* | |
* Sorting | |
*/ | |
table.pretty thead th.sorting_asc { | |
background: #66A9BD url('images/sort_asc.png') no-repeat right center; | |
} | |
table.pretty thead th.sorting_desc { | |
background: #66A9BD url('images/sort_desc.png') no-repeat right center; | |
} | |
table.pretty thead th.sorting { | |
background: #66A9BD url('images/sort_both.png') no-repeat right center; | |
} | |
.dataTables_paginate a { | |
background-color: #E4E4E4; | |
border-radius: 10px; | |
margin: 2px; | |
padding: 0 5px; | |
color: #7585C9; | |
} | |
tr.odd { | |
background-color: #C7C7C7; | |
} | |
tr.even { | |
background-color: #F0ECE5; | |
} | |
tr.odd:hover { | |
background-color: #BADA33; | |
} | |
tr.even:hover { | |
background-color: #BADA33; | |
} | |
.dataTables_wrapper select { | |
font-size: 17px; | |
background-color: inherit; | |
border-radius: 10px; | |
border-color: inherit; | |
} | |
.dataTables_filter input { | |
font-size: 15px; | |
background-color: inherit; | |
border-radius: 10px; | |
border-color: inherit; | |
padding-left: 10px; | |
} | |
.dataTable thead { | |
background-color: #61B4C3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment