From a45eb8e51b38f9a3521d8b9d0a4eec072bb5f71b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 13 Jan 2010 14:21:42 +0000
Subject: [PATCH] To apply the same CSS style on the first page quick search
 than on the navigation bar's quick search, define a CSS class and apply it to
 both input fields. Reviewed by: Fabien

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31726 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml      | 2 +-
 .../portal_skins/erp5_xhtml_style/erp5.css.xml                | 4 ++--
 .../portal_skins/erp5_xhtml_style/navigation_box_render.xml   | 2 +-
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision           | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml
index 19beadbfe0..316a870c3d 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml
@@ -44,7 +44,7 @@
   tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                        \'text/html;; charset=utf-8\');">\n
   <div tal:define="search_default_text python:here.Base_translateString(\'Search\')">\n
-    <input type="text" onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
+    <input class="quick_search_field" type="text" onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
       value="Search" tal:attributes="value string:${search_default_text};\n
                                      onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"\n
       onfocus="this.value=\'\';"\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
index 0c54a7f8ef..da6ce61b83 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
@@ -816,8 +816,8 @@ a.tree_closed {\n
   background-image: url(\'<dtml-var expr="portal_url()">/images/language.png\');\n
 }\n
 \n
-#search input {color:#777777;}\n
-#search input:focus {color:#000000;}\n
+.quick_search_field {color:#777777;}\n
+.quick_search_field:focus {color:#000000;}\n
 \n
 #search button .image {\n
   background-image: url(\'<dtml-var expr="portal_url()">/images/search.png\');\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
index e10dc203f3..f38d4f9cbb 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
@@ -126,7 +126,7 @@
       <span class="separator"><!--separator--></span>\n
       <span id="search" tal:define="search_default_text python:here.Base_translateString(\'Search\')">\n
         <input type="hidden" name="all_languages" value="1" />\n
-        <input accesskey="4" type="text" name="field_your_search_text"\n
+        <input class="quick_search_field" accesskey="4" type="text" name="field_your_search_text"\n
           value="Search" tal:attributes="value string:${search_default_text};\n
                                          onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"\n
           onfocus="this.value=\'\';"\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 354d30ba65..4546d6f04a 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-869
\ No newline at end of file
+872
\ No newline at end of file
-- 
2.30.9