Skip to content

Instantly share code, notes, and snippets.

@sshkarupa
Created May 3, 2015 19:46
Show Gist options
  • Save sshkarupa/3c556d62f32595b7bfb3 to your computer and use it in GitHub Desktop.
Save sshkarupa/3c556d62f32595b7bfb3 to your computer and use it in GitHub Desktop.
icon-font
// 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