diff options
| author | Gaurav Panchal <gan@openerp.com> | 2015-08-13 17:33:37 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-08-14 09:48:19 +0200 |
| commit | 36e62924668bcd0d19b0ef4712349848251ad1ef (patch) | |
| tree | f6ce97f1b0fdc454450664c3be6d88a526455ed9 /addons/web/static/src/css | |
| parent | 19a252d578d4f5de0a5853f1a79b3d0ad49b5a8d (diff) | |
[FIX] web: radio horizontal
The widget was completely broken when usign the horizontal display.
It has been fixed, hopefully in a way that lessen the xml and
css.
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 9 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index a9d05b17bb2..637718e31d5 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -558,13 +558,12 @@ background: #7C7BAD; color: #eee; } -.openerp .oe_form_field_radio.oe_horizontal { - white-space: nowrap; -} .openerp .oe_form_field_radio.oe_horizontal label { display: inline-block; - text-align: center; - height: 16px; + margin-left: 20px; +} +.openerp .oe_form_field_radio.oe_horizontal > span > div { + display: inline-block; } .openerp .oe_form_field_radio.oe_vertical label { display: inline-block; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index c665269bcfe..644cdb4081b 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -509,11 +509,11 @@ $sheet-padding: 16px color: #eee .oe_form_field_radio &.oe_horizontal - white-space: nowrap label display: inline-block - text-align: center - height: 16px + margin-left: 20px + > span > div + display: inline-block &.oe_vertical label display: inline-block |
