stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.91k stars 249 forks source link

Allow pixel ratio array for image mixin #304

Open nicolag opened 9 years ago

nicolag commented 9 years ago

Allow pixel ratio array to better suit popular hi-res devices

Default out put as @1.5x, @2x & @3x. User can specify the array for min_pixel_ratio when they use if they wanna change the default

e.g. image: 'yourimage.png', 20px, 30px, 1.5; //will just output the @1.5x and the base.