[fix] make oscar theme more CSP compliant - col-checkbox

Add col-checkbox in::

    searx/static/themes/oscar/src/less/preferences.less

Replaced style in file::

    searx/templates/oscar/preferences.html

Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-09-07 08:12:46 +02:00
parent 9d106ae972
commit 222031e975
5 changed files with 11 additions and 5 deletions

View file

@ -3,6 +3,7 @@
@import "../../../../__common__/less/stats.less";
@import "../../../../__common__/less/result_templates.less";
@import "../../less/result_templates.less";
@import "../../less/preferences.less";
@import "../../generated/pygments-logicodev.less";
@stacked-bar-chart: rgb(213, 216, 215, 1);

View file

@ -3,6 +3,7 @@
@import "../../../../__common__/less/stats.less";
@import "../../../../__common__/less/result_templates.less";
@import "../../less/result_templates.less";
@import "../../less/preferences.less";
@import "../../generated/pygments-logicodev.less";
@import "navbar.less";

View file

@ -3,6 +3,7 @@
@import "../../../../__common__/less/stats.less";
@import "../../../../__common__/less/result_templates.less";
@import "../../less/result_templates.less";
@import "../../less/preferences.less";
@import "../../generated/pygments-pointhi.less";
@import "footer.less";

View file

@ -0,0 +1,3 @@
.col-checkbox {
width: 10rem;
}

View file

@ -318,12 +318,12 @@
<th scope="col">{{ _("Allow") }}</th>
<th scope="col">{{ _("Engine name") }}</th>
<th scope="col">{{ _("Shortcut") }}</th>
<th scope="col" style="width: 10rem">{{ _("Selected language") }}</th>
<th scope="col" style="width: 10rem">{{ _("SafeSearch") }}</th>
<th scope="col" style="width: 10rem">{{ _("Time range") }}</th>
<th scope="col" class="col-checkbox">{{ _("Selected language") }}</th>
<th scope="col" class="col-checkbox">{{ _("SafeSearch") }}</th>
<th scope="col" class="col-checkbox">{{ _("Time range") }}</th>
<th scope="col">{{ _("Response time") }}</th>
<th scope="col" class="text-right" style="width: 7rem">{{ _("Max time") }}</th>
<th scope="col" class="text-right" style="width: 7rem">{{ _("Reliablity") }}</th>
<th scope="col" class="col-checkbox text-right">{{ _("Max time") }}</th>
<th scope="col" class="col-checkbox text-right">{{ _("Reliablity") }}</th>
{% else %}
<th scope="col">{{ _("Reliablity") }}</th>
<th scope="col">{{ _("Max time") }}</th>