A platform for community discussion. Free, open, simple.
Fix some broken styles
Neil Lalonde43365a2bf1b6
diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erbindex dc237d15f00..f24dd646883 100644--- a/app/views/user_notifications/digest.html.erb+++ b/app/views/user_notifications/digest.html.erb@@ -401,7 +401,7 @@<%= digest_custom_html("above_footer") %>-<div dir="<%= rtl? ? 'rtl' : 'ltr' %>" class='footer'>+<div dir="<%= rtl? ? 'rtl' : 'ltr' %>" class='summary-footer'><%=raw(t 'user_notifications.digest.unsubscribe',site_link: html_site_link(@anchor_color),email_preferences_link: link_to(t('user_notifications.digest.your_email_settings'), Discourse.base_url + '/my/preferences/emails'),diff --git a/lib/email/styles.rb b/lib/email/styles.rbindex 1b6373878d0..a3ccd7c76ae 100644--- a/lib/email/styles.rb+++ b/lib/email/styles.rb@@ -162,6 +162,11 @@ module Emailenddef format_html+ correct_first_body_margin+ correct_footer_style+ correct_footer_style_hilight_first+ reset_tables+html_lang = SiteSetting.default_locale.sub("_", "-")style('html', nil, lang: html_lang, 'xml:lang' => html_lang)style('body', "text-align:#{ Rtl.new(nil).enabled? ? 'right' : 'left' };")@@ -179,7 +184,7 @@ module Emailstyle('a', "text-decoration: none; font-weight: bold; color: #{SiteSetting.email_link_color};")style('ul', 'margin: 0 0 0 10px; padding: 0 0 0 20px;')style('li', 'padding-bottom: 10px')- style('div.footer', 'color:#666; font-size:95%; text-align:center; padding-top:15px;')+ style('div.summary-footer', 'color:#666; font-size:95%; text-align:center; padding-top:15px;')style('span.post-count', 'margin: 0 5px; color: #777;')style('pre', 'word-wrap: break-word; max-width: 694px;')style('code', 'background-color: #f1f1ff; padding: 2px 5px;')@@ -200,11 +205,7 @@ module Emailstyle('div.body', 'padding-top:5px;')style('.whisper div.body', 'font-style: italic; color: #9c9c9c;')style('.lightbox-wrapper .meta', 'display: none')- correct_first_body_margin- correct_footer_stylestyle('div.undecorated-link-footer a', "font-weight: normal;")- correct_footer_style_hilight_first- reset_tablesonebox_stylesplugin_styles