Skip to content

Instantly share code, notes, and snippets.

@orioltf
Created February 26, 2013 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orioltf/5037302 to your computer and use it in GitHub Desktop.
Save orioltf/5037302 to your computer and use it in GitHub Desktop.
/* Credit: http://germanforblack.com/post/43975575422/protip-all-browsers-that-support-svg-background-images */
.module {
background: url('logo.png');
background: none, url('logo.svg');
}
/* 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');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment