Created
September 3, 2013 05:18
-
-
Save saki007ster/6419940 to your computer and use it in GitHub Desktop.
From http://groundwork.sidereel.com/mixins
Inline data URI
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
@mixin data-image($file) { | |
background-image:url('../images/#{$file}'); // fallback | |
background-image:inline-image($file); // data URI | |
*background-image:url('../images/#{$file}'); // IE7- hack | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment