From 10a4bbfa729a5c96354f7c8e616939344a9fac85 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Thu, 14 Apr 2022 15:08:09 -0500 Subject: [PATCH] update email dark mode styles (#16484) Update dark mode styles for: - secure media - code blocks (they were too dark and had bad contrast) --- app/helpers/email_helper.rb | 10 +++++----- lib/email/styles.rb | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb index 10209c40ca3..4d95386af4e 100644 --- a/app/helpers/email_helper.rb +++ b/app/helpers/email_helper.rb @@ -63,6 +63,10 @@ module EmailHelper color: #dddddd !important; } + [data-stripped-secure-media] { + border-color: #454545 !important; + } + [dm='text-color'] { color: #dddddd; } @@ -85,17 +89,13 @@ module EmailHelper color: #dddddd !important; } - [dm='secure-media-notice'] { - border-color: #454545 !important; - } - [dm='body_primary'] { background: #062e3d !important; color: #dddddd !important; } [dm='bg'] { - background: #232323 !important; + background: #323232 !important; border-color: #454545 !important; } } diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 81aefeb2b84..44dbc482edf 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -343,7 +343,6 @@ module Email style(".with-accent-colors, .digest-content-header", nil, dm: "body_primary") style(".digest-topic-body", nil, dm: "topic-body") style(".summary-footer", nil, dm: "text-color") - style(".secure-media-notice", nil, dm: "secure-media-notice") style("code, pre code, blockquote", nil, dm: "bg") end