Skip to content

Instantly share code, notes, and snippets.

View cmwint's full-sized avatar

Corinne Winthrop cmwint

View GitHub Profile
@cmwint
cmwint / responsivebgimages.txt
Last active May 23, 2017 02:33
Responsive Background Images
/*------------------------------------*\
::Add Background Images
----------------------------------*
Usage:
For responsive background images, use an array containing
breakpoints and image paths. Remember the cascade!
To just add a single, non-responsive image (e.g. an SVG), use a
string instead of an array with just the image path, no breakpoints.
You can also pass in 'pseudo' => ':before' or any other pseudo
selector (:after, :hover, etc.) if you'd like, but it's optional.