From 798e64cebf60e1d0d75b0c1c8f1cedfc259130cd Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 6 Nov 2013 18:32:35 -0800 Subject: use nesting to make .table-striped & .table-hover mixin-able again; fixes #11387 --- less/tables.less | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'less') diff --git a/less/tables.less b/less/tables.less index 0deadc782..55d5aa0e1 100644 --- a/less/tables.less +++ b/less/tables.less @@ -104,10 +104,12 @@ th { // // Default zebra-stripe styles (alternating gray and transparent backgrounds) -.table-striped > tbody > tr:nth-child(odd) { - > td, - > th { - background-color: @table-bg-accent; +.table-striped { + > tbody > tr:nth-child(odd) { + > td, + > th { + background-color: @table-bg-accent; + } } } @@ -116,10 +118,12 @@ th { // // Placed here since it has to come after the potential zebra striping -.table-hover > tbody > tr:hover { - > td, - > th { - background-color: @table-bg-hover; +.table-hover { + > tbody > tr:hover { + > td, + > th { + background-color: @table-bg-hover; + } } } -- cgit v1.2.3