From: Jason Woofenden Date: Thu, 18 May 2017 18:55:03 +0000 (-0400) Subject: spritesheets: no background-repeat X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=ebd28f9548c9723fab12e3cb725db9a3b1530992 spritesheets: no background-repeat --- diff --git a/stylus_helpers.styl b/stylus_helpers.styl index 8229b07..93b3ae3 100644 --- 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