diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 15:11:00 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 08:20:30 +0200 |
commit | 9d106ae972f0d5ae72d2e7cd5fae28c4d56deb14 (patch) | |
tree | 1187c01baebe39bc07bf1ef8cc1516b912f12a7e /searx/static | |
parent | e564cef0fe19a78d22cf7fca64fc389d959c02b6 (diff) | |
download | searxng-9d106ae972f0d5ae72d2e7cd5fae28c4d56deb14.tar.gz searxng-9d106ae972f0d5ae72d2e7cd5fae28c4d56deb14.zip |
[fix] make oscar theme more CSP compliant - default-image-style
Add default-image-style in::
searx/static/themes/oscar/src/less/result_templates.less
Replaced style= in files::
./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static')
4 files changed, 8 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less b/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less index c1a2fc236..199d76e08 100644 --- a/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less +++ b/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less @@ -2,6 +2,7 @@ @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; @import "../../../../__common__/less/result_templates.less"; +@import "../../less/result_templates.less"; @import "../../generated/pygments-logicodev.less"; @stacked-bar-chart: rgb(213, 216, 215, 1); diff --git a/searx/static/themes/oscar/src/less/logicodev/oscar.less b/searx/static/themes/oscar/src/less/logicodev/oscar.less index 19e1c98f1..e9dc1f532 100644 --- a/searx/static/themes/oscar/src/less/logicodev/oscar.less +++ b/searx/static/themes/oscar/src/less/logicodev/oscar.less @@ -2,6 +2,7 @@ @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; @import "../../../../__common__/less/result_templates.less"; +@import "../../less/result_templates.less"; @import "../../generated/pygments-logicodev.less"; @import "navbar.less"; diff --git a/searx/static/themes/oscar/src/less/pointhi/oscar.less b/searx/static/themes/oscar/src/less/pointhi/oscar.less index 5961c661e..e7ea08b18 100644 --- a/searx/static/themes/oscar/src/less/pointhi/oscar.less +++ b/searx/static/themes/oscar/src/less/pointhi/oscar.less @@ -2,6 +2,7 @@ @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; @import "../../../../__common__/less/result_templates.less"; +@import "../../less/result_templates.less"; @import "../../generated/pygments-pointhi.less"; @import "footer.less"; diff --git a/searx/static/themes/oscar/src/less/result_templates.less b/searx/static/themes/oscar/src/less/result_templates.less new file mode 100644 index 000000000..80b3822c4 --- /dev/null +++ b/searx/static/themes/oscar/src/less/result_templates.less @@ -0,0 +1,5 @@ +.default-image-style { + width: auto; + max-height: 60px; + min-height: 60px; +} |