Anonymous avatar Anonymous committed 7155578

Add a search icon to the top-right hand search bar.

Comments (0)

Files changed (2)

MoinMoin/templates/layout.html

     {{ 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='40') }}
-            {{ gen.input(search_form['submit'], type='submit', id='moin-search-submit') }}
+            {{ gen.button(search_form['submit'], type='submit', id='moin-search-submit') }}
             {{ forms.render_errors(search_form) }}
         </div>
     {{ gen.form.close() }}

MoinMoin/themes/modernized/static/css/common.css

 #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 #moin-search-submit { text-indent: -9000%; margin-left: -2em; width: 1.5em; height: 1.2em; background: url(../img/moin-search.png) center center no-repeat; background-size: 1.2em 1.2em; border: none; overflow: hidden; vertical-align: middle; cursor: pointer; }
 #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; }
 /* moin-extended searchform */
 #moin-long-searchform { padding: 0; font-size: 0.82em; text-align: left; }
 #moin-long-searchform div { margin: 0; }
-#moin-search-query { width: 50%; }
+#moin-search-query { width: 50%; padding-right: 1.6em}
 
 /* moin-header moin-logo -- logos may be text only */
 #moin-logo { float: left; margin: 5px 10px; padding: 0; font-size: 1.4em; line-height: 1em; font-weight: bold; }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.