我的颜色值在外部定义过了,分别是$task-run-status-green-color
,$task-run-status-red-color
等等。。。;
要想通过拼接使用这几个变量该怎么写?
$list: 'green','red','blue','purple','orange','gray';
@for $i from 1 through 6 {
.#{nth($list,$i)} {
color: $task-run-status-#{nth($list,$i)}-color; // 这句应该怎么拼接才对???,我这样写是不对的
.seal-icon {
color: nth($colorList, $i);
}
}
}