Created
May 3, 2015 19:46
-
-
Save sshkarupa/3c556d62f32595b7bfb3 to your computer and use it in GitHub Desktop.
icon-font
This file contains 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
// You can use data-attribute | |
[data-icon]:before | |
font-family:qlean-icons!important | |
content:attr(data-icon) | |
font-style:normal!important | |
font-weight:400!important | |
font-variant:normal!important | |
text-transform:none!important | |
speak:none | |
line-height:1 | |
-webkit-font-smoothing:antialiased | |
-moz-osx-font-smoothing:grayscale | |
// html | |
// <div class="icon data-icon="x"></div> | |
// or separate class named icon-... | |
[class^="icon-"]:before,[class*=" icon-"]:before | |
font-family:qlean-icons!important | |
font-style:normal!important | |
font-weight:400!important | |
font-variant:normal!important | |
text-transform:none!important | |
speak:none | |
line-height:1 | |
-webkit-font-smoothing:antialiased | |
-moz-osx-font-smoothing:grayscale | |
// if you use separate class... | |
.icon-windows:before | |
content:"x" | |
// html | |
// <div class="icon icon-windows"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment