Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $icon-map: sprite-map("chat/emoticons/*.png")
- $list: angry bluecry blueshock bluexlshock crazy cry crylaugh dead grin happy kiss lovehappy no nodont nowkiss ohcrywhy ohgodno sick sleepyhappy smirk stupidhappy unhappy unhappycry what whocares wink xlangry xlhappy xlunhappy xxlhappy
- .emoticon
- background: $icon-map
- width: 24px
- height: 24px
- background-size: 24px 744px
- @each $smiley in $list
- .emoticon.#{$smiley}
- $pos: sprite-position($icon-map, #{$smiley})
- background-position: nth($pos, 1) / 2 nth($pos, 2) / 2
Add Comment
Please, Sign In to add comment