mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge pull request #567 from ilyai/patch-1
Zebra highlighting for child rows with Bootstrap theme
This commit is contained in:
commit
2882bc046e
@ -41,14 +41,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
|
/* 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;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
.tablesorter-bootstrap > tbody > tr.odd:hover > td,
|
.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;
|
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;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user