【sass】擬似セレクタの繰り返し処理
sass勉強中… 便利なところ、不便なところが入り混じっている^^;
@for $i from 0 through 3 { li:nth-child(#{$i + 1}) { margin-bottom: #{50 * $i}px; }
擬似セレクタごとに50pxずつ足していくって感じ
forとかwhile とか、ループ文苦手…if文は好きだけど^^;
続きを読む">
WEB関連(主にコーディング、たまにデザイン)の備忘録。趣味も入ったり。
sass勉強中… 便利なところ、不便なところが入り混じっている^^;
@for $i from 0 through 3 { li:nth-child(#{$i + 1}) { margin-bottom: #{50 * $i}px; }
擬似セレクタごとに50pxずつ足していくって感じ
forとかwhile とか、ループ文苦手…if文は好きだけど^^;