From ccd45298e4c2c8a99ca45d7b150e74b780b5c080 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Tue, 11 Oct 2022 13:49:45 +0000 Subject: [PATCH] [FIX] web, loyalty: adapt mail preview for dark mode Prior to this commit, the mail preview for gift card wasn't readable in dark mode. This commit fixes this issue. task-2710677 closes odoo/odoo#103163 X-original-commit: 360e8da33fa8b1a607a96eb58fc0dcc5e1b07539 Signed-off-by: Pierre Paridans (app) --- addons/loyalty/data/mail_template_data.xml | 50 ++++++++++--------- .../src/legacy/scss/attachment_preview.scss | 2 +- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/addons/loyalty/data/mail_template_data.xml b/addons/loyalty/data/mail_template_data.xml index 1dc357fef07..4c4a8597811 100644 --- a/addons/loyalty/data/mail_template_data.xml +++ b/addons/loyalty/data/mail_template_data.xml @@ -7,29 +7,31 @@ {{ object._get_mail_partner().id }} Sent to customer who purchased a gift card -
- Here is your gift card! -
-
- -
-
-

- $ 150.00

-
-
-

- Gift Card Code -

-

4f10-15d6-41b7-b04c-7b3e

-
-
-

Card expires 05/05/2021

-
-
- - Use it right now! - +
+
+ Here is your gift card! +
+
+ +
+
+

+ $ 150.00

+
+
+

+ Gift Card Code +

+

4f10-15d6-41b7-b04c-7b3e

+
+
+

Card expires 05/05/2021

+
+
@@ -46,7 +48,7 @@ {{ object._get_mail_partner().lang }} Sent to customer with coupon information - +
diff --git a/addons/web/static/src/legacy/scss/attachment_preview.scss b/addons/web/static/src/legacy/scss/attachment_preview.scss index 1cab191d09c..16268926097 100644 --- a/addons/web/static/src/legacy/scss/attachment_preview.scss +++ b/addons/web/static/src/legacy/scss/attachment_preview.scss @@ -30,7 +30,7 @@ $o-attachment-margin: 5px; border-bottom: 1px solid rgba(black, 0.1); border-radius: 2px; padding: 4px 6px 0 4px; - background-color: rgba(black, 0.05); + background-color: rgba($o-black, 0.05); .o_attachment_delete_cross { float: right;