JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
spritesheets: no background-repeat
authorJason Woofenden <jason@jasonwoof.com>
Thu, 18 May 2017 18:55:03 +0000 (14:55 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 20 Dec 2017 17:21:05 +0000 (12:21 -0500)
stylus_helpers.styl

index 8229b07..93b3ae3 100644 (file)
@@ -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-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
                                        padding-top: unit(h / w * 100, '%')
                                selector_hover_before = selector + ":hover:before"
                                if args.hover