Skip to content

Instantly share code, notes, and snippets.

@MuratOrs
Created Sep 8, 2018
Embed
What would you like to do?
Цикл в Sass для перебора цветов
$colors: $blue, $red, $accent
@for $i from 1 through length($colors)
.carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i}),
.carousel-services-aside .owl-item:nth-child(#{length($colors)}n+#{$i})
background-color: nth($colors, $i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment