summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/bootstrap_overridden.scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-08-06 10:17:44 +0200
committerqsm-odoo <qsm@odoo.com>2018-08-10 15:43:07 +0200
commit1ea9ef79924662ad7b2df8dffad8d025e22caa51 (patch)
treedab3c1bea8adbab512bb324c8874555dc85b79b1 /addons/web_editor/static/src/scss/bootstrap_overridden.scss
parent42b47a7104c4ee012569caa0d4f2b96c57982f70 (diff)
[REF] web_editor: rename scss file to respect convention
The file was introduced with BS4 but the name was not well chosen.
Diffstat (limited to 'addons/web_editor/static/src/scss/bootstrap_overridden.scss')
-rw-r--r--addons/web_editor/static/src/scss/bootstrap_overridden.scss19
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/bootstrap_overridden.scss b/addons/web_editor/static/src/scss/bootstrap_overridden.scss
new file mode 100644
index 00000000000..edd79516154
--- /dev/null
+++ b/addons/web_editor/static/src/scss/bootstrap_overridden.scss
@@ -0,0 +1,19 @@
+
+// Automatically extend bootstrap to create theme background/text/button classes
+$theme-colors: () !default;
+$theme-colors: map-merge((
+ 'alpha': $color-alpha,
+ 'beta': $color-beta,
+ 'gamma': $color-gamma,
+ 'delta': $color-delta,
+ 'epsilon': $color-epsilon,
+), $theme-colors);
+
+// Extend grays with transparent ones (for some reason, BS4 create black-50 and
+// white-50 but does not allow overridding that with variables). Also add black
+// and white ones too as they were also not added by BS4...
+$grays: () !default;
+$grays: map-merge(map-merge($o-transparent-grays, (
+ black: $black, // Note: those two needs to be redefined before bootstrap,
+ white: $white, // otherwise they do not exist yet
+)), $grays);