Created
July 15, 2014 13:11
-
-
Save vitto/1bf5536a0b69a4ece97d to your computer and use it in GitHub Desktop.
Frontsize - Exampe for scaleBackgroundSize mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="bottom-margin">A 32px size icon sprite create with a 16px svg sprite</div> | |
<div class="sprite-32"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sprite-32 { | |
@scale : 2; | |
@spriteSize : 16px; | |
@backgroundWidth : 512px; | |
@backgroundHeight : 128px; | |
.sprite("sprites-16.svg", @spriteSize); | |
.size(@spriteSize, @spriteSize, @scale); | |
.scaleBackgroundSize(@scale, @backgroundWidth, @backgroundHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sprite minixs list