読了: 約 1 分
今更感があるけどメモ。
普通はiconの画像も連番にするけど、しないときのやり方。
配列はカンマで区切る。
$icon-img : tx_tokubetu_camp, tx_tokubetu_news, tx_tokubetu_an;
@for $i from 1 through 3{
.icon#{$i}{
@include sprites($map-photosIndex, nth($icon-img,$i) , false);
}
}
所感。
宗教戦争にならなければ、やっぱり画像パスも連番にした方が良い。