Debian Codegraph @

sass-spec/spec/libsass-closed-issues/issue_2374/input.scss

raw
1 $colors: (
2 yellow: #ffeb3b
3 );
4 @each $name, $color in $colors {
5 $amount: 40;
6 @for $i from 0 through 9 {
7 .#{$name}-#{($i*100)} { background-color: lighten($color, $amount) };
8 $amount: $amount - 2;
9 }
10 }
11
12 $colors: (
13 yellow: yellow,
14 red: red,
15 blue: blue,
16
17 );
18 @each $name, $color in $colors {
19 @for $i from 0 through 2 {
20 .#{$name}-#{($i*100)} {
21 background-color: lighten($color, 10)
22 };
23 }
24 }
25