Simplify milestones styles for small devices
The selector `nth-child(even)` didn't need specific rules, and it's easier to understand the code for the selector `nth-child(odd)` if all breakpoints are grouped together.
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
position: relative;
|
||||
width: 0;
|
||||
|
||||
@include breakpoint(small only) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: $budget;
|
||||
border-radius: rem-calc(20);
|
||||
@@ -65,6 +69,11 @@
|
||||
@include breakpoint(large) {
|
||||
margin-left: rem-calc(-465);
|
||||
}
|
||||
|
||||
@include breakpoint(small only) {
|
||||
left: 15px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,24 +85,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.tab-milestones {
|
||||
@include breakpoint(small only) {
|
||||
|
||||
.timeline ul li {
|
||||
width: 100%;
|
||||
|
||||
&:nth-child(odd),
|
||||
&:nth-child(even) {
|
||||
|
||||
.milestone-content {
|
||||
left: 15px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.milestone-status {
|
||||
background: $budget;
|
||||
border-radius: rem-calc(4);
|
||||
|
||||
Reference in New Issue
Block a user