summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/style.less
diff options
context:
space:
mode:
authorllmII <dev@amlegion.org>2023-01-04 20:18:48 -0600
committermrpaulblack <paul@paulgo.io>2023-01-23 21:22:06 +0100
commitd2b2300ee1a4c7efa66960d78d3f38c35fdc6630 (patch)
treed1e09290043dbd6e3486e275dd3ce33f3124a044 /searx/static/themes/simple/src/less/style.less
parenta8eb9d15e23356caeee827f9dc27f96c1ed94d4a (diff)
downloadsearxng-d2b2300ee1a4c7efa66960d78d3f38c35fdc6630.tar.gz
searxng-d2b2300ee1a4c7efa66960d78d3f38c35fdc6630.zip
Feature: Pagination Widget with list of numbers.
Adds to the navigation widget, preserving forward/backward nav, and inserting a list of clickable page numbers between them. Phone sized devices continue without this widget as deterministic display under small screen sizes has not been solved. The widget is agnostic to the actual amount of pages there are that one can navigate to and as such shows all plausible, albeit not necessarilly valid, possibilities. This widget does not interfere with infinite scroll in any fashion.
Diffstat (limited to 'searx/static/themes/simple/src/less/style.less')
-rw-r--r--searx/static/themes/simple/src/less/style.less30
1 files changed, 30 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index e43508dd1..d5fb73017 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;