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:
dfb559a
)
spritesheets: no background-repeat
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 18 May 2017 18:55:03 +0000
(14:55 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 20 Dec 2017 17:21:05 +0000
(12:21 -0500)
stylus_helpers.styl
patch
|
blob
|
history
diff --git
a/stylus_helpers.styl
b/stylus_helpers.styl
index
8229b07
..
93b3ae3
100644
(file)
--- a/
stylus_helpers.styl
+++ b/
stylus_helpers.styl
@@
-525,6
+525,7
@@
wfpl_spritesheets(hash)
background-position: _pct_pos(x, w, sheet.w) _pct_pos(y, h, sheet.h)
background-image: url((sheet['image']))
background-size: unit(sheet['w'] / w * 100, '%') auto
+ background-repeat: no-repeat
padding-top: unit(h / w * 100, '%')
selector_hover_before = selector + ":hover:before"
if args.hover