1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-12-29 08:07:44 +01:00

make box shadow work in IE8 through DXImageTransform.Microsoft.Shadow

This commit is contained in:
Matthias Kretschmann 2011-12-18 22:46:33 +01:00
parent d4cca78102
commit 8eae6b4448
2 changed files with 43 additions and 4 deletions

View File

@ -37,6 +37,7 @@
-webkit-box-shadow: 0px 2px 2px #000 !important; -webkit-box-shadow: 0px 2px 2px #000 !important;
-moz-box-shadow: 0px 2px 2px #000 !important; -moz-box-shadow: 0px 2px 2px #000 !important;
box-shadow: 0px 2px 2px #000 !important; box-shadow: 0px 2px 2px #000 !important;
vertical-align: baseline;
} }
@ -67,3 +68,17 @@
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4dffffff', endColorstr='#00ffffff',GradientType=1 ); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4dffffff', endColorstr='#00ffffff',GradientType=1 );
} }
/* ============================================================== */
/* IE 8 Only Styles */
/* ============================================================== */
.ie8 #wp-admin-bar-updates .ab-label,
.ie8 #wp-admin-bar-comments .ab-label {
filter:
progid:DXImageTransform.Microsoft.Shadow(color=#000000,direction=180,strength=3) /* bottom */
progid:DXImageTransform.Microsoft.Shadow(color=#444444,direction=90,strength=2) /* right */
progid:DXImageTransform.Microsoft.Shadow(color=#444444,direction=270,strength=2); /* left */
}

View File

@ -51,6 +51,7 @@
-webkit-box-shadow: 0px 2px 2px #444 !important; -webkit-box-shadow: 0px 2px 2px #444 !important;
-moz-box-shadow: 0px 2px 2px #444 !important; -moz-box-shadow: 0px 2px 2px #444 !important;
box-shadow: 0px 2px 2px #444 !important; box-shadow: 0px 2px 2px #444 !important;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4dffffff', endColorstr='#00ffffff',GradientType=0 );
} }
/* inject another styling layer, for inset shadow & shine gradient */ /* inject another styling layer, for inset shadow & shine gradient */
@ -91,8 +92,6 @@
} }
/* ============================================================== */ /* ============================================================== */
/* The Options Page */ /* The Options Page */
/* ============================================================== */ /* ============================================================== */
@ -113,3 +112,28 @@
background-image: url(../img/icon-badged-32.png); background-image: url(../img/icon-badged-32.png);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
/* ============================================================== */
/* IE 8 Only Styles */
/* ============================================================== */
.ie8 #adminmenu .awaiting-mod,
.ie8 #adminmenu span.update-plugins,
.ie8 #sidemenu li a span.update-plugins,
.ie8 #sidemenu a .update-plugins,
.ie8 #rightnow .reallynow {
filter:
progid:DXImageTransform.Microsoft.Shadow(color=#888888,direction=180,strength=3) /* box-shadow replacement, bottom */
progid:DXImageTransform.Microsoft.Shadow(color=#b3b3b3,direction=90,strength=2) /* right */
progid:DXImageTransform.Microsoft.Shadow(color=#b3b3b3,direction=270,strength=2) /* left */;
}
/* darker shadow for badged on active menus */
.ie8 #adminmenu li.current a .awaiting-mod,
.ie8 #adminmenu li a.wp-has-current-submenu .update-plugins {
filter:
progid:DXImageTransform.Microsoft.Shadow(color=#444444,direction=180,strength=3) /* bottom */
progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=90,strength=2) /* right */
progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=270,strength=2) /* left */;
}