stitches
stitches copied to clipboard
Add support for retina icons
MacBook Pros have retina screens and use double density icons. Basically a 100x100 icon would be displayed in a 50x50 space on the screen.
To support with Stitches:
- Change default padding from 5px to 4px so it's always divisible by 2
- Add an option to output a Retina-friendly spritesheet:
- Include
background-size: x yto resize the image, wherexis half the width andyis half the height of the image (eg.background-size: 250px 100pxfor a 500px by 200px spritesheet) - Halve all the
background-positionvalues
- Include
More information: http://miekd.com/articles/using-css-sprites-to-optimize-your-website-for-retina-displays/
+1 to that. At least make sure the output .png's size is a multiple of two :)