diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2017-09-27 11:46:46 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2017-09-27 13:18:53 +0200 |
| commit | 9dead7e3d33ee0ddafb55060b3f95027e9330e55 (patch) | |
| tree | 68b0edbe1572a92eac5eed1c0f3ba34fc622469d /addons/web/static/src/less/webclient.less | |
| parent | 23d7c53424a11c146ed2de0c8360840804522d53 (diff) | |
[FIX] web: fix less on toggle boolean
Diffstat (limited to 'addons/web/static/src/less/webclient.less')
| -rw-r--r-- | addons/web/static/src/less/webclient.less | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/addons/web/static/src/less/webclient.less b/addons/web/static/src/less/webclient.less index 28a4c26d246..dfc26b11f5a 100644 --- a/addons/web/static/src/less/webclient.less +++ b/addons/web/static/src/less/webclient.less @@ -86,37 +86,39 @@ div.o_boolean_toggle { width: 32px !important; height: 18px; - > input { - display: none; - } + & > label { + & > input { + display: none; + } - .slider { - position: absolute; - cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: #a0a0a0; - border-radius: 24px; - - &:before { + & > .slider { position: absolute; - content: ""; - height: 12px; - width: 12px; - left: 3px; - bottom: 3px; - background-color: white; - border-radius: 50%; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #a0a0a0; + border-radius: 24px; + + &:before { + position: absolute; + content: ""; + height: 12px; + width: 12px; + left: 3px; + bottom: 3px; + background-color: white; + border-radius: 50%; + } } - } - > input:checked + .slider { - background-color: @odoo-brand-optional; + & > input:checked + .slider { + background-color: @odoo-brand-optional; - &:before { - .translate(14px; 0px); + &:before { + .translate(14px; 0px); + } } } } |
