From e9646530d44ce4d74fc4c8e39f9080360689c517 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 2 Jan 2015 15:44:14 -0500 Subject: [PATCH] stylus-helpers: don't set background color on sprites --- stylus-helpers.styl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 1.7.10.4