Created
February 26, 2014 15:53
-
-
Save jorgepinon/9232216 to your computer and use it in GitHub Desktop.
Use escaped unicode for css pseudo-element content value
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
// usage: <span aria-hidden="true" class="u-icon--chevron--left"></span> | |
// → | |
.u-icon--arrow--right:before { | |
content: '\279E'; | |
} | |
// ❯ | |
.u-icon--chevron--right:before { | |
content: '\276F'; | |
} | |
// ❮ | |
.u-icon--chevron--left:before { | |
content: '\276E'; | |
} | |
// ✔ | |
.u-icon--chechmark:before { | |
content: '\2714'; | |
} | |
// ✖ | |
.u-icon--x:before { | |
content: '\2716'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment