Created
September 12, 2012 12:33
-
-
Save pablohart/3706320 to your computer and use it in GitHub Desktop.
Compass Sprites
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
$sprites-nameofimage-position: 50% | |
h2 | |
+sprites-sprite(nameofimage, $offset-x: 50%, $offset-y: 0px) |
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
h2 | |
background: url(nameofimage.png) no-repeat right 0 |
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
h2 | |
+sprites-sprite(nameofimage, $offset-x: 100%, $offset-y: 0) |
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
$sprites-nameofimage-position: 100% |
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
$sprites-horiz-layout: horizontal |
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
h2 | |
background: url(nameofimage.png) no-repeat 3px 9px |
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
h2 | |
+sprites-sprite(nameofimage, $offset-x: 3px, $offset-y: 9px) |
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
background: url("/assets/sprites-sa34a6d7aa5-e851c4ce7c78d99f04f7855226a50cfc.png") no-repeat scroll 0 0 transparent | |
background-position: 0 -202px |
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
$sprites-spacing: 14px |
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
$sprites-nameofimage-spacing: 30px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment