Skip to content

Instantly share code, notes, and snippets.

@plasticine
Created August 17, 2012 01:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save plasticine/3375133 to your computer and use it in GitHub Desktop.
Save plasticine/3375133 to your computer and use it in GitHub Desktop.
Icon Fontin’
// Generic icon set using custom font face for glyphs
//
// .icon-myicon - This is my cool icon
//
// Styleguide 5.1
[class^="icon-"], [class*=" icon-"]{
font-family: "TCFont-Regular";
display: inline-block;
font-weight: normal !important;
font-style: normal !important;
vertical-align: middle;
position: relative;
top: -0.1em;
width: 1.2em;
font-size: 1.3em;
text-align: center;
&.icon-myicon:before{ content: "\f000"; }
}
// Icons should be hidden for clients with no fontface support
body.no-fontface{
[class^="icon-"], [class*=" icon-"]{
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment