From 441449673adbdd1d20e156fe89510e2d05c114c3 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 17 Jul 2015 10:59:07 +0200 Subject: [IMP] web: classnames update for new design compatibility The DOM structure and elements's classnames diverge in community and enterprise editions. Tips must work perfectly with both editions, obviously. This rev. updates some classnames in the community edition for the tips's selectors to match in both editions. The following classnames have been renamed/introduced: - oe_form_buttons_view renamed to o_form_buttons_view - oe_form_buttons_edit renamed to o_form_buttons_edit - oe_form_invisible renamed to o_form_invisible - oe_list now also has classname o_list_view - header tag in form views now has classname o_form_statusbar_buttons Other changes like these might be required later if other tips are introduced... --- addons/web/static/src/css/base.css | 6 +++--- addons/web/static/src/css/base.sass | 4 ++-- 2 files changed, 5 insertions(+), 5 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 83489fcba3c..49f87a4dbd0 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1098,10 +1098,10 @@ .openerp .oe-control-panel .oe_form_buttons { padding: 0; } -.openerp .oe-control-panel .oe_form_buttons_view > button { +.openerp .oe-control-panel .o_form_buttons_view > button { float: left; } -.openerp .oe-control-panel .oe_form_buttons_view > button:last-child { +.openerp .oe-control-panel .o_form_buttons_view > button:last-child { float: right; margin-left: 4px; } @@ -1574,7 +1574,7 @@ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(255, 255, 255, 0.8) inset; } -.openerp .oe_form_invisible { +.openerp .o_form_invisible { display: none !important; } .openerp .oe_form_editable .oe_read_only { diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 2c9807b8c03..a83d7d5a020 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -948,7 +948,7 @@ $sheet-padding: 16px width: 100% .oe_form_buttons padding: 0 - .oe_form_buttons_view + .o_form_buttons_view > button float: left &:last-child @@ -1322,7 +1322,7 @@ $sheet-padding: 16px button.oe_highlight:hover @include vertical-gradient(#f6f6f6, #e3e3e3) @include box-shadow((0 1px 2px rgba(0, 0, 0, .1), 0 1px 1px rgba(255, 255, 255, .8) inset)) - .oe_form_invisible + .o_form_invisible display: none !important .oe_form_editable .oe_read_only -- cgit v1.2.3