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

@ -1191,29 +1191,53 @@ table th[class^="col-"] {
float: none;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tbody > tr.active > td {
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td {
background-color: #f5f5f5;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tbody > tr.success > td {
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td {
background-color: #dff0d8;
border-color: #d6e9c6;
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tbody > tr.danger > td {
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td {
background-color: #f2dede;
border-color: #eed3d7;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tbody > tr.warning > td {
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td {
background-color: #fcf8e3;
border-color: #fbeed5;
}

File diff suppressed because one or more lines are too long

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,