Skip to content

Instantly share code, notes, and snippets.

@jrcryer
Last active December 13, 2015 21:58
Show Gist options
  • Save jrcryer/4980650 to your computer and use it in GitHub Desktop.
Save jrcryer/4980650 to your computer and use it in GitHub Desktop.
Icon fonts (using IcoMoon generated font)
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot');
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
[data-icon]:before {
font-family: 'icomoon';
content: attr(data-icon);
speak: none;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
.font-tree:before, .font-mobile:before {
font-family: 'icomoon';
speak: none;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
.font-tree:before {
content: "\64";
}
.font-mobile:before {
content: "\6d";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment