vendor/assets/stylesheets/bootstrap/_tables.scss in bootstrap-sass-3.0.1.0 vs vendor/assets/stylesheets/bootstrap/_tables.scss in bootstrap-sass-3.0.2.0
- old
+ new
@@ -102,26 +102,30 @@
// Zebra-striping
//
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
-.table-striped > tbody > tr:nth-child(odd) {
- > td,
- > th {
- background-color: $table-bg-accent;
+.table-striped {
+ > tbody > tr:nth-child(odd) {
+ > td,
+ > th {
+ background-color: $table-bg-accent;
+ }
}
}
// Hover effect
//
// Placed here since it has to come after the potential zebra striping
-.table-hover > tbody > tr:hover {
- > td,
- > th {
- background-color: $table-bg-hover;
+.table-hover {
+ > tbody > tr:hover {
+ > td,
+ > th {
+ background-color: $table-bg-hover;
+ }
}
}
// Table cell sizing
@@ -146,17 +150,21 @@
// Table backgrounds
//
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
-.table > thead > tr,
-.table > tbody > tr,
-.table > tfoot > tr {
- > td.active,
- > th.active,
- &.active > td,
- &.active > th {
- background-color: $table-bg-active;
+.table {
+ > thead,
+ > tbody,
+ > tfoot {
+ > tr {
+ > td.active,
+ > th.active,
+ &.active > td,
+ &.active > th {
+ background-color: $table-bg-active;
+ }
+ }
}
}
// Generate the contextual variants
@include table-row-variant('success', $state-success-bg, $state-success-border);