stylus / nib

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

Image mixin refactor #277

Closed justsee closed 7 years ago

justsee commented 9 years ago

Fixes issue outlined in https://github.com/visionmedia/nib/issues/276.

The image mixin fails when nested inside a media query, and this pull request resolves that issue using code supplied in the associated Stylus ticket.

An additional test has been written for this case, and all tests are passing based on the current Stylus dependency.

Note that this outputs nested media queries, whereas using 0.48.1 results in flattened media queries. I would update the dependency and test case output file but an additional test related to linear gradients also fails when using latest Stylus.