Simplify nth-child selectors

Using `nth-child(odd), nth-child(even)` is the same as selecting all
the elements.
This commit is contained in:
Javi Martín
2019-01-10 10:35:16 +01:00
committed by decabeza
parent 51a4ca98ad
commit cb92d29ddc

View File

@@ -46,8 +46,7 @@
}
}
.tab-milestones .timeline ul li:nth-child(odd),
.tab-milestones .timeline ul li:nth-child(even) {
.tab-milestones .timeline ul li {
.milestone-content {
@@ -59,9 +58,8 @@
width: rem-calc(450);
}
}
}
.tab-milestones .timeline ul li:nth-child(odd) {
&:nth-child(odd) {
.milestone-content {
text-align: right;
@@ -74,13 +72,14 @@
margin-left: rem-calc(-465);
}
}
}
}
.tab-milestones .timeline ul li:nth-child(even) {
&:nth-child(even) {
.milestone-content {
left: 15px;
}
}
}
.tab-milestones {