From 36e62924668bcd0d19b0ef4712349848251ad1ef Mon Sep 17 00:00:00 2001 From: Gaurav Panchal Date: Thu, 13 Aug 2015 17:33:37 +0200 Subject: [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. --- addons/web/static/src/css/base.css | 9 ++++----- addons/web/static/src/css/base.sass | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'addons/web/static/src/css') 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 -- cgit v1.2.3