We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As we are starting to use spritesmith, would be good if we can fold in the spritesmith mixins - so we can have them with a custom name.
To stop them being generated, put this in gulp file:
twolfson/grunt-spritesmith#63 (comment)
The mixins need to replicate the following:
@mixin sprite-width($sprite) { width: nth($sprite, 5); } @mixin sprite-height($sprite) { height: nth($sprite, 6); } @mixin sprite-position($sprite) { $sprite-offset-x: nth($sprite, 3); $sprite-offset-y: nth($sprite, 4); background-position: $sprite-offset-x $sprite-offset-y; } @mixin sprite-image($sprite) { $sprite-image: nth($sprite, 9); background-image: url(#{$sprite-image}); } @mixin sprite($sprite) { @include sprite-image($sprite); @include sprite-position($sprite); @include sprite-width($sprite); @include sprite-height($sprite); }```
The text was updated successfully, but these errors were encountered:
Addition of spritesmith mixins for use with gulp
af4bc44
Related to #9
e9e0e8f
No branches or pull requests
As we are starting to use spritesmith, would be good if we can fold in the spritesmith mixins - so we can have them with a custom name.
To stop them being generated, put this in gulp file:
twolfson/grunt-spritesmith#63 (comment)
The mixins need to replicate the following:
The text was updated successfully, but these errors were encountered: