diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-09-01 09:07:34 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-09-01 11:02:41 +0200 |
| commit | c1cc4b830bc2fd2b4cd01ff37b250d98e9dacb13 (patch) | |
| tree | 4e99e00b7057e0238d7fc36f8b6e089d3bc096b8 | |
| parent | 447dd53de5254c31897f36cce24b879828e006ac (diff) | |
[FIX] web: stat_button: display none on hover
A 'display: none' rule on hover has been added for boolean buttons, on each
'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on
every stat button that isn't a boolean button, so their content is always
hidden on hover.
| -rw-r--r-- | addons/web/static/src/css/base.css | 2 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 2 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 9f72d573ecc..3d185be00da 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -304,7 +304,7 @@ .openerp .oe_button_box .oe_stat_button:not(:hover) .o_stat_info > .o_hover { display: none !important; } -.openerp .oe_button_box .oe_stat_button:hover .o_stat_info > :not(.o_hover) { +.openerp .oe_button_box .oe_stat_button:hover .o_stat_info > .o_not_hover { display: none !important; } .openerp button.oe_toggle_button { diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 48e7893bf10..3776630c3f6 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -362,7 +362,7 @@ $sheet-padding: 16px // boolean_button rules: show the elements depending on hover status .oe_stat_button:not(:hover) .o_stat_info > .o_hover display: none !important - .oe_stat_button:hover .o_stat_info > :not(.o_hover) + .oe_stat_button:hover .o_stat_info > .o_not_hover display: none !important button.oe_toggle_button box-shadow: none diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index dc448fbae2d..c79d9fc1f86 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1438,11 +1438,11 @@ <t t-name="BooleanButton"> <t t-if="widget.get_value()"> - <span class="o_stat_text text-success"><t t-esc="widget.string_true"/></span> + <span class="o_stat_text o_not_hover text-success"><t t-esc="widget.string_true"/></span> <span class="o_stat_text o_hover text-danger"><t t-esc="widget.hover_true"/></span> </t> <t t-if="!widget.get_value()"> - <span class="o_stat_text text-danger"><t t-esc="widget.string_false"/></span> + <span class="o_stat_text o_not_hover text-danger"><t t-esc="widget.string_false"/></span> <span class="o_stat_text o_hover text-success"><t t-esc="widget.hover_false"/></span> </t> </t> |
