summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/less/pointhi/checkbox.less
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/oscar/less/pointhi/checkbox.less')
-rw-r--r--searx/static/themes/oscar/less/pointhi/checkbox.less9
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/less/pointhi/checkbox.less b/searx/static/themes/oscar/less/pointhi/checkbox.less
new file mode 100644
index 0000000..6428b36
--- /dev/null
+++ b/searx/static/themes/oscar/less/pointhi/checkbox.less
@@ -0,0 +1,9 @@
+// Hide element if checkbox is checked
+input[type=checkbox]:checked + .label_hide_if_checked, input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked {
+ display:none;
+}
+
+// Hide element if checkbox is not checked
+input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked {
+ display:none;
+}