Created
March 23, 2017 15:45
-
-
Save ahaywood/cfcbb3482f3c67fb440ae82a4d11b160 to your computer and use it in GitHub Desktop.
Sass @each loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$list: “Amy”, “Henry”, “Isaac”, “Adele”; | |
@each $person in $list { | |
.avatar—#{$person} { | |
background: url(‘avatars/#{$person}.jpg”) no-repeat; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment