diff options
author | Monty <aroxus@protonmail.com> | 2022-03-09 17:43:58 +0100 |
---|---|---|
committer | mrpaulblack <paul@paulgo.io> | 2022-03-24 22:22:45 +0100 |
commit | 47dcf876ffbfdcbc37474f073f8df37a5c984df4 (patch) | |
tree | 7f7e42c92a457d70efee045ef6193ff8228de474 /searx/templates/simple/simple_search.html | |
parent | b14ed494fb70f976cd77c47d27f29e6fb0bac670 (diff) | |
download | searxng-47dcf876ffbfdcbc37474f073f8df37a5c984df4.tar.gz searxng-47dcf876ffbfdcbc37474f073f8df37a5c984df4.zip |
[simple theme] refactor search form
* update search input form params; inspiried by whoogle
* remove autofocus from result page input form (JS impl. as well as input param)
-> autofocus on landing page still works only on desktop and tablet with JS impl.
* update landing page margins on mobile
* rework border and radius for search form to 0.8rem and outline
* remove positioning from autocomplete JS lib and use CSS impl.
* match search box and autocomplete width
* rework search form to a google like design on mobile
* fix settings icon display withg RTL on mobile on result page when search input is empty
Diffstat (limited to 'searx/templates/simple/simple_search.html')
-rw-r--r-- | searx/templates/simple/simple_search.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/searx/templates/simple/simple_search.html b/searx/templates/simple/simple_search.html index 218f70496..26d251304 100644 --- a/searx/templates/simple/simple_search.html +++ b/searx/templates/simple/simple_search.html @@ -1,9 +1,11 @@ <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search"> <div id="search_header"> - <div class="search_box"> - <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" spellcheck="false" dir="auto" value="{{ q or '' }}"> - <button id="clear_search" type="reset" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> - <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> + <div id="search_view"> + <div class="search_box"> + <input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" autocapitalize="none" spellcheck="false" autocorrect="off" dir="auto" value="{{ q or '' }}"> + <button id="clear_search" type="reset" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> + <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> + </div> </div> </div> </form> |