Opeoluwa• 330
@Opeoluwa-Ogunlaja
Posted
Hey Eduardo,
- Sass has a for loop feature that can simplify things for you. E.g;
@for $i from 1 through 4 {
.socialProof__reviews:nth-child(#{$i}) {
margin-left: calc(#{$i} * 1rem) (... Just an example)
}
}
- Not really a direct solution though, but it would be good to learn sass for future purposes.
- Hope this was helpful 🙂
0