mirror of https://github.com/searxng/searxng.git
[fix] use input elements for pagination requests
* use html input elements instead of buttons for the pagination forms at the bottom of the result page * move the less section that hides the pagination number widget on mobile to the mobile section * clean up the less code for styling the numbers of the pagination widget * fix: add the margin for box results (like in news category) to the bottom of the result to have a margin between pagination widget and article result
This commit is contained in:
parent
d2b2300ee1
commit
8ead23347f
|
@ -362,7 +362,7 @@ article[data-vim-selected].category-social {
|
||||||
.category-files,
|
.category-files,
|
||||||
.category-social {
|
.category-social {
|
||||||
border: 1px solid var(--color-result-border);
|
border: 1px solid var(--color-result-border);
|
||||||
margin: 1rem @results-tablet-offset 0 @results-tablet-offset !important;
|
margin: 0 @results-tablet-offset 1rem @results-tablet-offset !important;
|
||||||
.rounded-corners;
|
.rounded-corners;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,26 +742,16 @@ article[data-vim-selected].category-social {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: calc(@phone - 0.5px)) {
|
|
||||||
.numbered_pagination {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.page_number {
|
.page_number {
|
||||||
background: none !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
|
||||||
color: var(--color-result-link-font) !important;
|
color: var(--color-result-link-font) !important;
|
||||||
text-decoration: underline !important;
|
text-decoration: underline;
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page_number_current {
|
.page_number_current {
|
||||||
background: none !important;
|
background: transparent;
|
||||||
border: none !important;
|
color: var(--color-result-link-visited-font);
|
||||||
color: var(--color-result-link-visited-font) !important;
|
border: none;
|
||||||
text-decoration: none !important;
|
|
||||||
cursor: pointer !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#apis {
|
#apis {
|
||||||
|
@ -1039,6 +1029,10 @@ article[data-vim-selected].category-social {
|
||||||
background-color: var(--color-sidebar-background);
|
background-color: var(--color-sidebar-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.numbered_pagination {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.result-paper {
|
.result-paper {
|
||||||
.attributes {
|
.attributes {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -209,9 +209,9 @@
|
||||||
{% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
|
{% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
|
||||||
{{- engine_data_form(engine_data) -}}
|
{{- engine_data_form(engine_data) -}}
|
||||||
{% if pageno == x %}
|
{% if pageno == x %}
|
||||||
<button role="link" class="page_number_current" type="button">{{ x }}</button>
|
<input role="link" class="page_number_current" type="button" value="{{ x }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<button role="link" class="page_number" type="submit">{{ x }}</button>
|
<input role="link" class="page_number" type="submit" value="{{ x }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue