Commit 5b12736f authored by Mark Otto's avatar Mark Otto

Merge pull request #10741 from ZDroid/patch-1

Avoid LESS nesting if isn't needed
parents ed44a325 2304ba6a
......@@ -91,14 +91,12 @@ th {
}
}
}
> thead {
> tr {
> thead > tr {
> th,
> td {
border-bottom-width: 2px;
}
}
}
}
......@@ -106,15 +104,11 @@ th {
//
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped {
> tbody {
> tr:nth-child(odd) {
.table-striped > tbody > tr:nth-child(odd) {
> td,
> th {
background-color: @table-bg-accent;
}
}
}
}
......@@ -122,15 +116,11 @@ th {
//
// Placed here since it has to come after the potential zebra striping
.table-hover {
> tbody {
> tr: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;
......
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