[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_5-20707-ga1da309

Piotr Przybylski crackpl at users.sourceforge.net
Sun Oct 2 22:42:15 CEST 2011


The branch, master has been updated
       via  a1da3096a19c78db7e34125f6e0966654bcb4aa0 (commit)
      from  c54b3180769435c068e4c9957e81fbb5a17acca5 (commit)


- Log -----------------------------------------------------------------
commit a1da3096a19c78db7e34125f6e0966654bcb4aa0
Author: Piotr Przybylski <piotrprz at gmail.com>
Date:   Sun Oct 2 22:41:48 2011 +0200

    Pure CSS linear gradient for IE 10 and new syntax for linear gradient in Safari 5.1 and Chrome 10+
    Added browser versions in comments

-----------------------------------------------------------------------

Summary of changes:
 libraries/Theme.class.php |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/libraries/Theme.class.php b/libraries/Theme.class.php
index 0dbeb5e..bc5635d 100644
--- a/libraries/Theme.class.php
+++ b/libraries/Theme.class.php
@@ -379,13 +379,22 @@ class PMA_Theme
     function getCssGradient($start_color, $end_color)
     {
         $result = array();
+        // Opera 9.5+, IE 9
         $result[] = 'background-image: url(./themes/svg_gradient.php?from=' . $start_color . '&to=' . $end_color . ');';
         $result[] = 'background-size: 100% 100%;';
+        // Safari 4-5, Chrome 1-9
         $result[] = 'background: -webkit-gradient(linear, left top, left bottom, from(#' . $start_color . '), to(#' . $end_color . '));';
+        // Safari 5.1, Chrome 10+
+        $result[] = 'background: -webkit-linear-gradient(top, #' . $start_color . ', #' . $end_color . ');';
+        // Firefox 3.6+
         $result[] = 'background: -moz-linear-gradient(top, #' . $start_color . ', #' . $end_color . ');';
+        // IE 10
+        $result[] = 'background: -ms-linear-gradient(top, #' . $start_color . ', #' . $end_color . ');';
+        // Opera 11.10
         $result[] = 'background: -o-linear-gradient(top, #' . $start_color . ', #' . $end_color . ');';
+        // IE 6-8
         if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 6 && PMA_USR_BROWSER_VER <= 8) {
-            $result[] = 'filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr="#' . $start_color . '", endColorstr="#' . $end_color . '");';
+            $result[] = 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#' . $start_color . '", endColorstr="#' . $end_color . '");';
         }
         return implode("\n", $result);
     }


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list