summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorGaurav Panchal <gan@openerp.com>2015-08-27 11:34:21 +0200
committerRaphael Collet <rco@openerp.com>2015-08-27 16:59:47 +0200
commit95cb54b80bcfabde0473770d1a082a2b398dafbe (patch)
treeb876796391c6a0175a7644a45fe0bd6431b88f92 /addons/web/static/src/css
parent40cbf2bea132d89ccf81600f141613b3cc3cd993 (diff)
[ADD] web: add dynamic widget to toggle boolean button
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css6
-rw-r--r--addons/web/static/src/css/base.sass4
2 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 10556c1e30f..91b8fe7e927 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -301,6 +301,12 @@
.openerp .oe_button_box .oe_stat_button {
display: inline-table;
}
+.openerp .oe_button_box .oe_stat_button .o_stat_info:not(.is_true) > .o_stat_text.oe_true {
+ display: none;
+}
+.openerp .oe_button_box .oe_stat_button .o_stat_info.is_true > .o_stat_text.oe_false {
+ display: none;
+}
.openerp button.oe_toggle_button {
box-shadow: none;
white-space: nowrap;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 64a73b8addd..f04f963ae37 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -359,6 +359,10 @@ $sheet-padding: 16px
text-align: right
.oe_stat_button
display: inline-table
+ .o_stat_info:not(.is_true) > .o_stat_text.oe_true
+ display: none
+ .o_stat_info.is_true > .o_stat_text.oe_false
+ display: none
button.oe_toggle_button
box-shadow: none
white-space: nowrap