use nesting to make .table-striped & .table-hover mixin-able again; fixes #11387

This commit is contained in:
Chris Rebert 2013-11-06 18:32:35 -08:00
parent 3887f540b9
commit 798e64cebf
2 changed files with 13 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -104,24 +104,28 @@ th {
// //
// Default zebra-stripe styles (alternating gray and transparent backgrounds) // Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped > tbody > tr:nth-child(odd) { .table-striped {
> tbody > tr:nth-child(odd) {
> td, > td,
> th { > th {
background-color: @table-bg-accent; background-color: @table-bg-accent;
} }
} }
}
// Hover effect // Hover effect
// //
// Placed here since it has to come after the potential zebra striping // Placed here since it has to come after the potential zebra striping
.table-hover > tbody > tr:hover { .table-hover {
> tbody > tr:hover {
> td, > td,
> th { > th {
background-color: @table-bg-hover; background-color: @table-bg-hover;
} }
} }
}
// Table cell sizing // Table cell sizing