From: Jason Woofenden Date: Fri, 2 Jan 2015 20:44:14 +0000 (-0500) Subject: stylus-helpers: don't set background color on sprites X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=e9646530d44ce4d74fc4c8e39f9080360689c517 stylus-helpers: don't set background color on sprites --- diff --git a/stylus-helpers.styl b/stylus-helpers.styl index 3d7373a..63e917e 100644 --- a/stylus-helpers.styl +++ b/stylus-helpers.styl @@ -95,7 +95,9 @@ space-evenly(line_height = 1.2em) sprites-rollover(image, width, height, count, h-offset = 0) width: unit(width, px) height: unit(height, px) - background: transparent url(image) top left no-repeat; + background-image: url(image) + background-position: top left + background-repeat: no-repeat; for n in (0...count) &.n{n} y = - (@height * n) - h-offset @@ -105,7 +107,9 @@ sprites-rollover(image, width, height, count, h-offset = 0) // see sprites-rollover sprites(image, height, count, h-offset = 0) height: unit(height, px) - background: transparent url(image) top left no-repeat; + background-image: url(image) + background-position: top left + background-repeat: no-repeat; for n in (0...count) &.n{n} y = - (@height * n) - h-offset