From b6cf4c437528abaed4e840d3feecf30d6971eab6 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 21 Aug 2014 12:12:34 -0500 Subject: [PATCH] background color for selected rows --- .../shared/datatables/css/dataTables.extra.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/inst/www/shared/datatables/css/dataTables.extra.css b/inst/www/shared/datatables/css/dataTables.extra.css index ecbdee952..9e6acbbfa 100644 --- a/inst/www/shared/datatables/css/dataTables.extra.css +++ b/inst/www/shared/datatables/css/dataTables.extra.css @@ -6,6 +6,23 @@ table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; } table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; } table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; } +table.dataTable tr.odd td.sorting_1 { background-color: #D3D6FF; } +table.dataTable tr.odd td.sorting_2 { background-color: #DADCFF; } +table.dataTable tr.odd td.sorting_3 { background-color: #E0E2FF; } +table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; } +table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; } +table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; } + +/* Selected rows */ +table.dataTable tbody tr.selected, +table.dataTable tr.selected td.sorting_1, +table.dataTable tr.selected td.sorting_2, +table.dataTable tr.selected td.sorting_3, +.table-striped tbody>tr.selected:nth-child(odd)>td, +.table-striped tbody>tr.selected:nth-child(even)>td { + background-color: #b0bed9; +} + /* Processing indicator */ .dataTables_processing { position: absolute;