Use actual list length in scss loop

This commit is contained in:
Maciej Matuszewski 2018-01-12 18:41:56 +01:00
parent 6a272da65b
commit cfb331133e

View File

@ -40,7 +40,7 @@
&__profile {
margin-bottom: 20px;
@for $i from 1 through 8 {
@for $i from 1 through length($profile-colors) {
&:nth-of-type(#{$i}) {
color: nth($profile-colors, $i);
}