From afcfa04e30af048c63d12bdbe3e281582a917b91 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 21:18:45 +0200 Subject: [PATCH] oscar template: improve style for check and uncheck of engines --- searx/static/oscar/css/oscar.css | 8 ++++++++ searx/templates/oscar/preferences.html | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/searx/static/oscar/css/oscar.css b/searx/static/oscar/css/oscar.css index 6ca390679..4ff475e89 100644 --- a/searx/static/oscar/css/oscar.css +++ b/searx/static/oscar/css/oscar.css @@ -17,3 +17,11 @@ body { /* Set the fixed height of the footer here */ height: 40px; } + +input[type=checkbox]:checked ~ .label_hide_if_checked { + display:none; +} + +input[type=checkbox]:not(:checked) ~ .label_hide_if_not_checked { + display:none; +} diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index d0bbbc820..38f874e51 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -97,9 +97,9 @@
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})
- - - + + +