summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-04-15 14:16:08 +0200
committerChristophe Matthieu <chm@openerp.com>2013-04-15 14:16:08 +0200
commit97900c25a44cb4669f1e45401d69b31b88cdcd96 (patch)
treed271a164edbcd91d95256c0d5979a4259938d88d /addons/web/static/src/css
parente69326ee3b32bf50805bf1aca73d941a3bbcd2fe (diff)
parented46400a55401257aca6cbb6bd1a97f3b4d632a6 (diff)
[MERGE] radio-many2one: clean code and allow to apply radio button on many2one field
bzr revid: chm@openerp.com-20130415121608-gmis1l6djbudyez5
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css28
-rw-r--r--addons/web/static/src/css/base.sass28
2 files changed, 31 insertions, 25 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index a6fd8da472c..52107bc84d7 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -2315,24 +2315,26 @@
.openerp .oe_form_field_radio.oe_horizontal {
white-space: nowrap;
}
-.openerp .oe_form_field_radio.oe_horizontal .oe_radio_header {
+.openerp .oe_form_field_radio.oe_form_required .oe_radio_input {
+ border: 1px solid transparent;
display: inline-block;
- text-align: center;
+ height: 12px;
+ width: 12px;
+ vertical-align: bottom;
+ border-radius: 10px;
+ margin: 1px 0;
}
-.openerp .oe_form_field_radio.oe_vertical .oe_radio_header {
- cursor: pointer;
+.openerp .oe_form_field_radio.oe_form_required.oe_form_invalid .oe_radio_input {
+ border-color: red;
}
-.openerp .oe_form_field_radio .oe_radio_input {
- cursor: pointer;
+.openerp .oe_form_field_radio.oe_horizontal label,
+.openerp .oe_form_field_radio.oe_horizontal div {
display: inline-block;
- width: 20px;
- background: transparent url(/web/static/src/img/icons/input_radio-off.png) no-repeat center center;
-}
-.openerp .oe_form_field_radio .oe_radio_input_on {
- background: transparent url(/web/static/src/img/icons/input_radio-on.png) no-repeat center center;
+ text-align: center;
+ height: 16px;
}
-.openerp .oe_form_field_radio .oe_radio_label {
- cursor: default;
+.openerp .oe_form_field_radio.oe_vertical label {
+ margin-left: 4px;
}
.openerp .oe_form_field_progressbar.ui-progressbar {
height: 22px;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index b79580d8225..072fda44357 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -483,21 +483,25 @@ $sheet-padding: 16px
.oe_form_field_radio
&.oe_horizontal
white-space: nowrap
- .oe_radio_header
+ label
display: inline-block
text-align: center
+ height: 16px
&.oe_vertical
- .oe_radio_header
- cursor: pointer
- .oe_radio_input
- cursor: pointer
- display: inline-block
- width: 20px
- background: transparent url(/web/static/src/img/icons/input_radio-off.png) no-repeat center center
- .oe_radio_input_on
- background: transparent url(/web/static/src/img/icons/input_radio-on.png) no-repeat center center
- .oe_radio_label
- cursor: default
+ label
+ margin-left: 4px
+ &.oe_form_required
+ .oe_radio_input
+ border: 2px solid transparent
+ display: inline-block
+ height: 12px
+ width: 12px
+ vertical-align: bottom
+ border-radius: 10px
+ margin: 1px 0
+ &.oe_form_invalid
+ .oe_radio_input
+ border-color: red
.oe_tags
&.oe_inline
min-width: 250px