From cd2504c75fb7afeca2388925c4e790cda94ceeeb Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 13 Apr 2018 15:51:22 +0200 Subject: [FIX] *: wrap negated variables with parenthesis * mail, web, web_editor, website_sale Tricky difference between LESS and SCSS: `0 -$var` will be one value in SCSS (the result of 0 - $var) but two space-separated values in LESS. --- addons/web_editor/static/src/scss/web_editor.ui.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web_editor/static/src/scss/web_editor.ui.scss') diff --git a/addons/web_editor/static/src/scss/web_editor.ui.scss b/addons/web_editor/static/src/scss/web_editor.ui.scss index 0208a43509c..72e6dc56872 100644 --- a/addons/web_editor/static/src/scss/web_editor.ui.scss +++ b/addons/web_editor/static/src/scss/web_editor.ui.scss @@ -268,7 +268,7 @@ html[lang] > body.editor_enable [data-oe-translation-state] { position: relative; width: 100%; height: $o-we-dropzone-size; - margin: -$o-we-dropzone-size/2 0; + margin: (-$o-we-dropzone-size/2) 0; @include o-transition(margin, 400ms, linear); @@ -288,7 +288,7 @@ html[lang] > body.editor_enable [data-oe-translation-state] { width: $o-we-dropzone-size; float: left; - margin: 0 -$o-we-dropzone-size/2; + margin: 0 (-$o-we-dropzone-size/2); &:after { width: 50%; -- cgit v1.2.3