Created
October 31, 2016 18:28
-
-
Save sdougbrown/1a3c6b4326ae2dd9f8d6af827958bab2 to your computer and use it in GitHub Desktop.
emoji.scss
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
@font-face { | |
unicode-range : U+1F431-U+1F63A; | |
} | |
.c-emoji:before { | |
font-style: normal; | |
} | |
$emojiList: | |
"arrow-up" "⬆️", | |
"arrow-down" "⬇️", | |
"cancel" "🚫", | |
"delete" "❌", | |
"disk" "💾", | |
"memo" "📝", | |
"minus" "➖", | |
"pencil" "✏️", | |
"plus" "➕", | |
"sparkle" "✨", | |
"triangle-up" "🔺", | |
"triangle-down" "🔻", | |
; | |
@each $emoji in $emojiList { | |
$emojiClass: nth($emoji, 1); | |
$emojiContent: nth($emoji, 2); | |
.c-emoji-#{$emojiClass}:before { | |
content: $emojiContent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment