summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-07-25 16:34:13 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-25 17:00:24 +0200
commit28ac3a369fc26623b548b86aa91b2ed459f2b32e (patch)
tree0810df276b2cc909a7fed921c3e8f9006330850e /addons/web_editor/static/src/less
parent3fe3f55cf5ef8a72cc7e19821ed6d07dc329d3c2 (diff)
[FIX] web_editor: secure the paddings of btn in the editor
Prevent the padding of editor .btn's to change when a theme modifies them (by mistake or not). Once again, this is a problem of css isolation between the editor and the website customization. A theme cannot safely, at this time, do "#wrapwrap .btn" to isolate its rules because it may override some bootstrap rules like ".btn-group .btn" which would became less important. It cannot changes the bootstrap variables either as it is still used by the odoo ui in some places. There is no safe good solution to "share" bootstrap theming between odoo ui and website ui. The safest solution is to force the design of odoo ui elements that may be overridden by themes (in the end, it's the same as progressively removing bootstrap from odoo ui).
Diffstat (limited to 'addons/web_editor/static/src/less')
-rw-r--r--addons/web_editor/static/src/less/web_editor.ui.less1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.ui.less b/addons/web_editor/static/src/less/web_editor.ui.less
index 57caa2dda0e..a9a809875ce 100644
--- a/addons/web_editor/static/src/less/web_editor.ui.less
+++ b/addons/web_editor/static/src/less/web_editor.ui.less
@@ -665,6 +665,7 @@ html[lang] > body.editor_enable{
height: @odoo-navbar-height;
border: none;
border-radius: 0;
+ padding: @padding-base-vertical @padding-base-horizontal; // force this because of themes
background-color: @o-we-color-dark;
color: @o-we-color-text-normal;
border-top: 2px solid transparent;