FIX: Large `pre` blocks in emails were increasing the width.
This commit is contained in:
parent
30d1801703
commit
f1a7b63afc
|
@ -59,11 +59,10 @@ module Email
|
||||||
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
style('div.digest-post', 'margin-left: 15px; margin-top: 20px; max-width: 694px;')
|
||||||
style('div.digest-post h1', 'font-size: 20px;')
|
style('div.digest-post h1', 'font-size: 20px;')
|
||||||
style('span.footer-notice', 'color:#666; font-size:80%')
|
style('span.footer-notice', 'color:#666; font-size:80%')
|
||||||
|
|
||||||
style('span.post-count', 'margin: 0 5px; color: #777;')
|
style('span.post-count', 'margin: 0 5px; color: #777;')
|
||||||
style('pre', 'white-space: pre-wrap')
|
style('pre', 'word-wrap: break-word; max-width: 694px;')
|
||||||
style('code', 'background-color: #f1f1ff; padding: 2px 5px;')
|
style('code', 'background-color: #f1f1ff; padding: 2px 5px;')
|
||||||
style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px')
|
style('pre code', 'display: block; background-color: #f1f1ff; padding: 5px;')
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_html
|
def to_html
|
||||||
|
|
Loading…
Reference in New Issue