diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less index 33b65a682..157cfeed1 100644 --- a/searx/static/themes/simple/src/less/definitions.less +++ b/searx/static/themes/simple/src/less/definitions.less @@ -220,6 +220,7 @@ @tablet: 80em; @phone: 50em; @small-phone: 35em; +@ultra-small-phone: 20rem; /// From style.less @stacked-bar-chart: rgb(0, 0, 0); diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less index 794958594..fddd2b357 100644 --- a/searx/static/themes/simple/src/less/search.less +++ b/searx/static/themes/simple/src/less/search.less @@ -191,7 +191,7 @@ } #q { - width: auto !important; + width: 100%; flex: 1; } @@ -220,6 +220,18 @@ } } +@media screen and (max-width: @ultra-small-phone) { + #search { + grid-template-areas: + "search search" + "categories categories"; + } + + #search_logo { + display: none; + } +} + #categories { margin: 0 10px 0 0; .disable-user-select; diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index f6594041d..093b380f9 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -7,7 +7,7 @@ - + {% block title %}{% endblock %}{{ instance_name }}