summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-27 02:27:48 +0100
committerMartin Fischer <martin@push-f.com>2022-01-05 11:03:44 +0100
commita12cb6a8073c048348235a91628cc63667660549 (patch)
tree00d4f1d742efbfd2438e9cbc83103ed80b1766d9
parent20a5e43e35f14da8699a2e4c9c73b2e21d7af10e (diff)
downloadsearxng-a12cb6a8073c048348235a91628cc63667660549.tar.gz
searxng-a12cb6a8073c048348235a91628cc63667660549.zip
[simple] improve styling of subcategory table headers in preferences
-rw-r--r--searx/static/themes/simple/src/less/definitions.less2
-rw-r--r--searx/static/themes/simple/src/less/preferences.less6
-rw-r--r--searx/templates/simple/preferences.html2
3 files changed, 9 insertions, 1 deletions
diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less
index dbf048ed4..b42dcd6e2 100644
--- a/searx/static/themes/simple/src/less/definitions.less
+++ b/searx/static/themes/simple/src/less/definitions.less
@@ -72,6 +72,7 @@
/// Settings Colors
--color-settings-tr-hover: #f7f7f7;
--color-settings-engine-description-font: darken(#dcdcdc, 30%);
+ --color-settings-engine-group-background: #0001;
/// Detail modal
--color-result-detail-font: #fff;
--color-result-detail-label-font: lightgray;
@@ -180,6 +181,7 @@
/// Settings Colors
--color-settings-tr-hover: #2d2d2d;
--color-settings-engine-description-font: darken(#dcdcdc, 30%);
+ --color-settings-engine-group-background: #1a1919;
/// Toolkit Colors
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
diff --git a/searx/static/themes/simple/src/less/preferences.less b/searx/static/themes/simple/src/less/preferences.less
index c6e691b9d..5fdd4bfaa 100644
--- a/searx/static/themes/simple/src/less/preferences.less
+++ b/searx/static/themes/simple/src/less/preferences.less
@@ -161,6 +161,12 @@
}
}
}
+
+ .engine-group {
+ text-align: left;
+ font-weight: normal;
+ background: var(--color-settings-engine-group-background);
+ }
}
@media screen and (max-width: @tablet) {
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 9ad076579..b4676d131 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -291,7 +291,7 @@
</tr>
{% for group, engines in engines_by_category[categ] | group_engines_in_tab %}
{% if loop.length > 1 %}
- <tr><th colspan="9">{{_(group)}}</th></tr>
+ <tr><th colspan="9" class="engine-group">{{_(group)}}</th></tr>
{% endif %}
{% for search_engine in engines %}
{% if not search_engine.private %}