summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/oscar/src/less/result_templates.less5
-rw-r--r--searx/templates/oscar/result_templates/default.html2
-rw-r--r--searx/templates/oscar/result_templates/files.html2
6 files changed, 10 insertions, 2 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;
+}
diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html
index 53cfee5cb..2f0158b46 100644
--- a/searx/templates/oscar/result_templates/default.html
+++ b/searx/templates/oscar/result_templates/default.html
@@ -16,7 +16,7 @@
{%- if result.img_src or result.thumbnail -%}
<div class="container-fluid">{{- "" -}}
<div class="row">{{- "" -}}
- <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">
+ <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" class="default-image-style" class="col-xs-2 col-sm-4 col-md-4 result-content">
{%- if result.content %}<p class="result-content col-xs-8 col-sm-8 col-md-8">{{ result.content|safe }}</p>{% endif -%}
</div>{{- "" -}}
</div>
diff --git a/searx/templates/oscar/result_templates/files.html b/searx/templates/oscar/result_templates/files.html
index e2fec6f63..52798f7d8 100644
--- a/searx/templates/oscar/result_templates/files.html
+++ b/searx/templates/oscar/result_templates/files.html
@@ -21,7 +21,7 @@
{%- if result.img_src -%}
<div class="container-fluid">
<div class="row">
-<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">
+<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="default-image-style col-xs-2 col-sm-4 col-md-4 result-content">
{%- if result.content %}<p class="result-content col-xs-8 col-sm-8 col-md-8">{{ result.content|safe }}</p>{% endif -%}
</div>
</div>