1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Fix - CSS: Improved interoperability for setting background colour on header cells

Previously the CSS shorthand `background` was used for the background of
the header cells, but this makes it a good deal more difficult to set
the background colour if you want to since `transparent` is implicit in
the shorthand used. This method, although a bit longer in CSS is still
fairly simple and a lot more flexible
This commit is contained in:
Allan Jardine 2015-02-27 16:29:44 +00:00
parent 16c48ad4bf
commit ba62dcba43
3 changed files with 17 additions and 9 deletions

View File

@ -1 +1 @@
60c3f170f1f79f0fb3d4326ad3717f651fadd136
f4d088020e88ecb2e079f61254934acec7026ec2

View File

@ -32,26 +32,34 @@ table.dataTable tfoot td {
padding: 10px 18px 6px 18px;
border-top: 1px solid #111111;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting {
table.dataTable thead .sorting_desc {
cursor: pointer;
*cursor: hand;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
background-repeat: no-repeat;
background-position: center right;
}
table.dataTable thead .sorting {
background: url("../images/sort_both.png") no-repeat center right;
background-image: url("../images/sort_both.png");
}
table.dataTable thead .sorting_asc {
background: url("../images/sort_asc.png") no-repeat center right;
background-image: url("../images/sort_asc.png");
}
table.dataTable thead .sorting_desc {
background: url("../images/sort_desc.png") no-repeat center right;
background-image: url("../images/sort_desc.png");
}
table.dataTable thead .sorting_asc_disabled {
background: url("../images/sort_asc_disabled.png") no-repeat center right;
background-image: url("../images/sort_asc_disabled.png");
}
table.dataTable thead .sorting_desc_disabled {
background: url("../images/sort_desc_disabled.png") no-repeat center right;
background-image: url("../images/sort_desc_disabled.png");
}
table.dataTable tbody tr {
background-color: white;

File diff suppressed because one or more lines are too long