From ad2e2cc8b5cb1654d284ee3cee9a71b784a425a0 Mon Sep 17 00:00:00 2001 From: sri-odoo Date: Fri, 10 Aug 2018 12:31:33 +0200 Subject: [PATCH] [REF] web: Overwrite bts4 custom checkbox design Overwrite bts4 custom-checkbox design (un-checked state only). Use outline rule to avoid conflics with :focus and :hover states. The change has been added in ui.scss to affect both backend and frontend. --- addons/web/static/src/scss/ui.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/web/static/src/scss/ui.scss b/addons/web/static/src/scss/ui.scss index 5c06569de5d..efdba4bc420 100644 --- a/addons/web/static/src/scss/ui.scss +++ b/addons/web/static/src/scss/ui.scss @@ -45,3 +45,13 @@ transform: rotate(180deg); } } + +// Overwrite bts4 custom-checkbox design (un-checked state only) +.custom-control.custom-checkbox { + .custom-control-input:not(:checked):not(:indeterminate) { + ~ .custom-control-label:before { + background: none; + outline: 1px solid $o-main-text-color; + } + } +}