diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-05 16:58:56 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 11:08:50 +0200 |
commit | ad528c706efb46b415e460838f4562241a2d10ba (patch) | |
tree | cc82327ebfa65d9db37baeb077a670fdc995e32f /searx/static | |
parent | 48c806954eecc242227ad9868eabe03d1d415621 (diff) | |
download | searxng-ad528c706efb46b415e460838f4562241a2d10ba.tar.gz searxng-ad528c706efb46b415e460838f4562241a2d10ba.zip |
[fix] make result template map more CSP compliant - simple & oscar
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static')
5 files changed, 9 insertions, 0 deletions
diff --git a/searx/static/themes/__common__/less/result_templates.less b/searx/static/themes/__common__/less/result_templates.less new file mode 100644 index 000000000..d67aecae4 --- /dev/null +++ b/searx/static/themes/__common__/less/result_templates.less @@ -0,0 +1,5 @@ +.osm-map-box { + height:300px; + width:100%; + margin: 10px 0; +} 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 b0dbaee06..c1a2fc236 100644 --- a/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less +++ b/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less @@ -1,6 +1,7 @@ @import "../logicodev/variables.less"; @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; +@import "../../../../__common__/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 7457154cb..19e1c98f1 100644 --- a/searx/static/themes/oscar/src/less/logicodev/oscar.less +++ b/searx/static/themes/oscar/src/less/logicodev/oscar.less @@ -1,6 +1,7 @@ @import "variables.less"; @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; +@import "../../../../__common__/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 f5ea85467..5961c661e 100644 --- a/searx/static/themes/oscar/src/less/pointhi/oscar.less +++ b/searx/static/themes/oscar/src/less/pointhi/oscar.less @@ -1,6 +1,7 @@ @import "variables.less"; @import "../../../../__common__/less/new_issue.less"; @import "../../../../__common__/less/stats.less"; +@import "../../../../__common__/less/result_templates.less"; @import "../../generated/pygments-pointhi.less"; @import "footer.less"; diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 49e81acbd..c30d3e706 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -10,6 +10,7 @@ @import "../../__common__/less/new_issue.less"; @import "../../__common__/less/stats.less"; +@import "../../__common__/less/result_templates.less"; @import (inline) "../../node_modules/normalize.css/normalize.css"; @import "../generated/ion.less"; @import "definitions.less"; |