IE9 theme compatibility - gradient button

This commit is contained in:
unknown
2011-04-21 23:57:49 +07:00
committed by Piotr Przybylski
parent 467fabf5b0
commit 5610cd4651
6 changed files with 140 additions and 26 deletions

View File

@@ -11,6 +11,24 @@
if (!defined('PMA_MINIMUM_COMMON')) {
exit();
}
function PMA_ieFilter($is_hover) {
$retval = '';
if (PMA_USR_BROWSER_AGENT == "IE") {
$ver = intval(PMA_USR_BROWSER_VER);
if ($ver >= 6 && $ver <= 8) {
if ($is_hover) {
$start_color = '#cccccc';
$end_color = '#dddddd';
} else {
$start_color = '#ffffff';
$end_color = '#cccccc';
}
$retval = 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' . $start_color . '", endColorstr="' . $end_color . '");';
}
}
return $retval;
}
?>
/******************************************************************************/
/* general tags */
@@ -1439,10 +1457,11 @@ table#serverconnection_trg_local {
-moz-border-radius: 11px;
-webkit-border-radius: 11px;
border-radius: 11px;
background-image: url(./themes/original/img/gradient.svg);
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
background: -moz-linear-gradient(top, #ffffff, #cccccc);
background: -o-linear-gradient(top, #ffffff, #cccccc);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#cccccc');
<?php echo PMA_ieFilter(false); ?>
border: 1px solid #444444;
cursor: pointer;
}