1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-02 18:02:37 +02:00

Fixes #8571: allow table classes in thead and tfoot

This commit is contained in:
Mark Otto
2013-07-23 22:27:49 -07:00
parent a346ea2a1a
commit 1d1bd62598
3 changed files with 36 additions and 8 deletions

View File

@@ -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,