Gaya / Retina-Sprites-for-Compass

Allow to use sprites in retina with Compass.
160 stars 31 forks source link

Scaling parameter added #17

Closed tatyshev closed 7 years ago

tatyshev commented 8 years ago

I had a problem when I needed to enlarge or decrease some of the sprite images little bit. For these cases, I made little fix for use-sprite mixin which adds one extra parameter $scale.

Example of usage:

.sprite2 {
    @include use-sprite("sprite3", 1.5);
}
Gaya commented 8 years ago

Thanks! Looking good so far. Will take a better look tomorrow and merge if I have no remarks.

tatyshev commented 7 years ago

Are there any updates? @Gaya

Gaya commented 7 years ago

Thanks a lot. Didn't think the update of .gitignore was nessesarry, but I'll leave it in. Merging. Great addition!