diff options
author | Alexandre Flament <alex@al-f.net> | 2021-11-06 18:04:17 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-11-06 21:13:41 +0100 |
commit | ddc2346a06bf480633d744b486bf68fea3e3fbc6 (patch) | |
tree | cdd0ade727d345029d8730b013e531aaf7b17165 | |
parent | 1ccf296a558260e46f5b7a294807bd74285e70fc (diff) | |
download | searxng-ddc2346a06bf480633d744b486bf68fea3e3fbc6.tar.gz searxng-ddc2346a06bf480633d744b486bf68fea3e3fbc6.zip |
[enh] simple theme: mobile layout: allow access to the preferences
when there is no query, reduce the width of the query field,
to display the preference button on the right.
-rw-r--r-- | searx/static/themes/simple/src/less/search.less | 5 | ||||
-rw-r--r-- | searx/static/themes/simple/src/less/style.less | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less index 960e8bc9c..794958594 100644 --- a/searx/static/themes/simple/src/less/search.less +++ b/searx/static/themes/simple/src/less/search.less @@ -195,6 +195,11 @@ flex: 1; } + #main_results #q:placeholder-shown ~ #send_search { + margin-right: 2.6rem; + transition: margin-right 0.1s; + } + .search_filters { display: block; margin: 0.8em 0; diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 2c08c5d31..0d57772e1 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -724,10 +724,13 @@ article[data-vim-selected].category-social { } #linkto_preferences { - display: none; - position: fixed !important; - top: 100px; - right: 0; + top: 0.8rem; + right: 0.7rem; + } + + #main_index #linkto_preferences { + top: 0.5rem; + right: 0.5rem; } #results { |