diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-07-17 10:59:07 +0200 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2015-08-06 10:14:27 +0200 |
| commit | 441449673adbdd1d20e156fe89510e2d05c114c3 (patch) | |
| tree | 0e7000ffd96c270a32e5aba27503c1ee3df511af /addons/web/static/src/css | |
| parent | f6a246045f0d1dd05b36409c3c0101c52e091d67 (diff) | |
[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...
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 6 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 4 |
2 files changed, 5 insertions, 5 deletions
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 |
