summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-03-21 16:04:05 +0100
committerChristophe Matthieu <chm@openerp.com>2013-03-21 16:04:05 +0100
commit7d5ea8896ea71fc4031dbe8f2e8f34888a117aed (patch)
treec08e4d030f50e9b7fc99c51ae22beb271072a691 /addons/web/static/src/css
parentcad21aff66fa3517e6d5e1c79cff93c0792c03f6 (diff)
[IMP] view_form radio button with div inline-block
bzr revid: chm@openerp.com-20130321150405-fz61r51opx2m9kmt
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css13
-rw-r--r--addons/web/static/src/css/base.sass16
2 files changed, 21 insertions, 8 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 3d1769bf345..368218b1293 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -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;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index a809e77f62a..5ff3c91442f 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -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