Commit 798e64ce authored by Chris Rebert's avatar Chris Rebert

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

parent 3887f540
This diff is collapsed.
...@@ -104,11 +104,13 @@ th { ...@@ -104,11 +104,13 @@ 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;
} }
}
} }
...@@ -116,11 +118,13 @@ th { ...@@ -116,11 +118,13 @@ th {
// //
// 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;
} }
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment