From 80e5b4245a0ced2717a6e063d96ee10fb8ec469d Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Fri, 28 Aug 2015 16:32:31 +0200 Subject: [IMP] web: make `boolean_button` more specific, and change label on hover The widget now provide labels that depend on widget option "terminology". For each terminology, it provides four button labels that are shown depending on the field's value and hover status on the button. --- addons/web/static/src/css/base.css | 4 ++-- addons/web/static/src/css/base.sass | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'addons/web/static/src/css') diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index b497982ad05..9f72d573ecc 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -301,10 +301,10 @@ .openerp .oe_button_box .oe_stat_button { display: inline-table; } -.openerp .oe_button_box .oe_stat_button .o_stat_info:not(.is_true) .o_true { +.openerp .oe_button_box .oe_stat_button:not(:hover) .o_stat_info > .o_hover { display: none !important; } -.openerp .oe_button_box .oe_stat_button .o_stat_info.is_true .o_false { +.openerp .oe_button_box .oe_stat_button:hover .o_stat_info > :not(.o_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 ca7b3d293ab..48e7893bf10 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -359,10 +359,11 @@ $sheet-padding: 16px text-align: right .oe_stat_button display: inline-table - .o_stat_info:not(.is_true) .o_true - display: none !important - .o_stat_info.is_true .o_false - display: none !important + // 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) + display: none !important button.oe_toggle_button box-shadow: none white-space: nowrap -- cgit v1.2.3