aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-09-22 07:25:33 -0700
committerMark Otto <[email protected]>2013-09-22 07:25:33 -0700
commit5b12736fb79d826f231032b3e927057cec28bc34 (patch)
treeb371ee246ecbc04abc51b9af60c66d3c07ce9bcf
parented44a3255c45ea84f58af2d70f977fc1a7893512 (diff)
parent2304ba6a256b55f79772ace77a04466790bcb161 (diff)
downloadbootstrap-5b12736fb79d826f231032b3e927057cec28bc34.tar.xz
bootstrap-5b12736fb79d826f231032b3e927057cec28bc34.zip
Merge pull request #10741 from ZDroid/patch-1
Avoid LESS nesting if isn't needed
-rw-r--r--less/tables.less36
1 files changed, 13 insertions, 23 deletions
diff --git a/less/tables.less b/less/tables.less
index 35291750a..f9f0041e4 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -91,12 +91,10 @@ th {
}
}
}
- > thead {
- > tr {
- > th,
- > td {
- border-bottom-width: 2px;
- }
+ > thead > tr {
+ > th,
+ > td {
+ border-bottom-width: 2px;
}
}
}
@@ -106,14 +104,10 @@ th {
//
// 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;
}
}
@@ -122,14 +116,10 @@ th {
//
// 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;
}
}
@@ -191,7 +181,7 @@ table {
border: 1px solid @table-border-color;
-webkit-overflow-scrolling: touch;
- // Tighten up spacing and give a background color
+ // Tighten up spacing
> .table {
margin-bottom: 0;