Skip to content

Instantly share code, notes, and snippets.

@jorgepinon
Created February 26, 2014 15:53
Show Gist options
  • Save jorgepinon/9232216 to your computer and use it in GitHub Desktop.
Save jorgepinon/9232216 to your computer and use it in GitHub Desktop.
Use escaped unicode for css pseudo-element content value
// 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