-
-
Save megakote/3000b4e2677ae102b380 to your computer and use it in GitHub Desktop.
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
@import "compass/css3"; | |
@import "compass/utilities"; | |
$icons-sprites: sprite-map("icons/*.png"); | |
@mixin sprite_images($sprite, $icon) { | |
background: sprite($sprite, $icon) no-repeat; | |
width: image-width(sprite-file($sprite, $icon)); | |
height: image-height(sprite-file($sprite, $icon)); | |
} |
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
@import "_fn.scss"; | |
.error { | |
@include sprite_images($icons-sprites, 'error'); | |
} | |
.info { | |
@include sprite_images($icons-sprites, 'info'); | |
} | |
.logo { | |
@include sprite_images($icons-sprites, 'logo'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment