mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
use nesting to make .table-striped & .table-hover mixin-able again; fixes #11387
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+12
-8
@@ -104,10 +104,12 @@ 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 {
|
||||||
> td,
|
> tbody > tr:nth-child(odd) {
|
||||||
> th {
|
> td,
|
||||||
background-color: @table-bg-accent;
|
> th {
|
||||||
|
background-color: @table-bg-accent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,10 +118,12 @@ 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 {
|
||||||
> td,
|
> tbody > tr:hover {
|
||||||
> th {
|
> td,
|
||||||
background-color: @table-bg-hover;
|
> th {
|
||||||
|
background-color: @table-bg-hover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user