Created
February 22, 2015 14:07
-
-
Save TheJaredWilcurt/d024664c457727c83bb6 to your computer and use it in GitHub Desktop.
IE9 fixes for Icono
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
<!DOCTYPE html> | |
<!--[if IE 9 ]><html class="ie9"><![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html><!--<![endif]--> | |
<head> | |
<title>Icono IE9 fix</title> | |
<link rel="stylesheet" type="text/css" href="http://saeedalipoor.github.io/icono/icono.min.css"> | |
<style type="text/css"> | |
body { background: #2BA5BB; } | |
.ie9 .icono-caretUp:before, | |
.ie9 .icono-caretRight:before, | |
.ie9 .icono-caretLeft:before, | |
.ie9 .icono-caretDown:before { | |
top: 10px; } | |
.ie9 .icono-caretUp:after, | |
.ie9 .icono-caretRight:after, | |
.ie9 .icono-caretDown:after, | |
.ie9 .icono-caretLeft:after{ | |
top: -7px; } | |
.ie9 .icono-caretDownCircle:before, | |
.ie9 .icono-caretDownSquare:before, | |
.ie9 .icono-caretLeftCircle:before, | |
.ie9 .icono-caretLeftSquare:before, | |
.ie9 .icono-caretRightCircle:before, | |
.ie9 .icono-caretRightSquare:before, | |
.ie9 .icono-caretUpCircle:before, | |
.ie9 .icono-caretUpSquare:before { | |
top: 8px; } | |
.ie9 .icono-caretDownCircle:after, | |
.ie9 .icono-caretDownSquare:after, | |
.ie9 .icono-caretLeftCircle:after, | |
.ie9 .icono-caretLeftSquare:after, | |
.ie9 .icono-caretRightCircle:after, | |
.ie9 .icono-caretRightSquare:after, | |
.ie9 .icono-caretUpCircle:after, | |
.ie9 .icono-caretUpSquare:after { | |
top: -6px; } | |
.ie9 .icono-frown::after { | |
top: 60%; } | |
.ie9 .icono-clock::after { | |
top: 46%; } | |
</style> | |
</head> | |
<body> | |
<i class="icono-caretUp"></i> | |
<i class="icono-caretRight"></i> | |
<i class="icono-caretDown"></i> | |
<i class="icono-caretLeft"></i> | |
<i class="icono-caretUpCircle"></i> | |
<i class="icono-caretRightCircle"></i> | |
<i class="icono-caretDownCircle"></i> | |
<i class="icono-caretLeftCircle"></i> | |
<i class="icono-caretUpSquare"></i> | |
<i class="icono-caretRightSquare"></i> | |
<i class="icono-caretDownSquare"></i> | |
<i class="icono-caretLeftSquare"></i> | |
<i class="icono-frown"></i> | |
<i class="icono-clock"></i> | |
<!-- | |
This was created to be as simple to understand as possible. | |
Obviously, you can implement your own method of detecting | |
browser version, and you'd probably want to move the CSS to | |
a Sass file and nest it in the .ie9, etc. | |
--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment