Skip to content

Commit

Permalink
Merge pull request moinwiki#1718 from UlrichB22/search_view
Browse files Browse the repository at this point in the history
Fix search-options font and apply some W3C recommendations
  • Loading branch information
RogerHaase authored Aug 2, 2024
2 parents ae51d7a + 2702e0f commit e642324
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/moin/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ a.moin-item-overlay-lr:hover { opacity: .8; background-color: var(--bg-trans-hov
#moin-long-searchform div { margin: 0; }
#moin-long-searchform .moin-search-query { width: 90%; margin-left: 0; }
.moin-search-option-bar { font-size: 1.25em; font-weight: bold; cursor: pointer; color: var(--link); }
.moin-searchopt-tab > th:nth-child(1), th:nth-child(2) { width: 20%; }
.moin-searchopt-tab th:nth-child(3) { width: 60%; }
.moin-search-hit-info { display: inline; }
.moin-search-hits { font-weight: bold; }
.moin-search-results { font-size: .92em; }
Expand Down
2 changes: 1 addition & 1 deletion src/moin/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
{{ before_footer }}
<footer id="moin-footer">
{% block footer %}
{% block footer_hr %}<hr/>{% endblock %}
{% block footer_hr %}<hr>{% endblock %}
{% block footer_itemviews %}{% endblock %}
{% block footer_meta %}{% endblock %}
{{ creditlogos }}
Expand Down
12 changes: 5 additions & 7 deletions src/moin/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ <h2>Search "{{ item_name }}" Subitems and Transclusions</h2>
<a href="/+serve/docs/user/search.html">Local docs</a> or
<a href="https://moin-20.readthedocs.io/en/latest/user/search.html">Internet docs.</a>
</div>
<div class="moin-search-option-bar"><p class="fa fa-chevron-down"> {{ _("Search Options") }}</p></div>
<p class="moin-search-option-bar"><i class="fa fa-chevron-down"></i> {{ _("Search Options") }}</p>
<div class="moin-searchoptions hidden">
<table>
<tr>
<th width="20%">Revisions</td>
<th width="20%">Sort By</td>
<th width="60%" colspan="3">Content Types</td>
<tr class="moin-searchopt-tab">
<th>Revisions</th>
<th>Sort By</th>
<th colspan="3">Content Types</th>
</tr>
<tr>
<td>
Expand Down Expand Up @@ -70,9 +70,7 @@ <h2>Search "{{ item_name }}" Subitems and Transclusions</h2>
</table>
<div class="hint">{{ _("An Ajax transaction is submitted each time a radio or checkbox is clicked.") }}</div>
</div>
<p>
{{ forms.render_errors(medium_search_form) }}
</p>
{{ gen.form.close() }}
<div id="finalresults">
{%- include "ajaxsearch.html" %}
Expand Down

0 comments on commit e642324

Please sign in to comment.