diff options
| author | Luke Noel-Storr <[email protected]> | 2013-12-06 14:11:58 +0000 |
|---|---|---|
| committer | Luke Noel-Storr <[email protected]> | 2013-12-06 14:11:58 +0000 |
| commit | b92bee99efd95a4c0ae469e3a5f4004da0164578 (patch) | |
| tree | 23b3fa08da5a36a65256d0b9c104f484776f7641 /less | |
| parent | 7b06538c911f40c46ae67b0c0df7afdfbcb5d00a (diff) | |
| download | bootstrap-b92bee99efd95a4c0ae469e3a5f4004da0164578.tar.xz bootstrap-b92bee99efd95a4c0ae469e3a5f4004da0164578.zip | |
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
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/less/mixins.less b/less/mixins.less index 5c54c64c7..a820ad686 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -414,24 +414,24 @@ .table-row-variant(@state; @background) { // Exact selectors below required to override `.table-striped` and prevent // inheritance to nested tables. - .table { - > thead, - > tbody, - > tfoot { - > tr > .@{state}, - > .@{state} > td, - > .@{state} > th { - background-color: @background; - } + .table > thead > tr, + .table > tbody > tr, + .table > tfoot > tr { + > td.@{state}, + > th.@{state}, + &.@{state} > td, + &.@{state} > th { + background-color: @background; } } // Hover states for `.table-hover` // Note: this is not available for cells or rows within `thead` or `tfoot`. - .table-hover > tbody { - > tr > .@{state}:hover, - > .@{state}:hover > td, - > .@{state}:hover > th { + .table-hover > tbody > tr { + > td.@{state}:hover, + > th.@{state}:hover, + &.@{state}:hover > td, + &.@{state}:hover > th { background-color: darken(@background, 5%); } } |
