Created
October 19, 2017 05:19
-
-
Save stanruss/56e8c9bb472b58e171c23622a2a9504d to your computer and use it in GitHub Desktop.
Чередование цветов элемента
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: $font-color, $active-link | |
@for $i from 1 through length($colors) | |
section: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