Commit:    c6d019cddfe97a1586d68f416ca2bbff8b74edaa
Author:    Stewart Lord <[email protected]>         Thu, 30 Dec 2010 18:49:38 
+0000
Parents:   19f1ef50417247eeef8119b9de63b39553b24e75
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=c6d019cddfe97a1586d68f416ca2bbff8b74edaa

Log:
Removed built-in styles from search input for webkit browsers. There are still
discrepancies between how webkit and moz browsers display this field. For
example, webkit browsers have some left padding that can't be removed.

Removed manual placeholder text handling from common.js

Changed paths:
  M  js/common.js
  M  styles/structure.css
  M  styles/theme.css


Diff:
diff --git a/js/common.js b/js/common.js
index 496b9fb..e515448 100644
--- a/js/common.js
+++ b/js/common.js
@@ -32,17 +32,6 @@ $(document).ready(function() {
         }
     });
 
-    // remove default search text on focus.
-    $('#headsearch-keywords').focus(function(){
-        if ($(this).attr("value") == getDefaultSearchText()) {
-            $(this).attr("value", "");
-        }
-    }).blur(function(){
-        if (!$(this).attr("value")) {
-            $(this).attr("value", getDefaultSearchText());
-        }
-    });
-
     // load the search index and enable auto-complete.
     jQuery.getScript("/js/search-index-" + getLanguage() + ".js", function(){
         $('#headsearch-keywords').autocomplete({
@@ -112,17 +101,6 @@ $(document).ready(function() {
 });
 
 /**
- * Get the default search text to use (e.g. 'Search...').
- */
-function getDefaultSearchText()
-{
-    switch (getLanguage()) {
-        case "en":
-            return "Search...";
-    }
-}
-
-/**
  * Determine what language to present to the user.
  */
 function getLanguage()
diff --git a/styles/structure.css b/styles/structure.css
index f1298a9..cae6f3c 100644
--- a/styles/structure.css
+++ b/styles/structure.css
@@ -178,7 +178,7 @@ footer .footmenu li {
  * Auto-complete
  */
 .ui-autocomplete {
-    width: 187px;
+    width: 185px;
     max-height: 250px;
     overflow-y: auto;
     overflow-x: hidden;
diff --git a/styles/theme.css b/styles/theme.css
index ceb5126..57bce8f 100644
--- a/styles/theme.css
+++ b/styles/theme.css
@@ -83,6 +83,7 @@ a:hover {
 #headsearch-keywords {
     color: #666;
     background: transparent;
+    -webkit-appearance: none;
 }
 
 #headsearch-keywords:focus {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to