Created
August 17, 2012 01:31
-
-
Save plasticine/3375133 to your computer and use it in GitHub Desktop.
Icon Fontin’
This file contains hidden or 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
// 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