Sass @each with multiple variables

前端 未结 5 1679
生来不讨喜
生来不讨喜 2020-11-30 01:58

I\'m just getting started with Sass and Compass, and I\'m loving it. Something I\'d like to do is take advantage of the @each function to simplify repetitive ta

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 02:48

    Another way I used if anyone needs it:

    $i:0;
    @each $name in facebook, twitter, google_plus, instagram, youtube, pinterest {
        $i:$i+1;
    }
    

提交回复
热议问题