mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fixes #8571: allow table classes in thead and tfoot
This commit is contained in:
parent
a346ea2a1a
commit
1d1bd62598
3 changed files with 36 additions and 8 deletions
32
dist/css/bootstrap.css
vendored
32
dist/css/bootstrap.css
vendored
|
@ -1191,29 +1191,53 @@ table th[class^="col-"] {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table > thead > tr > td.active,
|
||||||
.table > tbody > 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 > 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;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table > thead > tr > td.success,
|
||||||
.table > tbody > 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 > 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;
|
background-color: #dff0d8;
|
||||||
border-color: #d6e9c6;
|
border-color: #d6e9c6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table > thead > tr > td.danger,
|
||||||
.table > tbody > 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 > 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;
|
background-color: #f2dede;
|
||||||
border-color: #eed3d7;
|
border-color: #eed3d7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table > thead > tr > td.warning,
|
||||||
.table > tbody > 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 > 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;
|
background-color: #fcf8e3;
|
||||||
border-color: #fbeed5;
|
border-color: #fbeed5;
|
||||||
}
|
}
|
||||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -152,9 +152,12 @@ table {
|
||||||
|
|
||||||
// Table backgrounds
|
// 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,
|
> td.active,
|
||||||
> th.active,
|
> th.active,
|
||||||
&.active > td {
|
&.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 {
|
.table-hover > tbody > tr {
|
||||||
> td.success:hover,
|
> td.success:hover,
|
||||||
> th.success:hover,
|
> th.success:hover,
|
||||||
|
|
Loading…
Add table
Reference in a new issue