Improved email client support for branded mails (#4663)
Improves compatibility with Outlook mail clients, preventing harsh word breaks. Credit to @vevers.
This commit is contained in:
parent
5862683a7a
commit
d52c59254a
|
|
@ -13,11 +13,10 @@ body {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
-moz-hyphens: auto;
|
-moz-hyphens: auto;
|
||||||
-ms-word-break: break-all;
|
-ms-word-break: break-word;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
-webkit-hyphens: auto;
|
-webkit-hyphens: auto;
|
||||||
-webkit-text-size-adjust: none;
|
-webkit-text-size-adjust: none;
|
||||||
word-break: break-all;
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -75,6 +74,7 @@ code {
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.sub {
|
p.sub {
|
||||||
|
|
@ -85,6 +85,10 @@ img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.break-all, .break-all * {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name = "Panel"
|
||||||
==
|
==
|
||||||
{{ body|trim }}
|
{{ body|trim }}
|
||||||
==
|
==
|
||||||
<table class="panel" width="100%" cellpadding="0" cellspacing="0">
|
<table class="panel break-all" width="100%" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="panel-content">
|
<td class="panel-content">
|
||||||
<table width="100%" cellpadding="0" cellspacing="0">
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name = "Promotion"
|
||||||
==
|
==
|
||||||
{{ body|trim }}
|
{{ body|trim }}
|
||||||
==
|
==
|
||||||
<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0">
|
<table class="promotion break-all" align="center" width="100%" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
{{ body|md_safe }}
|
{{ body|md_safe }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue