Skip to content

Instantly share code, notes, and snippets.

@kolber
Forked from plasticine/gist:3375133
Created August 17, 2012 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kolber/3376911 to your computer and use it in GitHub Desktop.
Save kolber/3376911 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"; }
// Generated content for IE7
// See: https://github.com/FortAwesome/Font-Awesome/blob/master/css/font-awesome-ie7.css
&.icon-myicon { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ''); }
}
// Icons should be hidden for clients with no fontface support
body.no-fontface{
[class^="icon-"], [class*=" icon-"]{
display: none;
}
}
@plasticine
Copy link

Ohh — Niiice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment