Last active
August 29, 2015 14:05
-
-
Save komplexb/22305d0aea3ef478b122 to your computer and use it in GitHub Desktop.
SASS for SVG icons with PNG fallback with pure CSS based on: http://www.callmenick.com/2014/04/02/svg-fallback-with-png/
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
@each $icon-name in email, twitter, linkedin { | |
@each $color in black, white { | |
.icon-#{$icon-name}-#{$color} { | |
background: url('../icons/#{$icon-name}-#{$color}.png'); | |
background-image: url('../icons/#{$icon-name}-#{$color}.svg'), none; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment