mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #8571 completely: add better th support for table classes
This commit is contained in:
parent
d4cd7efce6
commit
768e7edabf
3 changed files with 25 additions and 9 deletions
20
dist/css/bootstrap.css
vendored
20
dist/css/bootstrap.css
vendored
|
@ -1198,7 +1198,10 @@ table th[class^="col-"] {
|
||||||
.table > tfoot > tr > th.active,
|
.table > tfoot > tr > th.active,
|
||||||
.table > thead > tr.active > td,
|
.table > thead > tr.active > td,
|
||||||
.table > tbody > tr.active > td,
|
.table > tbody > tr.active > td,
|
||||||
.table > tfoot > tr.active > td {
|
.table > tfoot > tr.active > td,
|
||||||
|
.table > thead > tr.active > th,
|
||||||
|
.table > tbody > tr.active > th,
|
||||||
|
.table > tfoot > tr.active > th {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1210,7 +1213,10 @@ table th[class^="col-"] {
|
||||||
.table > tfoot > tr > th.success,
|
.table > tfoot > tr > th.success,
|
||||||
.table > thead > tr.success > td,
|
.table > thead > tr.success > td,
|
||||||
.table > tbody > tr.success > td,
|
.table > tbody > tr.success > td,
|
||||||
.table > tfoot > tr.success > td {
|
.table > tfoot > tr.success > td,
|
||||||
|
.table > thead > tr.success > th,
|
||||||
|
.table > tbody > tr.success > th,
|
||||||
|
.table > tfoot > tr.success > th {
|
||||||
background-color: #dff0d8;
|
background-color: #dff0d8;
|
||||||
border-color: #d6e9c6;
|
border-color: #d6e9c6;
|
||||||
}
|
}
|
||||||
|
@ -1223,7 +1229,10 @@ table th[class^="col-"] {
|
||||||
.table > tfoot > tr > th.danger,
|
.table > tfoot > tr > th.danger,
|
||||||
.table > thead > tr.danger > td,
|
.table > thead > tr.danger > td,
|
||||||
.table > tbody > tr.danger > td,
|
.table > tbody > tr.danger > td,
|
||||||
.table > tfoot > tr.danger > td {
|
.table > tfoot > tr.danger > td,
|
||||||
|
.table > thead > tr.danger > th,
|
||||||
|
.table > tbody > tr.danger > th,
|
||||||
|
.table > tfoot > tr.danger > th {
|
||||||
background-color: #f2dede;
|
background-color: #f2dede;
|
||||||
border-color: #eed3d7;
|
border-color: #eed3d7;
|
||||||
}
|
}
|
||||||
|
@ -1236,7 +1245,10 @@ table th[class^="col-"] {
|
||||||
.table > tfoot > tr > th.warning,
|
.table > tfoot > tr > th.warning,
|
||||||
.table > thead > tr.warning > td,
|
.table > thead > tr.warning > td,
|
||||||
.table > tbody > tr.warning > td,
|
.table > tbody > tr.warning > td,
|
||||||
.table > tfoot > tr.warning > td {
|
.table > tfoot > tr.warning > td,
|
||||||
|
.table > thead > tr.warning > th,
|
||||||
|
.table > tbody > tr.warning > th,
|
||||||
|
.table > tfoot > tr.warning > th {
|
||||||
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
|
@ -160,24 +160,28 @@ table {
|
||||||
.table > tfoot > tr {
|
.table > tfoot > tr {
|
||||||
> td.active,
|
> td.active,
|
||||||
> th.active,
|
> th.active,
|
||||||
&.active > td {
|
&.active > td,
|
||||||
|
&.active > th {
|
||||||
background-color: @table-bg-hover;
|
background-color: @table-bg-hover;
|
||||||
}
|
}
|
||||||
> td.success,
|
> td.success,
|
||||||
> th.success,
|
> th.success,
|
||||||
&.success > td {
|
&.success > td,
|
||||||
|
&.success > th {
|
||||||
background-color: @state-success-bg;
|
background-color: @state-success-bg;
|
||||||
border-color: @state-success-border;
|
border-color: @state-success-border;
|
||||||
}
|
}
|
||||||
> td.danger,
|
> td.danger,
|
||||||
> th.danger,
|
> th.danger,
|
||||||
&.danger > td {
|
&.danger > td,
|
||||||
|
&.danger > th {
|
||||||
background-color: @state-danger-bg;
|
background-color: @state-danger-bg;
|
||||||
border-color: @state-danger-border;
|
border-color: @state-danger-border;
|
||||||
}
|
}
|
||||||
> td.warning,
|
> td.warning,
|
||||||
> th.warning,
|
> th.warning,
|
||||||
&.warning > td {
|
&.warning > td,
|
||||||
|
&.warning > th {
|
||||||
background-color: @state-warning-bg;
|
background-color: @state-warning-bg;
|
||||||
border-color: @state-warning-border;
|
border-color: @state-warning-border;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue