Last active
January 20, 2016 02:36
-
-
Save nickcernis/db6b6c3d6573b49a059e to your computer and use it in GitHub Desktop.
Simple Social Icons font conflict fix
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
@font-face { | |
font-family: 'ssi-fontello'; | |
src: url('../font/fontello.eot?78492063'); | |
src: url('../font/fontello.eot?78492063#iefix') format('embedded-opentype'), | |
url('../font/fontello.woff?78492063') format('woff'), | |
url('../font/fontello.ttf?78492063') format('truetype'), | |
url('../font/fontello.svg?78492063#fontello') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ | |
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ | |
/* | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
@font-face { | |
font-family: 'fontello'; | |
src: url('../font/fontello.svg?11995952#fontello') format('svg'); | |
} | |
} | |
*/ | |
.simple-social-icons { | |
overflow: hidden; | |
} | |
.simple-social-icons ul { | |
margin: 0; | |
padding: 0; | |
} | |
.simple-social-icons ul li { | |
background: none !important; | |
border: none !important; | |
float: left; | |
list-style-type: none !important; | |
margin: 0 6px 12px !important; | |
padding: 0 !important; | |
} | |
.simple-social-icons ul li a { | |
border: none !important; | |
-moz-box-sizing: content-box; | |
-webkit-box-sizing: content-box; | |
box-sizing: content-box; | |
display: inline-block; | |
font-family: 'ssi-fontello'; | |
font-style: normal !important; | |
font-variant: normal !important; | |
font-weight: normal !important; | |
line-height: 1em; | |
speak: none; | |
text-align: center; | |
text-decoration: none !important; | |
text-transform: none !important; | |
width: 1em; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
.simple-social-icons ul.aligncenter { | |
text-align: center; | |
} | |
.simple-social-icons ul.aligncenter li { | |
display: inline-block; | |
float: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment