Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb781e2
)
stylus-helpers: don't set background color on sprites
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 2 Jan 2015 20:44:14 +0000
(15:44 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 2 Jan 2015 20:44:14 +0000
(15:44 -0500)
stylus-helpers.styl
patch
|
blob
|
history
diff --git
a/stylus-helpers.styl
b/stylus-helpers.styl
index
3d7373a
..
63e917e
100644
(file)
--- 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)
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
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)
// 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
for n in (0...count)
&.n{n}
y = - (@height * n) - h-offset