Skip to content

Instantly share code, notes, and snippets.

@JamyGolden
JamyGolden / _retina-sprite.scss
Last active December 22, 2015 08:58 — forked from wanderingmatt/_retina-sprite.scss
Retina Sprite. A Compass mixin that applies larger sprite images for retina devices.
// Retina Sprite
// Mixin takes a two sprite maps, one normal and one retina. It then swaps
// out the sprite images, repositions and resizes the images accordingly
//
// Rules
//
// Image names within the sprites should match. For example logo.png should
// exist within both folders. If the image doesn't exist within the retina
// sprite, the image will fallback to the image that does exist.
//