mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
reverted changes in commit 96109d3 which seemed to break conditional classes in striped tables (ignoring the comment above that the previous rules were needed for just this purpose)
fixes issue twbs/bootstrap#11728
This commit is contained in:
parent
7b06538c91
commit
b92bee99ef
112
dist/css/bootstrap.css
vendored
112
dist/css/bootstrap.css
vendored
@ -1731,75 +1731,91 @@ table th[class*="col-"] {
|
|||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table > thead > tr > .active,
|
.table > thead > tr > td.active,
|
||||||
.table > tbody > tr > .active,
|
.table > tbody > tr > td.active,
|
||||||
.table > tfoot > tr > .active,
|
.table > tfoot > tr > td.active,
|
||||||
.table > thead > .active > td,
|
.table > thead > tr > th.active,
|
||||||
.table > tbody > .active > td,
|
.table > tbody > tr > th.active,
|
||||||
.table > tfoot > .active > td,
|
.table > tfoot > tr > th.active,
|
||||||
.table > thead > .active > th,
|
.table > thead > tr.active > td,
|
||||||
.table > tbody > .active > th,
|
.table > tbody > tr.active > td,
|
||||||
.table > tfoot > .active > th {
|
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-hover > tbody > tr > .active:hover,
|
.table-hover > tbody > tr > td.active:hover,
|
||||||
.table-hover > tbody > .active:hover > td,
|
.table-hover > tbody > tr > th.active:hover,
|
||||||
.table-hover > tbody > .active:hover > th {
|
.table-hover > tbody > tr.active:hover > td,
|
||||||
|
.table-hover > tbody > tr.active:hover > th {
|
||||||
background-color: #e8e8e8;
|
background-color: #e8e8e8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table > thead > tr > .success,
|
.table > thead > tr > td.success,
|
||||||
.table > tbody > tr > .success,
|
.table > tbody > tr > td.success,
|
||||||
.table > tfoot > tr > .success,
|
.table > tfoot > tr > td.success,
|
||||||
.table > thead > .success > td,
|
.table > thead > tr > th.success,
|
||||||
.table > tbody > .success > td,
|
.table > tbody > tr > th.success,
|
||||||
.table > tfoot > .success > td,
|
.table > tfoot > tr > th.success,
|
||||||
.table > thead > .success > th,
|
.table > thead > tr.success > td,
|
||||||
.table > tbody > .success > th,
|
.table > tbody > tr.success > td,
|
||||||
.table > tfoot > .success > th {
|
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-hover > tbody > tr > .success:hover,
|
.table-hover > tbody > tr > td.success:hover,
|
||||||
.table-hover > tbody > .success:hover > td,
|
.table-hover > tbody > tr > th.success:hover,
|
||||||
.table-hover > tbody > .success:hover > th {
|
.table-hover > tbody > tr.success:hover > td,
|
||||||
|
.table-hover > tbody > tr.success:hover > th {
|
||||||
background-color: #d0e9c6;
|
background-color: #d0e9c6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table > thead > tr > .danger,
|
.table > thead > tr > td.danger,
|
||||||
.table > tbody > tr > .danger,
|
.table > tbody > tr > td.danger,
|
||||||
.table > tfoot > tr > .danger,
|
.table > tfoot > tr > td.danger,
|
||||||
.table > thead > .danger > td,
|
.table > thead > tr > th.danger,
|
||||||
.table > tbody > .danger > td,
|
.table > tbody > tr > th.danger,
|
||||||
.table > tfoot > .danger > td,
|
.table > tfoot > tr > th.danger,
|
||||||
.table > thead > .danger > th,
|
.table > thead > tr.danger > td,
|
||||||
.table > tbody > .danger > th,
|
.table > tbody > tr.danger > td,
|
||||||
.table > tfoot > .danger > th {
|
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-hover > tbody > tr > .danger:hover,
|
.table-hover > tbody > tr > td.danger:hover,
|
||||||
.table-hover > tbody > .danger:hover > td,
|
.table-hover > tbody > tr > th.danger:hover,
|
||||||
.table-hover > tbody > .danger:hover > th {
|
.table-hover > tbody > tr.danger:hover > td,
|
||||||
|
.table-hover > tbody > tr.danger:hover > th {
|
||||||
background-color: #ebcccc;
|
background-color: #ebcccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table > thead > tr > .warning,
|
.table > thead > tr > td.warning,
|
||||||
.table > tbody > tr > .warning,
|
.table > tbody > tr > td.warning,
|
||||||
.table > tfoot > tr > .warning,
|
.table > tfoot > tr > td.warning,
|
||||||
.table > thead > .warning > td,
|
.table > thead > tr > th.warning,
|
||||||
.table > tbody > .warning > td,
|
.table > tbody > tr > th.warning,
|
||||||
.table > tfoot > .warning > td,
|
.table > tfoot > tr > th.warning,
|
||||||
.table > thead > .warning > th,
|
.table > thead > tr.warning > td,
|
||||||
.table > tbody > .warning > th,
|
.table > tbody > tr.warning > td,
|
||||||
.table > tfoot > .warning > th {
|
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-hover > tbody > tr > .warning:hover,
|
.table-hover > tbody > tr > td.warning:hover,
|
||||||
.table-hover > tbody > .warning:hover > td,
|
.table-hover > tbody > tr > th.warning:hover,
|
||||||
.table-hover > tbody > .warning:hover > th {
|
.table-hover > tbody > tr.warning:hover > td,
|
||||||
|
.table-hover > tbody > tr.warning:hover > th {
|
||||||
background-color: #faf2cc;
|
background-color: #faf2cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -414,24 +414,24 @@
|
|||||||
.table-row-variant(@state; @background) {
|
.table-row-variant(@state; @background) {
|
||||||
// Exact selectors below required to override `.table-striped` and prevent
|
// Exact selectors below required to override `.table-striped` and prevent
|
||||||
// inheritance to nested tables.
|
// inheritance to nested tables.
|
||||||
.table {
|
.table > thead > tr,
|
||||||
> thead,
|
.table > tbody > tr,
|
||||||
> tbody,
|
.table > tfoot > tr {
|
||||||
> tfoot {
|
> td.@{state},
|
||||||
> tr > .@{state},
|
> th.@{state},
|
||||||
> .@{state} > td,
|
&.@{state} > td,
|
||||||
> .@{state} > th {
|
&.@{state} > th {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover states for `.table-hover`
|
// Hover states for `.table-hover`
|
||||||
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
||||||
.table-hover > tbody {
|
.table-hover > tbody > tr {
|
||||||
> tr > .@{state}:hover,
|
> td.@{state}:hover,
|
||||||
> .@{state}:hover > td,
|
> th.@{state}:hover,
|
||||||
> .@{state}:hover > th {
|
&.@{state}:hover > td,
|
||||||
|
&.@{state}:hover > th {
|
||||||
background-color: darken(@background, 5%);
|
background-color: darken(@background, 5%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user