caliber-i
10/17/2017 - 2:59 PM

Different colour for each li.

Different colour for each li.

$colors: $red, $yellow, $green, $blue;
@for $i from 1 through length($colors) {
  li:nth-of-type(#{$i}) {
    color: nth($colors, $i);
  }
}