Created
July 25, 2018 07:53
-
-
Save andreasvirkus/374988927e37d4a660ece0289d599628 to your computer and use it in GitHub Desktop.
A SCSS mixin to use emojis as solid/stroked icons. See example at http://jsfiddle.net/andreasvirkus/yLebhoc7/11/
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
@mixin emoji-icon($color: var(--black), $size: 1rem) { | |
font-size: $size; | |
color: transparent; | |
text-shadow: 0 0 $color; | |
} | |
@mixin emoji-icon-stroke($color: var(--black), $fill: var(--white)) { | |
text-shadow: 0 0 $fill, | |
-1px -1px 0 $color, | |
1px -1px 0 $color, | |
-1px 1px 0 $color, | |
1px 1px 0 $color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment