Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (18 sloc) 494 Bytes

Create a data-uri.

data-uri( url )

Parameters

  • url URL of an asset

url cannot be external, and must not be written with an http protocol prefix.

The following file extensions are supported: jpg, jpeg, gif, png, svg, svgz, ttf, woff

Returns

The created data-uri as a string inside a CSS url().

Examples

background: silver data-uri(../images/stripe.png);
background: silver url(data:<img-data>);