From cfb331133e854d4198efcb350ee780662a47ae3f Mon Sep 17 00:00:00 2001 From: Maciej Matuszewski Date: Fri, 12 Jan 2018 18:41:56 +0100 Subject: [PATCH] Use actual list length in scss loop --- src/styles/components/_team.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/components/_team.scss b/src/styles/components/_team.scss index be13d76..e09db57 100644 --- a/src/styles/components/_team.scss +++ b/src/styles/components/_team.scss @@ -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); }