svn: /web/php/trunk/ js/common.js styles/structure.css styles/theme.css
[email protected] (Stewart Lord)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
stewartlord Thu, 30 Dec 2010 18:49:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306876
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:
U web/php/trunk/js/common.js
U web/php/trunk/styles/structure.css
U web/php/trunk/styles/theme.css
Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js 2010-12-30 18:20:00 UTC (rev 306875)
+++ web/php/trunk/js/common.js 2010-12-30 18:49:38 UTC (rev 306876)
@@ -32,17 +32,6 @@
}
});
- // 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 @@
});
/**
- * 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()
Modified: web/php/trunk/styles/structure.css
===================================================================
--- web/php/trunk/styles/structure.css 2010-12-30 18:20:00 UTC (rev 306875)
+++ web/php/trunk/styles/structure.css 2010-12-30 18:49:38 UTC (rev 306876)
@@ -178,7 +178,7 @@
* Auto-complete
*/
.ui-autocomplete {
- width: 187px;
+ width: 185px;
max-height: 250px;
overflow-y: auto;
overflow-x: hidden;
Modified: web/php/trunk/styles/theme.css
===================================================================
--- web/php/trunk/styles/theme.css 2010-12-30 18:20:00 UTC (rev 306875)
+++ web/php/trunk/styles/theme.css 2010-12-30 18:49:38 UTC (rev 306876)
@@ -83,6 +83,7 @@
#headsearch-keywords {
color: #666;
background: transparent;
+ -webkit-appearance: none;
}
#headsearch-keywords:focus {