changeset 804:396132cbcfc7 pytest2

theme search field: do not display the submit button to save some space - hide it via css
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 29 Aug 2011 20:13:37 +0200
parents e592d2c9313d
children 7b28a1e0774e
files MoinMoin/templates/layout.html MoinMoin/themes/modernized/static/css/common.css
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/layout.html	Mon Aug 29 19:38:35 2011 +0200
+++ b/MoinMoin/templates/layout.html	Mon Aug 29 20:13:37 2011 +0200
@@ -21,8 +21,8 @@
     {% if search_form %} 
     {{ gen.form.open(search_form, id='moin-searchform', method='get', action=url_for('frontend.search')) }}
         <div>
-            {{ gen.input(search_form['q'], type='search', id='moin-search-query', size='30') }}
-            {{ gen.input(search_form['submit'], type='submit') }}
+            {{ gen.input(search_form['q'], type='search', id='moin-search-query', size='40') }}
+            {{ gen.input(search_form['submit'], type='submit', id='moin-search-submit') }}
             {{ forms.render_errors(search_form) }}
         </div>
     {{ gen.form.close() }}
--- a/MoinMoin/themes/modernized/static/css/common.css	Mon Aug 29 19:38:35 2011 +0200
+++ b/MoinMoin/themes/modernized/static/css/common.css	Mon Aug 29 20:13:37 2011 +0200
@@ -575,6 +575,7 @@
 #moin-searchform input { font-size: 100%; vertical-align: middle;
             background-color: #F3F7FD; /* same as body bg col */
             border: 1px solid #A4B9DF; }
+#moin-searchform #moin-search-submit { display: none; }
 #moin-searchform div { margin: 0; }
 #moin-searchform ul { border: 1px solid #A4B9DF; margin: 0; padding: 0; background-color: #F3F7FD; }
 #moin-searchform li { list-style:none; }