diff --git a/AUTHORS.rst b/AUTHORS.rst index 82188cb7..75bc9f87 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -166,4 +166,5 @@ features or generally made searx better: - Sam A. ``_ - @XavierHorwood - Ahmad Alkadri ``_ -- Milad Laly @Milad-Laly \ No newline at end of file +- Milad Laly @Milad-Laly +- @llmII diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index e43508dd..d5fb7301 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -734,6 +734,36 @@ article[data-vim-selected].category-social { } } +.numbered_pagination { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + overflow: hidden; +} + +@media screen and (max-width: calc(@phone - 0.5px)) { + .numbered_pagination { + display: none; + } +} + +.page_number { + background: none !important; + border: none !important; + color: var(--color-result-link-font) !important; + text-decoration: underline !important; + cursor: pointer !important; +} + +.page_number_current { + background: none !important; + border: none !important; + color: var(--color-result-link-visited-font) !important; + text-decoration: none !important; + cursor: pointer !important; +} + #apis { margin-top: 8px; clear: both; diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index b05841bb..b7a6cb9e 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -187,6 +187,35 @@ + {% set pstart = 1 %} + {% set pend = 11 %} + {% if pageno > 5 %} + {% set pstart = pageno - 4 %} + {% set pend = pageno + 6 %} + {% endif %} + +
+ {% for x in range(pstart, pend) %} +
+ + {% for category in selected_categories %} + + {% endfor %} + + + + + + {% if timeout_limit %}{% endif %} + {{- engine_data_form(engine_data) -}} + {% if pageno == x %} + + {% else %} + + {% endif %} +
+ {% endfor %} +
{% endif %}