From 17b728db217d6a71138959b5ba4c86a848686939 Mon Sep 17 00:00:00 2001 From: Ilya Igonkin Date: Thu, 3 Apr 2014 11:43:51 +0600 Subject: [PATCH] Fix zebra highlighting for child rows --- css/theme.bootstrap.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/css/theme.bootstrap.css b/css/theme.bootstrap.css index e1a30f7a..acae1b83 100644 --- a/css/theme.bootstrap.css +++ b/css/theme.bootstrap.css @@ -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; }