From 1d1bd62598f309eeffb9fa4e277e02b633520a7f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 23 Jul 2013 22:27:49 -0700 Subject: Fixes #8571: allow table classes in thead and tfoot --- less/tables.less | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'less') diff --git a/less/tables.less b/less/tables.less index c75e9100e..5f1c4dbf4 100644 --- a/less/tables.less +++ b/less/tables.less @@ -152,9 +152,12 @@ table { // Table backgrounds // ----------------- -// Exact selectors below required to override .table-striped +// Exact selectors below required to override `.table-striped` and prevent +// inheritance to nested tables. -.table > tbody > tr { +.table > thead > tr, +.table > tbody > tr, +.table > tfoot > tr { > td.active, > th.active, &.active > td { @@ -180,7 +183,8 @@ table { } } -// Hover states for .table-hover +// Hover states for `.table-hover` +// Note: this is not available for cells or rows within `thead` or `tfoot`. .table-hover > tbody > tr { > td.success:hover, > th.success:hover, -- cgit v1.2.3