From c7bb6945d193a250e0469dd05370cf6f2f18b946 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 27 Nov 2021 13:46:41 +0100 Subject: [PATCH 1/3] [fix] simple theme: img tile, shows duplicate information on screen Remove global title attribute from img tag[1][2] . In the image result, the title is already shown from span class title:: {{ result.title|striptags }} See commit: 8fbffb1409b [fix] simple-theme templates: polish HTML elements [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-title Reported-by: @dalf https://github.com/searxng/searxng/pull/545#issuecomment-980531215 Signed-off-by: Markus Heiser --- searx/templates/simple/result_templates/images.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index da7e34969..7e45f028e 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -1,6 +1,6 @@
{{- "" -}} {{- "" -}} - {{ result.title|striptags }}{{- "" -}} + {{ result.title|striptags }}{{- "" -}} {{ result.title|striptags }}{{- "" -}} {{- "" -}}
{{- "" -}} @@ -9,9 +9,9 @@ {{ icon('chevron-right') }}{{- "" -}} {%- if result.thumbnail_src -%} - {{ result.title|striptags }} + {{ result.title|striptags }} {%- else -%} - {{ result.title|striptags }} + {{ result.title|striptags }} {%- endif -%} {{- "" -}}
{{- "" -}} From fb5c1ed31036699eb5668f70fa3d5b0e953a2e8a Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 27 Nov 2021 14:37:04 +0100 Subject: [PATCH 2/3] [fix] simple theme: set img background color to wallpaper's color The *background color* of an transparent image is the color of the color of wallpaper on which all images are shown on. Set variable `--color-result-image-background` and `--color-base-background` to the same value. Signed-off-by: Markus Heiser --- searx/static/themes/simple/src/less/definitions.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less index 95370849d..dbf048ed4 100644 --- a/searx/static/themes/simple/src/less/definitions.less +++ b/searx/static/themes/simple/src/less/definitions.less @@ -68,7 +68,7 @@ // Images Colors --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); --color-result-image-span-font: #fff; - --color-result-image-background: #000bbb; + --color-result-image-background: #fff; /// Settings Colors --color-settings-tr-hover: #f7f7f7; --color-settings-engine-description-font: darken(#dcdcdc, 30%); @@ -176,7 +176,7 @@ // Images Colors --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); --color-result-image-span-font: #fff; - --color-result-image-background: #8af; + --color-result-image-background: #222; /// Settings Colors --color-settings-tr-hover: #2d2d2d; --color-settings-engine-description-font: darken(#dcdcdc, 30%); From f8c3acd7292b2f29cd804c7c76da4cc92f3558d5 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 29 Nov 2021 20:48:38 +0100 Subject: [PATCH 3/3] [build] /static --- .../themes/oscar/css/logicodev.min.css.map | Bin 10142 -> 10142 bytes .../static/themes/simple/css/searxng-rtl.css | 6 +++--- .../themes/simple/css/searxng-rtl.min.css | Bin 56687 -> 56684 bytes .../themes/simple/css/searxng-rtl.min.css.map | Bin 24190 -> 24190 bytes searx/static/themes/simple/css/searxng.css | 6 +++--- .../static/themes/simple/css/searxng.min.css | Bin 56648 -> 56645 bytes .../themes/simple/css/searxng.min.css.map | Bin 24134 -> 24134 bytes 7 files changed, 6 insertions(+), 6 deletions(-) diff --git a/searx/static/themes/oscar/css/logicodev.min.css.map b/searx/static/themes/oscar/css/logicodev.min.css.map index c28e2c7b3d2f4b40a16c03301b904198075a4d1e..52840b8ad15eb62d21541dd672c80de04cba5e78 100644 GIT binary patch delta 45 zcmV+|0Mh@SPo7VZd6R$w7O{x<0g-tRlWYMAv!4RyAOS;@h9hnPWV7`nd;CZCbvnY>z6c=J<*bEE|l9G}p&sUY1Y%0b-`IM^RWGMr_%?6S=Jj@n}X`AP(_HaWP Mf0#FGnL4ci0H?bZlK=n! diff --git a/searx/static/themes/simple/css/searxng-rtl.min.css.map b/searx/static/themes/simple/css/searxng-rtl.min.css.map index 6e9a63254f3d5cea3f100a41c123ff6831e5c440..03c375d582d2fe9cb02faac1fcee0fcf8f425997 100644 GIT binary patch delta 22 ecmeyjhw diff --git a/searx/static/themes/simple/css/searxng.css b/searx/static/themes/simple/css/searxng.css index c7319320c..a1f244e90 100644 --- a/searx/static/themes/simple/css/searxng.css +++ b/searx/static/themes/simple/css/searxng.css @@ -784,7 +784,7 @@ template { --color-result-search-url-font: #000; --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); --color-result-image-span-font: #fff; - --color-result-image-background: #000bbb; + --color-result-image-background: #fff; --color-settings-tr-hover: #f7f7f7; --color-settings-engine-description-font: #909090; --color-result-detail-font: #fff; @@ -875,7 +875,7 @@ template { --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); --color-result-image-span-font: #fff; - --color-result-image-background: #8af; + --color-result-image-background: #222; --color-settings-tr-hover: #2d2d2d; --color-settings-engine-description-font: #909090; --color-toolkit-badge-font: #fff; @@ -959,7 +959,7 @@ template { --color-result-detail-loader-borderleft: rgba(0, 0, 0, 0); --color-result-image-span-background-hover: rgba(0, 0, 0, 0.6); --color-result-image-span-font: #fff; - --color-result-image-background: #8af; + --color-result-image-background: #222; --color-settings-tr-hover: #2d2d2d; --color-settings-engine-description-font: #909090; --color-toolkit-badge-font: #fff; diff --git a/searx/static/themes/simple/css/searxng.min.css b/searx/static/themes/simple/css/searxng.min.css index 5100ae6501f5254532cf2d5ac70bed5077e67204..86a173de206460196d7eb9ee72e00ddd42821d5d 100644 GIT binary patch delta 45 xcmX@Hi}~m-<_(7>CZCbvnY>z6c=J<*bEE|l9G}p&sUY1Y%0b-`IM^RWGMr_%?6S=Jj@n}X`AP(_HaWP Mf0#FGnM$t!0F{~*9smFU diff --git a/searx/static/themes/simple/css/searxng.min.css.map b/searx/static/themes/simple/css/searxng.min.css.map index 977f6a105a157d1b18e9e7dd5e5ef5c597b41eef..cb682cf71d9611adfc3cec612c406bfc8bd11807 100644 GIT binary patch delta 26 icmX@Mhw<1R#tngjlNSiHPPP+OpL|cme)Ar|E*}7uy9$c{ delta 24 gcmX@Mhw<1R#tngjjDeG_M71a16S3dCN3hEW0DRa9k^lez