From ad208378bb78a35746db432011bcc08b4ffd708f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 15 May 2020 10:16:49 +0200 Subject: [PATCH] [fix] oscar theme, remove inline style attributes (CSP compliants) Inline styles are blocked by default with Content Security Policy (CSP). Move the rest of inline styles to CSS and correct the HTML template of the oscar preference page. Signed-off-by: Markus Heiser --- .../oscar/less/logicodev/preferences.less | 12 +++++++ searx/templates/oscar/preferences.html | 32 +++++++++++-------- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/searx/static/themes/oscar/less/logicodev/preferences.less b/searx/static/themes/oscar/less/logicodev/preferences.less index 9672d5011..82ce16310 100644 --- a/searx/static/themes/oscar/less/logicodev/preferences.less +++ b/searx/static/themes/oscar/less/logicodev/preferences.less @@ -1,3 +1,15 @@ .table > tbody > tr > td, .table > tbody > tr > th { vertical-align: middle !important; } + +.nav-tabs.nav-justified{ + margin-bottom: 20px; +} + +p { + margin: 10px 0; +} + +input.cursor-text { + margin: 10px 0; +} diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index b03929df3..5f6979590 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -9,7 +9,7 @@
-