diff options
| author | Raphael Collet <rco@openerp.com> | 2015-08-28 16:32:31 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-08-31 12:07:41 +0200 |
| commit | 80e5b4245a0ced2717a6e063d96ee10fb8ec469d (patch) | |
| tree | 35752f47bf68bfc2840221c7e6c2859ef00a2744 /addons/web/static/src/css | |
| parent | a64c1b644f9014b236fdd51de9fe8fe32c220ecf (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 4 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 9 |
2 files changed, 7 insertions, 6 deletions
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 |
