Convert left CSS to use new helper as well

This commit is contained in:
Michal Čihař 2011-08-22 15:10:41 +02:00
parent ccbefbb5ef
commit 0705c6a87f

View File

@ -12,12 +12,10 @@ if (!defined('PMA_MINIMUM_COMMON')) {
exit();
}
function PMA_ieFilter($start_color, $end_color)
{
return PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 6 && PMA_USR_BROWSER_VER <= 8
? 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' . $start_color . '", endColorstr="' . $end_color . '");'
: '';
}
/**
* Theme helpers.
*/
require 'libraries/theme.lib.php';
?>
/******************************************************************************/
/* general tags */
@ -247,12 +245,7 @@ div#left_tableList li {
#newtable a {
display: block;
padding: 1px;
background-image: url(./themes/svg_gradient.php?from=ffffff&to=cccccc);
background-size: 100% 100%;
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);
<?php echo PMA_ieFilter('#ffffff', '#cccccc'); ?>
<?php echo PMA_css_gradient('ffffff', 'cccccc'); ?>
border: 1px solid #aaa;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
@ -264,12 +257,7 @@ div#left_tableList li {
}
#newtable a:hover {
background-image: url(./themes/svg_gradient.php?from=cccccc&to=dddddd);
background-size: 100% 100%;
background: -webkit-gradient(linear, left top, left bottom, from(#cccccc), to(#dddddd)) !important;
background: -moz-linear-gradient(top, #cccccc, #dddddd) !important;
background: -o-linear-gradient(top, #cccccc, #dddddd) !important;
<?php echo PMA_ieFilter('#cccccc', '#dddddd'); ?>
<?php echo PMA_css_gradient('cccccc', 'dddddd'); ?>
}
#newtable li a:hover {