#CSS #SCSS #SVG: SVG background with fallback + mixin Credit: http://germanforblack.com/post/43975575422/protip-all-browsers-that-support-svg-background-images
/* Credit: http://germanforblack.com/post/43975575422/protip-all-browsers-that-support-svg-background-images */
$public_path: ./;
@mixin vector-bg-with-fallback($name) {
background-image: url('#{$public_path}images/#{$name}.png');
background-image: none, url('#{$public_path}images/#{$name}.svg');
}
/* Credit: http://germanforblack.com/post/43975575422/protip-all-browsers-that-support-svg-background-images */
.module {
background: url('logo.png');
background: none, url('logo.svg');
}