Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$icons: (
camera: 'factsheet_bg.png',
ebook: 'library_bg.png',
newsletter: 'newsletter_bg.png',
pages: 'project_results_bg.png',
publications: 'publications_bg.png',
youtube: 'youtube_bg.png',
);
@each $class, $filename in $icons {
li.icon-#{$class} {
background: url('../images/#{$filename}') no-repeat 0 50% !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment