JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
stylus-helpers: don't set background color on sprites
authorJason Woofenden <jason@jasonwoof.com>
Fri, 2 Jan 2015 20:44:14 +0000 (15:44 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 2 Jan 2015 20:44:14 +0000 (15:44 -0500)
stylus-helpers.styl

index 3d7373a..63e917e 100644 (file)
@@ -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