1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Dev fix: Background row colour was only being used if the display or

stripe class was added.
This commit is contained in:
Allan Jardine 2013-12-20 12:01:27 +00:00
parent 1fffb2f5d1
commit f3a7f909bb
3 changed files with 13 additions and 13 deletions

View File

@ -1 +1 @@
a1645fa296bf6223bd274b0f574cc00f03173f5c
edb86ae044f713f531cfd4ff945034901f50f82a

View File

@ -57,6 +57,12 @@ table.dataTable thead .sorting_asc_disabled {
table.dataTable thead .sorting_desc_disabled {
background: url("../images/sort_desc_disabled.png") no-repeat center right;
}
table.dataTable tbody tr {
background-color: white;
}
table.dataTable tbody tr.selected {
background-color: #b0bed9;
}
table.dataTable tbody th,
table.dataTable tbody td {
padding: 8px 10px;
@ -96,12 +102,6 @@ table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
table.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected {
background-color: #abb9d3;
}
table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even {
background-color: white;
}
table.dataTable.stripe tbody tr.even.selected, table.dataTable.display tbody tr.even.selected {
background-color: #b0bed9;
}
table.dataTable.hover tbody tr:hover,
table.dataTable.hover tbody tr.odd:hover,
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,

View File

@ -50,6 +50,12 @@ table.dataTable thead th.ui-state-default {
table.dataTable thead th.ui-state-default:last-child {
border-right-width: 1px;
}
table.dataTable tbody tr {
background-color: white;
}
table.dataTable tbody tr.selected {
background-color: #b0bed9;
}
table.dataTable tbody th,
table.dataTable tbody td {
padding: 8px 10px;
@ -89,12 +95,6 @@ table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
table.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected {
background-color: #abb9d3;
}
table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even {
background-color: white;
}
table.dataTable.stripe tbody tr.even.selected, table.dataTable.display tbody tr.even.selected {
background-color: #b0bed9;
}
table.dataTable.hover tbody tr:hover,
table.dataTable.hover tbody tr.odd:hover,
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,