FIX: Improve email styling of code blocks (#10248)

Long numbered code lines were not rendered correctly in some email
clients.
This commit is contained in:
Bianca Nenciu 2020-07-22 18:26:14 +03:00 committed by GitHub
parent 1fc58b5a4e
commit 22fdd5dfda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,6 @@ module Email
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;')
style('code ol', 'line-height: 50%;')
style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px;')
style('.featured-topic a', "text-decoration: none; font-weight: bold; color: #{SiteSetting.email_link_color}; line-height:1.5em;")
style('.secure-image-notice', 'font-style: italic; background-color: #f1f1ff; padding: 5px;')