[IMP] view_form radio button with div inline-block

bzr revid: chm@openerp.com-20130321150405-fz61r51opx2m9kmt
This commit is contained in:
Christophe Matthieu
2013-03-21 16:04:05 +01:00
parent cad21aff66
commit 7d5ea8896e
4 changed files with 52 additions and 68 deletions
+10 -3
View File
@@ -2283,17 +2283,24 @@
display: inline-block;
min-width: 70px;
}
.openerp .oe_form_field_radio td, .openerp .oe_form_field_radio th {
.openerp .oe_form_field_radio.oe_horizontal {
white-space: nowrap;
}
.openerp .oe_form_field_radio.oe_horizontal .oe_radio_header {
display: inline-block;
text-align: center;
}
.openerp .oe_form_field_radio.oe_vertical .oe_radio_header {
cursor: pointer;
}
.openerp .oe_form_field_radio .oe_radio_input {
cursor: pointer;
display: inline-block;
width: 20px;
background: transparent url(/web/static/src/img/icons/input_radio-off.png) no-repeat 0px 0px;
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 0px 0px;
background: transparent url(/web/static/src/img/icons/input_radio-on.png) no-repeat center center;
}
.openerp .oe_form_field_radio .oe_radio_label {
cursor: default;
+11 -5
View File
@@ -477,15 +477,21 @@ $sheet-padding: 16px
background: $tag-bg-dark
color: #eee
.oe_form_field_radio
td,th
text-align: center
.oe_radio_input
&.oe_horizontal
white-space: nowrap
.oe_radio_header
display: inline-block
text-align: center
&.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 0px 0px
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 0px 0px
background: transparent url(/web/static/src/img/icons/input_radio-on.png) no-repeat center center
.oe_radio_label
cursor: default
.oe_tags