From b3591874d6bdf7cde8e566352ed6b18ac252994a Mon Sep 17 00:00:00 2001 From: Shaun Scovil Date: Mon, 22 Jul 2013 11:21:32 -0400 Subject: [PATCH] Added IE8 Fix * File Type Icon CSS did not work in IE due to lack of support for `color: transparent`. * Applied fix provided by Joe Banks in support forum: http://bit.ly/1cSla6R --- css/dev/file-type-icons.css | 2 ++ css/file-type-icons.min.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/css/dev/file-type-icons.css b/css/dev/file-type-icons.css index 32c023c..a210c5a 100644 --- a/css/dev/file-type-icons.css +++ b/css/dev/file-type-icons.css @@ -5,6 +5,8 @@ background-image: url('../img/file-type-icons.png'); background-repeat: no-repeat; color: transparent; + font-size: 0; /* Needed for IE8 */ + line-height: 0; /* Needed for IE8 */ float: left; position: relative; width: 35px; diff --git a/css/file-type-icons.min.css b/css/file-type-icons.min.css index 680edd9..972668f 100644 --- a/css/file-type-icons.min.css +++ b/css/file-type-icons.min.css @@ -1 +1 @@ -[class^=file-type-] a,[class*=" file-type-"] a{background-image:url(../img/file-type-icons.png);background-repeat:no-repeat;color:transparent;float:left;position:relative;width:35px;height:40px;}.file-type-doc a,.file-type-docx a,.file-type-odt a,.file-type-rtf a,.file-type-txt a,.file-type-wpd a{background-position:0 0;}.file-type-pdf a{background-position:-35px 0;}.file-type-ppt a,.file-type-pptx a,.file-type-odp a{background-position:-70px 0;}.file-type-xls a,.file-type-xlsx a,.file-type-ods a,.file-type-csv a{background-position:-105px 0;}.file-type-zip a,.file-type-zipx a,.file-type-gz a,.file-type-7z a,.file-type-rar a,.file-type-tar a{background-position:-140px 0;} \ No newline at end of file +[class^=file-type-] a,[class*=" file-type-"] a{background-image:url(../img/file-type-icons.png);background-repeat:no-repeat;color:transparent;font-size:0;line-height:0;float:left;position:relative;width:35px;height:40px;}.file-type-doc a,.file-type-docx a,.file-type-odt a,.file-type-rtf a,.file-type-txt a,.file-type-wpd a{background-position:0 0;}.file-type-pdf a{background-position:-35px 0;}.file-type-ppt a,.file-type-pptx a,.file-type-odp a{background-position:-70px 0;}.file-type-xls a,.file-type-xlsx a,.file-type-ods a,.file-type-csv a{background-position:-105px 0;}.file-type-zip a,.file-type-zipx a,.file-type-gz a,.file-type-7z a,.file-type-rar a,.file-type-tar a{background-position:-140px 0;} \ No newline at end of file