An automated SASS base64 inline image generator
Python Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
scour
.gitignore
LICENSE.md
readme.md
url64.rb

readme.md

SASS-Base64

An automated SASS base64 inline image generator

Installation

gem install sass
gem install smusher

Starting SASS from the command line

When starting SASS from the command line, be sure to invoke the url64 module:

sass --watch sass:css -r ./sass/functions/url64.rb

Usage

Accepts a variety of formats (GIF/JPG/PNG/SVG), in any CSS declaration. Use url64 anywhere you would use a plain old url. For example:

background-image: url64("../images/image.png")

NB: Be sure to use quotes around your URL, otherwise SASS will throw an error.