summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-03-19 20:37:15 +0100
committerAlexandre Flament <alex@al-f.net>2022-03-19 20:49:37 +0100
commit84340f56ec0b33019fe623eb1ddf3742a874aabe (patch)
treee31136a619ddaa0d3b65bcf7b6bd99d141df9a38 /searx/static/themes/simple/src/less
parentbe8d2f494955949494afc4ad8a23a57785e85180 (diff)
simple theme: JS version: the reset button clear the text
The <input type="reset"> introduced in the PR 894, restores the default value. It works in the index page, but it doesn't work in the /search page: the reset button restore the initial query. This PR: * fix the JS version: the reset button clear the text * keep the clear button in the / page * hide the clear button in the /search page
Diffstat (limited to 'searx/static/themes/simple/src/less')
-rw-r--r--searx/static/themes/simple/src/less/search.less4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less
index a9a00d585..62fda55b7 100644
--- a/searx/static/themes/simple/src/less/search.less
+++ b/searx/static/themes/simple/src/less/search.less
@@ -125,6 +125,10 @@
}
}
+html.no-js #clear_search.hide_if_nojs {
+ display: none;
+}
+
#q,
#send_search {
display: block !important;