Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dieppon/9256673 to your computer and use it in GitHub Desktop.
Save dieppon/9256673 to your computer and use it in GitHub Desktop.
@mixin svg-graphic($imgfilename, $imgtype, $imgwidth, $imgheight) {
background-image: url('../img/' + $imgfilename + '.' + $imgtype);
background-image: url('../img/' + $imgfilename + '.svg'), none;
background-size: $imgwidth $imgheight;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment