From 49ecf91f17522ef221dd91e95edd6af17a893c6f Mon Sep 17 00:00:00 2001 From: OrngSreyMoch Date: Mon, 25 Nov 2024 12:14:49 +0700 Subject: [PATCH] Close #2084 Enhance email confirmation background color on dark mode --- .../layouts/order_mailer.html.erb | 2 +- .../order_mailer/_mailer_stylesheets.html.erb | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/views/spree_cm_commissioner/layouts/order_mailer.html.erb b/app/views/spree_cm_commissioner/layouts/order_mailer.html.erb index 58157fb69..76c5ec90f 100644 --- a/app/views/spree_cm_commissioner/layouts/order_mailer.html.erb +++ b/app/views/spree_cm_commissioner/layouts/order_mailer.html.erb @@ -6,7 +6,7 @@ - <%= render partial: 'spree_cm_commissioner/order_mailer/mailer_stylesheets' %> + <%= render partial: 'spree_cm_commissioner/order_mailer/mailer_stylesheets' %> diff --git a/app/views/spree_cm_commissioner/order_mailer/_mailer_stylesheets.html.erb b/app/views/spree_cm_commissioner/order_mailer/_mailer_stylesheets.html.erb index b58e1129f..bd63a584a 100644 --- a/app/views/spree_cm_commissioner/order_mailer/_mailer_stylesheets.html.erb +++ b/app/views/spree_cm_commissioner/order_mailer/_mailer_stylesheets.html.erb @@ -22,7 +22,7 @@ } .email-body_inner { background-color: transparent; - padding-top: 2.5rem; + padding-top: 1.5rem; } #confirm-email .content-cell { background: white; @@ -240,7 +240,8 @@ .content { padding: 1.5rem; border-radius: 0 0 1.5625rem 1.5625rem; - border: 0.0625rem solid #dddfe2; } + border: 0.0625rem solid #dddfe2; + } .purchase { width: 100%; border-collapse: collapse; @@ -262,15 +263,9 @@ .align-center-vertical { vertical-align: middle; } - @media (prefers-color-scheme: dark) { - #confirm-email .content-cell { - background-color: #333333; - } - } .mail-icon { width: 1.5rem; height: 1.5rem; margin: auto; } -