summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/static/themes/__common__/less/result_templates.less5
-rw-r--r--searx/static/themes/oscar/src/less/logicodev-dark/oscar.less1
-rw-r--r--searx/static/themes/oscar/src/less/logicodev/oscar.less1
-rw-r--r--searx/static/themes/oscar/src/less/pointhi/oscar.less1
-rw-r--r--searx/static/themes/simple/src/less/style.less1
-rw-r--r--searx/templates/oscar/result_templates/map.html2
-rw-r--r--searx/templates/simple/result_templates/map.html2
7 files changed, 11 insertions, 2 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";
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html
index eb3fccfc0..3b7ba1111 100644
--- a/searx/templates/oscar/result_templates/map.html
+++ b/searx/templates/oscar/result_templates/map.html
@@ -64,7 +64,7 @@
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
<div class="collapse" id="result-map-{{ index }}">
- <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
+ <div class="osm-map-box" id="osm-map-{{ index }}"></div>
</div>
{%- endif -%}
diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html
index 8b08bda6e..dc6a62010 100644
--- a/searx/templates/simple/result_templates/map.html
+++ b/searx/templates/simple/result_templates/map.html
@@ -45,7 +45,7 @@
{{- result_sub_footer(result, proxify) -}}
{% if (result.latitude and result.longitude) or result.boundingbox -%}
- <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
+ <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" class="osm-map-box"></div></div>
{%- endif %}
{{- result_footer(result) }}