sasset:going_through_a_list_with_each
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | sasset:going_through_a_list_with_each [2016/04/02 14:50] (current) – created leo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |<- [[Looping through lists with @for]]|[[Working with the map data type]] ->| | ||
| + | @each | ||
| + | |||
| + | < | ||
| + | $color-names: | ||
| + | $colors: $red, $green, $blue; | ||
| + | |||
| + | @each $name in $color-names { | ||
| + | $i: index($color-names, | ||
| + | .btn-# | ||
| + | @extend %btn; | ||
| + | background-color: | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | La meilleure manière de procéder avec un nombre non connu (ou variable) d' | ||
sasset/going_through_a_list_with_each.txt · Last modified: 2016/04/02 14:50 by leo