summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-06 15:57:57 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-06 15:57:57 +0200
commit0fadd586fae2dcab5a61284c166794477f17d697 (patch)
treedb9c16b8ed8c73de48660d99d20a024f01b8866a /addons/mass_mailing/static/src/scss/themes/theme_basic.scss
parent2c029a0cf64dc8b8aaf784659c53f544119c4e66 (diff)
parentff9ddfdacc9581361b555fd5f69e2da61800acad (diff)
[MERGE] forward port branch 12.0 up to ff9ddfdacc9
Diffstat (limited to 'addons/mass_mailing/static/src/scss/themes/theme_basic.scss')
-rw-r--r--addons/mass_mailing/static/src/scss/themes/theme_basic.scss29
1 files changed, 29 insertions, 0 deletions
diff --git a/addons/mass_mailing/static/src/scss/themes/theme_basic.scss b/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
index 00f3a6304bc..d65ea077f5f 100644
--- a/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
+++ b/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
@@ -1,3 +1,32 @@
+
+// TODO remove in master
+// Themes scss have to use bg-variant and text-emphasis-variant mixins of BS4
+// to properly work. That use was introduced as a fix in 12.0... but the BS4
+// mixins are unavailable in the mailing assets. As a stable fix cannot
+// introduce static code which requires an XML update to not crash, the mixins
+// were duplicated here instead.
+@mixin bg-variant($parent, $color) {
+ #{$parent} {
+ background-color: $color !important;
+ }
+ a#{$parent},
+ button#{$parent} {
+ &:hover, &:focus {
+ background-color: darken($color, 10%) !important;
+ }
+ }
+}
+@mixin text-emphasis-variant($parent, $color) {
+ #{$parent} {
+ color: $color !important;
+ }
+ a#{$parent} {
+ &:hover, &:focus {
+ color: darken($color, 10%) !important;
+ }
+ }
+}
+
// ============================
// Mass Mailing "Theme Basic"
// ============================