Created
March 30, 2011 08:26
-
-
Save hlb/894060 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.some-class { | |
background: url('/images/xxx/icon-da5590e331.png') 20px -28px no-repeat; } | |
.some-class.current { | |
background: url('/images/xxx/icon-da5590e331.png') 20px -16px no-repeat; } | |
This file contains hidden or 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
.icon-sprite { | |
background: url('/images/xxx/icon-d47556ad78.png') no-repeat; } | |
.some-class { | |
background: url('/images/xxx/icon-da5590e331.png') 20px -28px no-repeat; } | |
.some-class.current { | |
background: url('/images/xxx/icon-da5590e331.png') 20px -16px no-repeat; } | |
This file contains hidden or 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
// with compass 0.11.beta.5 | |
@import "xxx/icon/*.png"; | |
$icons: sprite-map("xxx/icon/*.png"); | |
.some-class { | |
background: sprite($icons, arrow, 20px) no-repeat; | |
&.current { | |
background: sprite($icons, arrow-current, 20px) no-repeat; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment