summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-01-04 11:23:42 +0000
committerqsm-odoo <qsm@odoo.com>2019-01-04 11:27:07 +0000
commit70f35620babdfdf43e2c603efbf37f2cf7399240 (patch)
tree701adf8b8ddb96ac688c5487297ffd5a147b91b4 /addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss
parentc2c5785940bfdd0eb620ba39ae3697ec63426915 (diff)
[FIX] web_editor: restore backend colors
Commit https://github.com/odoo/odoo/commit/52ec536cef2ec84af0b36746f19a8cdf9f23fe2a made a mistake which made the backend use the website colors. This is because the web_editor app adds its bootstrap_overridden.scss file in both backend and frontend assets as the backend needs the editor colors (alpha, beta, ...). However, the 'primary', 'secondary', etc that the backend customizes should not be overridden by the web_editor. Therefore the file contained a hack to determine if it is the backend or not... hack which did not work anymore with the new system the mentioned commit implements. Also some comments were not adapted correctly by the mentioned commit. closes odoo/odoo#29935
Diffstat (limited to 'addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss')
-rw-r--r--addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss b/addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss
new file mode 100644
index 00000000000..8e1042c4cbd
--- /dev/null
+++ b/addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss
@@ -0,0 +1,3 @@
+
+$o-theme-color-palette: map-remove($o-theme-color-palette, 'primary', 'secondary', 'success', 'info', 'warning', 'danger', 'light', 'dark');
+$o-gray-color-palette: map-remove($o-gray-color-palette, '100', '200', '300', '400', '500', '600', '700', '800', '900');