mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 09:48:01 -05:00
Prevent tiling of CSS sprites.
This commit is contained in:
@@ -157,7 +157,8 @@ def _rewrite_css(css_filename, sprite_path, images):
|
||||
|
||||
return ''.join((
|
||||
'background-image: url(%s);' % sprite_path,
|
||||
'background-position: -%dpx -%dpx;' % position
|
||||
'background-position: -%dpx -%dpx;' % position,
|
||||
'background-repeat: %s;' % ('repeat' if should_stretch else 'no-repeat'),
|
||||
))
|
||||
|
||||
# read in the css and replace sprite references
|
||||
|
||||
Reference in New Issue
Block a user