From ddc2346a06bf480633d744b486bf68fea3e3fbc6 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 6 Nov 2021 18:04:17 +0100 Subject: [PATCH] [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. --- searx/static/themes/simple/src/less/search.less | 5 +++++ 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 {