Created
September 8, 2018 12:32
-
-
Save MuratOrs/b4551d4db64ec85f8caa63f597b0888a to your computer and use it in GitHub Desktop.
Цикл в Sass для перебора цветов
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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