summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mass_mailing/static/src/scss/themes/theme_basic.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
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.scss54
1 files changed, 54 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
new file mode 100644
index 00000000..d65ea077
--- /dev/null
+++ b/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
@@ -0,0 +1,54 @@
+
+// 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"
+// ============================
+
+// ===== Layout =====
+.o_basic_theme {
+ &.o_layout {
+ margin: 0;
+ padding: 0;
+ background-color: white;
+
+ &, p, h1, h2, h3, h4, h5, h6, span, ul, ol {
+ color: black;
+ }
+
+ p {
+ font-size: 13px;
+ margin-bottom: 0px;
+ }
+
+ ul, ol {
+ margin: 0;
+ }
+ }
+}