Skip to content

Commit e642324

Browse files
authored
Merge pull request #1718 from UlrichB22/search_view
Fix search-options font and apply some W3C recommendations
2 parents ae51d7a + 2702e0f commit e642324

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/moin/static/css/common.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ a.moin-item-overlay-lr:hover { opacity: .8; background-color: var(--bg-trans-hov
274274
#moin-long-searchform div { margin: 0; }
275275
#moin-long-searchform .moin-search-query { width: 90%; margin-left: 0; }
276276
.moin-search-option-bar { font-size: 1.25em; font-weight: bold; cursor: pointer; color: var(--link); }
277+
.moin-searchopt-tab > th:nth-child(1), th:nth-child(2) { width: 20%; }
278+
.moin-searchopt-tab th:nth-child(3) { width: 60%; }
277279
.moin-search-hit-info { display: inline; }
278280
.moin-search-hits { font-weight: bold; }
279281
.moin-search-results { font-size: .92em; }

src/moin/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
{{ before_footer }}
7272
<footer id="moin-footer">
7373
{% block footer %}
74-
{% block footer_hr %}<hr/>{% endblock %}
74+
{% block footer_hr %}<hr>{% endblock %}
7575
{% block footer_itemviews %}{% endblock %}
7676
{% block footer_meta %}{% endblock %}
7777
{{ creditlogos }}

src/moin/templates/search.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ <h2>Search "{{ item_name }}" Subitems and Transclusions</h2>
3232
<a href="/+serve/docs/user/search.html">Local docs</a> or
3333
<a href="https://moin-20.readthedocs.io/en/latest/user/search.html">Internet docs.</a>
3434
</div>
35-
<div class="moin-search-option-bar"><p class="fa fa-chevron-down"> {{ _("Search Options") }}</p></div>
35+
<p class="moin-search-option-bar"><i class="fa fa-chevron-down"></i> {{ _("Search Options") }}</p>
3636
<div class="moin-searchoptions hidden">
3737
<table>
38-
<tr>
39-
<th width="20%">Revisions</td>
40-
<th width="20%">Sort By</td>
41-
<th width="60%" colspan="3">Content Types</td>
38+
<tr class="moin-searchopt-tab">
39+
<th>Revisions</th>
40+
<th>Sort By</th>
41+
<th colspan="3">Content Types</th>
4242
</tr>
4343
<tr>
4444
<td>
@@ -70,9 +70,7 @@ <h2>Search "{{ item_name }}" Subitems and Transclusions</h2>
7070
</table>
7171
<div class="hint">{{ _("An Ajax transaction is submitted each time a radio or checkbox is clicked.") }}</div>
7272
</div>
73-
<p>
7473
{{ forms.render_errors(medium_search_form) }}
75-
</p>
7674
{{ gen.form.close() }}
7775
<div id="finalresults">
7876
{%- include "ajaxsearch.html" %}

0 commit comments

Comments
 (0)