Created
April 26, 2015 12:06
-
-
Save airen/53539ccae42f80128790 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$list: adam john wynn mason kuroir; | |
@mixin author-images { | |
@each $author in $list { | |
.photo-#{$author} { | |
background: url("/images/avatars/#{$author}.png") no-repeat; | |
} | |
} | |
} | |
.author-bio { | |
@include author-images; | |
} |
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
.author-bio .photo-adam { | |
background: url("/images/avatars/adam.png") no-repeat; | |
} | |
.author-bio .photo-john { | |
background: url("/images/avatars/john.png") no-repeat; | |
} | |
.author-bio .photo-wynn { | |
background: url("/images/avatars/wynn.png") no-repeat; | |
} | |
.author-bio .photo-mason { | |
background: url("/images/avatars/mason.png") no-repeat; | |
} | |
.author-bio .photo-kuroir { | |
background: url("/images/avatars/kuroir.png") no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment