diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-01-30 11:04:57 +0100 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-02-01 09:32:46 +0100 |
| commit | e6cccbf441eddf48feaa0ff1e99ecf40f9f973ed (patch) | |
| tree | 025d7bfd8bd5bc83d5395f38d79ad8796f28b76d /addons/web/static/src | |
| parent | c9ef5742bbd1afe204ef48c1f574182832c56801 (diff) | |
[FIX] web: less boolean_toogle
Before this commit, the boolean_toggle widget was rendered
but the less contained errors that prevented it from displaying correctly
This was due to commit 9dead7e3d33ee0ddafb55060b3f95027e9330e55
After this commit, the widget displays correctly
There might be an issue in the future because of
field_utils.formatBoolean, when this function decides to pass the full options dict
OPW 80782
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/less/webclient.less | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/addons/web/static/src/less/webclient.less b/addons/web/static/src/less/webclient.less index dfc26b11f5a..215b86cef83 100644 --- a/addons/web/static/src/less/webclient.less +++ b/addons/web/static/src/less/webclient.less @@ -86,39 +86,37 @@ div.o_boolean_toggle { width: 32px !important; height: 18px; - & > label { - & > input { + > input { display: none; } - & > .slider { + .slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #a0a0a0; + border-radius: 24px; + + &:before { position: absolute; - 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%; - } + 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); } } } |
