Simplify nth-child selectors
Using `nth-child(odd), nth-child(even)` is the same as selecting all the elements.
This commit is contained in:
@@ -46,8 +46,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-milestones .timeline ul li:nth-child(odd),
|
.tab-milestones .timeline ul li {
|
||||||
.tab-milestones .timeline ul li:nth-child(even) {
|
|
||||||
|
|
||||||
.milestone-content {
|
.milestone-content {
|
||||||
|
|
||||||
@@ -59,27 +58,27 @@
|
|||||||
width: rem-calc(450);
|
width: rem-calc(450);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.tab-milestones .timeline ul li:nth-child(odd) {
|
&:nth-child(odd) {
|
||||||
|
|
||||||
.milestone-content {
|
.milestone-content {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
@include breakpoint(medium) {
|
@include breakpoint(medium) {
|
||||||
margin-left: rem-calc(-315);
|
margin-left: rem-calc(-315);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include breakpoint(large) {
|
@include breakpoint(large) {
|
||||||
margin-left: rem-calc(-465);
|
margin-left: rem-calc(-465);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.tab-milestones .timeline ul li:nth-child(even) {
|
&:nth-child(even) {
|
||||||
|
|
||||||
.milestone-content {
|
.milestone-content {
|
||||||
left: 15px;
|
left: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user