Introduction
This mixin will only replace value of property background-image
fro original URL path to DataURI.
Based on
compass/css3/images
Support 1-10 background image(s) as arguments of background-image in compass.
datauri-bg($image-1, [$image-2],…, [$image-10]);
Use class
lt-ie9
in<html>
tag as html5-boilerplate to determine if current browser is IE6-8 or not.Image created by
linear-gradient
will be skipped.
Example
1 | @import "datauri-bg"; |