diff options
| author | rde <rde@odoo.com> | 2017-09-22 14:16:58 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2017-09-25 10:53:28 +0200 |
| commit | b94939377a7dee66f7860f4ef9e59be85cccf2ba (patch) | |
| tree | 4dfeff5bac5047efc61825a0e3a06be0bc951fde /addons/web/static/src/less/webclient_extra.less | |
| parent | a40236d38a8f178b21d674e22aab5120bcce034c (diff) | |
[IMP] web: improve renderCheckbox to be re-usable in front end
Before this commit, the label was into a display block that add a return line
between the cehckbox and the label.
It was not visible in backend, because label by defaut is displayed without
renderCheckbox. (no options.text provided)
Now renderCheckbox render correctly with the same code in frontend and backend
Diffstat (limited to 'addons/web/static/src/less/webclient_extra.less')
| -rw-r--r-- | addons/web/static/src/less/webclient_extra.less | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/addons/web/static/src/less/webclient_extra.less b/addons/web/static/src/less/webclient_extra.less index 7c337352618..2f4e03e9479 100644 --- a/addons/web/static/src/less/webclient_extra.less +++ b/addons/web/static/src/less/webclient_extra.less @@ -4,8 +4,17 @@ div.o_checkbox { display: inline-block; vertical-align: sub; - > input + span { - display: none; + margin-top: 0px; + margin-bottom: 0px; + input[type="checkbox"] { + position: inherit; + margin-left: 0; + } + > label { + padding-left: 0px; + > input + span { + display: none; + } } } |
