Commits

Roger Haase committed e73e4cd

fix for issue 286 search view checkbox label always wraps with modernized theme

  • Participants
  • Parent commits 6d2932f

Comments (0)

Files changed (6)

File MoinMoin/search/__init__.py

 
 class SearchForm(Form):
     q = Search
-    history = InlineCheckbox.using(label=L_('search also in non-current revisions'))
+    history = InlineCheckbox.using(label=L_('search all revisions'))
     submit = Submit.using(default=L_('Search'))
 
     validators = [ValidSearch()]

File MoinMoin/templates/search.html

     </p>
     {% endif %}
     {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get', action=url_for('frontend.search', item_name=item_name)) }}
-        <div>
-            {{ forms.render(medium_search_form['q']) }}
-            {{ forms.render(medium_search_form['submit']) }}
-            {{ forms.render(medium_search_form['history']) }}
-            {{ forms.render_errors(medium_search_form) }}
-        </div>
+        <p>
+        {{ forms.render(medium_search_form['q']) }}
+        {{ forms.render(medium_search_form['submit']) }}
+        </p>
+        <p>
+        {{ forms.render(medium_search_form['history']) }}
+        {{ forms.render_errors(medium_search_form) }}
+        </p>
     {{ gen.form.close() }}
     {% if results is defined %}
-        <div>
+        {% if name_suggestions or content_suggestions %}
             <p>{{ _("name term suggestions: %(termlist)s", termlist=name_suggestions) }}</p>
             <p>{{ _("content term suggestions: %(termlist)s", termlist=content_suggestions) }}</p>
-        </div>
+        {% endif %}
         {% if results %}
             <div class="searchresults">
                 <table>

File MoinMoin/themes/foobar/static/css/common.css

 .searchresults dd,.searchresults p{font-size:.85em}
 .searchresults td{border-width:0}
 .searchresults p.info{margin-left:2%}
-.searchresults .searchhitinfobar{color:#51d443;margin-left:15px;margin-top:0}
+.searchresults .searchhitinfobar{margin-left:15px;margin-top:0}
 .searchresults .foundtext{margin-left:15px;margin-top:0}
 p.searchstats{font-size:.8em;text-align:right;width:100%;padding:2px}
 p.searchhint{background-color:#f4f4f4;border:1px solid #9d9d9b;padding:2px}

File MoinMoin/themes/foobar/static/css/stylus/main.styl

         margin-left 2%
 
 .searchresults .searchhitinfobar
-    color active_color
     margin-left 15px
     margin-top 0
 

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

 .searchresults dd,.searchresults p{font-size:.85em}
 .searchresults td{border-width:0}
 .searchresults p.info{margin-left:2%}
-.searchresults .searchhitinfobar{color:#939393;margin-left:15px;margin-top:0}
+.searchresults .searchhitinfobar{margin-left:15px;margin-top:0}
 .searchresults .foundtext{margin-left:15px;margin-top:0}
 p.searchstats{font-size:.8em;text-align:right;width:100%;padding:2px}
 p.searchhint{background-color:#eef1f6;border:1px solid #4e7da9;padding:2px}
 #moin-searchform div{margin:-6px 5px 0 0}
 #moin-long-searchform{padding:0;font-size:.82em;text-align:left}
 #moin-long-searchform div{margin:0}
-#moin-search-query{width:80%}
+#moin-search-query{width:50%}
 #moin-logo{float:left;margin:2px 10px;padding:0;font-size:1.4em;line-height:1em;font-weight:bold}
 #moin-logo img{vertical-align:middle}
 #moin-logo a{color:#fff;text-decoration:none}

File MoinMoin/themes/modernized/static/css/stylus/main.styl

     margin-left 2%
 
 .searchresults .searchhitinfobar
-    color nonexistent_link_color
     margin-left 15px
     margin-top 0
 
     margin 0
 
 #moin-search-query
-    width 80%
+    width 50%
 
 #moin-logo
     float left