mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Fix zebra highlighting for child rows
This commit is contained in:
parent
4a984eb681
commit
17b728db21
@ -41,14 +41,18 @@
|
||||
}
|
||||
|
||||
/* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
|
||||
.tablesorter-bootstrap > tbody > tr.odd > td {
|
||||
.tablesorter-bootstrap > tbody > tr.odd > td,
|
||||
.tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.odd:hover ~ tr.tablesorter-hasChildRow.odd ~ .tablesorter-childRow.odd > td {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.tablesorter-bootstrap > tbody > tr.odd:hover > td,
|
||||
.tablesorter-bootstrap > tbody > tr.even:hover > td {
|
||||
.tablesorter-bootstrap > tbody > tr.even:hover > td,
|
||||
.tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.odd:hover ~ .tablesorter-childRow.odd > td,
|
||||
.tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.even:hover ~ .tablesorter-childRow.even > td {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.tablesorter-bootstrap > tbody > tr.even > td {
|
||||
.tablesorter-bootstrap > tbody > tr.even > td,
|
||||
.tablesorter-bootstrap > tbody > tr.tablesorter-hasChildRow.even:hover ~ tr.tablesorter-hasChildRow.even ~ .tablesorter-childRow.even > td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user