From c1cc4b830bc2fd2b4cd01ff37b250d98e9dacb13 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 1 Sep 2015 09:07:34 +0200 Subject: [PATCH] [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. --- addons/web/static/src/css/base.css | 2 +- addons/web/static/src/css/base.sass | 2 +- 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 @@ - + - +