aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-23 22:27:49 -0700
committerMark Otto <[email protected]>2013-07-23 22:27:49 -0700
commit1d1bd62598f309eeffb9fa4e277e02b633520a7f (patch)
tree6de7a8d5cf6305a51244db767a529e0ecf5f2619 /less
parenta346ea2a1a595fec447e3a86b2e14a504bd57456 (diff)
downloadbootstrap-1d1bd62598f309eeffb9fa4e277e02b633520a7f.tar.xz
bootstrap-1d1bd62598f309eeffb9fa4e277e02b633520a7f.zip
Fixes #8571: allow table classes in thead and tfoot
Diffstat (limited to 'less')
-rw-r--r--less/tables.less10
1 files changed, 7 insertions, 3 deletions
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,