From f087959b02d812651f5dcec30c84daacb08f27c0 Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Sun, 28 May 2023 00:37:25 +0200 Subject: [PATCH] [mod] simple theme: build design for details (collapsables) * set border top and bottom on sidebar collasables * inrease peading on summary so its easier to click on mobile * remove margins and add flex wrapper to normalize elements in sidebar --- .../static/themes/simple/src/less/style.less | 21 +++++++++- searx/templates/simple/elements/apis.html | 42 ++++++++++--------- .../simple/elements/engines_msg.html | 2 +- .../templates/simple/elements/search_url.html | 2 +- .../simple/elements/suggestions.html | 2 +- searx/templates/simple/results.html | 3 +- 6 files changed, 46 insertions(+), 26 deletions(-) diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 4e2f71015..3545ed309 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -529,6 +529,10 @@ article[data-vim-selected].category-social { grid-area: urls; } +#apis .wrapper { + display: flex; +} + #suggestions { .wrapper { display: flex; @@ -598,6 +602,21 @@ article[data-vim-selected].category-social { color: var(--color-base-font); } +summary.title { + cursor: pointer; + padding-top: 1em; +} + +.sidebar-collapsable { + border-top: 1px solid var(--color-sidebar-border); + padding-bottom: 0.5em; +} + +#sidebar-end-collapsable { + border-bottom: 1px solid var(--color-sidebar-border); + width: 100%; +} + #answers { grid-area: answers; background: var(--color-answer-background); @@ -695,8 +714,6 @@ article[data-vim-selected].category-social { } #search_url { - margin-top: 8px; - div.selectable_url { pre { width: 200em; diff --git a/searx/templates/simple/elements/apis.html b/searx/templates/simple/elements/apis.html index c3bc76726..5c7a07110 100644 --- a/searx/templates/simple/elements/apis.html +++ b/searx/templates/simple/elements/apis.html @@ -1,24 +1,26 @@ diff --git a/searx/templates/simple/elements/engines_msg.html b/searx/templates/simple/elements/engines_msg.html index 9b8028b7e..1ae8a8c3b 100644 --- a/searx/templates/simple/elements/engines_msg.html +++ b/searx/templates/simple/elements/engines_msg.html @@ -1,5 +1,5 @@
-
+