diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb
index 3f15a570a80..10209c40ca3 100644
--- a/app/helpers/email_helper.rb
+++ b/app/helpers/email_helper.rb
@@ -63,14 +63,6 @@ module EmailHelper
color: #dddddd !important;
}
- [dm='light-img'] {
- display: none !important;
- }
-
- [dm='dark-img'] {
- display: block !important;
- }
-
[dm='text-color'] {
color: #dddddd;
}
@@ -79,15 +71,33 @@ module EmailHelper
background: #151515 !important;
}
+ [dm='topic-body'] {
+ background: #151515 !important;
+ border-bottom: 1px solid #454545 !important;
+ }
+
+ [dm='triangle'] {
+ border-top-color: #151515 !important;
+ }
+
[dm='body'] {
background: #222222 !important;
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;
+ border-color: #454545 !important;
+ }
}
"
diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb
index 5580d1c5c21..e7750ecbdda 100644
--- a/app/views/user_notifications/digest.html.erb
+++ b/app/views/user_notifications/digest.html.erb
@@ -160,13 +160,11 @@
-
-
+
<%= t.like_count -%>
|
-
-
+
<%= t.posts_count - 1 -%>
|
@@ -240,8 +238,7 @@
|
-
-
+
|
@@ -319,19 +316,16 @@
-
-
+
<%= t.like_count -%>
|
-
-
+
<%= t.posts_count - 1 -%>
|
|
-
<% end %>
diff --git a/lib/email/styles.rb b/lib/email/styles.rb
index df516ffa9dc..81aefeb2b84 100644
--- a/lib/email/styles.rb
+++ b/lib/email/styles.rb
@@ -338,15 +338,13 @@ module Email
# When we ship the email template and its styles we strip all css classes so to give our
# dark mode styles we are including in the template a selector we add a data-attr of 'dm=value' to
# the appropriate place
- style(".digest-header, .digest-topic, .digest-topic-body, .digest-topic-title-wrapper, .digest-topic-stats, .popular-post-excerpt", nil, dm: "header")
+ style(".digest-header, .digest-topic, .digest-topic-title-wrapper, .digest-topic-stats, .popular-post-excerpt", nil, dm: "header")
style(".digest-content, .header-popular-posts, .spacer, .popular-post-spacer, .popular-post-meta, .digest-new-header, .digest-new-topic, .body", nil, dm: "body")
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(".digest-topic-body", "border-bottom: 1px solid #454545 !important;")
- style(".secure-media-notice", "border: 5px solid #454545 !important;")
- style("code", "background-color: #454545 !important;")
- style("pre code", "background-color: #454545 !important;")
- style("blockquote", "background-color: #454545; !important")
+ style(".secure-media-notice", nil, dm: "secure-media-notice")
+ style("code, pre code, blockquote", nil, dm: "bg")
end
def replace_relative_urls
diff --git a/public/images/emails/comment_dark.png b/public/images/emails/comment_dark.png
deleted file mode 100644
index 46bdeaaec0a..00000000000
Binary files a/public/images/emails/comment_dark.png and /dev/null differ
diff --git a/public/images/emails/comment_lightdark.png b/public/images/emails/comment_lightdark.png
new file mode 100644
index 00000000000..7084bb4935f
Binary files /dev/null and b/public/images/emails/comment_lightdark.png differ
diff --git a/public/images/emails/heart_dark.png b/public/images/emails/heart_dark.png
deleted file mode 100644
index 145b0ff3ba3..00000000000
Binary files a/public/images/emails/heart_dark.png and /dev/null differ
diff --git a/public/images/emails/heart_lightdark.png b/public/images/emails/heart_lightdark.png
new file mode 100644
index 00000000000..bdfc9307a8a
Binary files /dev/null and b/public/images/emails/heart_lightdark.png differ