Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More refactoring so it displays in Chrome and displays better in IE6 …

…& 7. IE8 is still buggy though. =(
  • Loading branch information...
commit ae0c72dda8d1ce1e72f6c21188e85c45e996507c 1 parent 0bf2410
Mark Cowie authored
Showing with 27 additions and 9 deletions.
  1. +27 −9 css/style.css
View
36 css/style.css
@@ -9,22 +9,40 @@
span {
font: 0/0 a;
+ text-shadow: none;
color: transparent;
}
-span:before {
- font: 200px 'WebSymbolsRegular';
+html.lt-ie8 span {
+ position: relative;
+ left: -999px;
+}
+
+span:before,
+span:after {
+ font: 100px 'WebSymbolsRegular';
color: #000;
- content: "."; /* Default character */
}
-[data-icon]:before {
- font: 0/0 a;
- color: transparent;
+html.lt-ie8 span:before,
+html.lt-ie8 span:after {
+ position: relative;
+ left: 999px;
}
-[data-icon]:after {
- font: 200px 'WebSymbolsRegular';
- color: #000;
+span:before {
+ content: ":"; /* Default */
+}
+
+span:after {
content: attr(data-icon);
+ display: none;
+}
+
+span[data-icon]:before {
+ display: none;
+}
+
+span[data-icon]:after {
+ display: inline;
}
Please sign in to comment.
Something went wrong with that request. Please try again.