Last active
August 29, 2015 14:03
-
-
Save vitto/8f35b62fe6ee776de9eb to your computer and use it in GitHub Desktop.
Frontsize - Example to use spriteCoordinates 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="sprite-16 pencil"></div> | |
<div class="sprite-16 brush top-margin"></div> | |
<div class="sprite-16 ruler top-margin"></div> | |
<div class="sprite-16 pen top-margin"></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-16 { | |
@size : 16px; | |
.sprite("sprites-16.svg", @size); | |
&.pencil { | |
.spriteCoordinates(0, 0); | |
} | |
&.brush { | |
.spriteCoordinates(@size, 0); | |
} | |
&.ruler { | |
.spriteCoordinates((@size * 2), 0); | |
} | |
&.pen { | |
.spriteCoordinates(@size, (@size * 2)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spriteCoordinates
@positionX
0
@positionY
0