forked from emailmonday/Cerberus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-default.html
370 lines (336 loc) · 17.2 KB
/
template-default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1.0"> <!-- So that mobile webkit will display zoomed in -->
<meta name="format-detection" content="telephone=no"> <!-- disable auto telephone linking in iOS -->
<title>Subject Line (for proofing, doesn't show in actual email)</title>
<style type="text/css">
/* Force Hotmail to display emails at full width */
.ReadMsgBody {
width: 100%;
background-color: #eeeeee;
}
/* Force Hotmail to display emails at full width */
.ExternalClass {
width: 100%;
background-color: #eeeeee;
}
/* Forces Hotmail to display normal line spacing. */
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height:100%;
}
/* Resolves webkit padding issue. */
table {
border-spacing:0;
}
/* Resolves the Outlook 2007, 2010, and Gmail td padding issue. */
table td {
border-collapse:collapse;
}
/* Yahoo auto-sensing link color and border */
.yshortcuts a {
border-bottom: none !important;
}
/* Media queries for when the viewport is smaller than the default email width but not too narrow. */
@media screen and (max-device-width: 650px), screen and (max-width: 650px) {
/* Constrain email width for small screens */
table[class="email-container"] {
width: 100% !important;
}
/* Constrain tables for small screens */
table[class="fluid"] {
width: 100% !important;
}
/* Force images to resize to full width of their container */
img[class="fluid"],
img[class="force-col-center"] {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
}
/* And center these ones */
img[class="force-col-center"] {
margin: auto !important;
}
/* Force table cells into rows */
td[class="force-col"],
td[class="force-col-center"] {
display: block !important;
width: 100% !important;
clear: both;
}
/* And center these ones */
td[class="force-col-center"] {
text-align: center !important;
}
/* Force table cells into rows */
/* Float a previously stacked image to the left */
img[class="col-3-img-l"] {
float: left;
margin: 0 15px 15px 0;
}
/* Float a previously stacked image to the right */
img[class="col-3-img-r"] {
float: right;
margin: 0 0 15px 15px;
}
}
/* Media queries for when the viewport is narrow. */
/* Rules prefixed with 'hh-' (for 'handheld') repeat much of what's above, but these don't trigger until the smaller screen width. */
@media screen and (max-device-width: 425px), screen and (max-width: 425px) {
/* Helper only visible on handhelds. All styles are inline along with a `display:none`, which this class overrides */
div[class="hh-visible"] {
display: block !important;
}
/* Center stuff */
div[class="hh-center"] {
text-align: center;
width: 100% !important;
}
/* Constrain tables for small screens */
table[class="hh-fluid"] {
width: 100% !important;
}
/* Force images to resize to full width of their container */
img[class="hh-fluid"],
img[class="hh-force-col-center"] {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
}
/* And center these ones */
img[class="hh-force-col-center"] {
margin: auto !important;
}
/* Force table cells into rows */
td[class="hh-force-col"],
td[class="hh-force-col-center"] {
display: block !important;
width: 100% !important;
clear: both;
}
/* And center these ones */
td[class="hh-force-col-center"] {
text-align: center !important;
}
/* Stack the previously floated images */
img[class="col-3-img-l"],
img[class="col-3-img-r"] {
float: none !important;
margin: 15px auto !important;
text-align: center !important;
}
table[class="button"] {
width: 100% !important;
text-align: center !important;
}
}
</style>
</head>
<body bgcolor="#f4f4f4" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="margin:0; padding:0;-webkit-text-size-adjust:none; -ms-text-size-adjust:none;background: #f4f4f4;">
<table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%" bgcolor="#f4f4f4" style="background: #f4f4f4;"><tr><td>
<!-- CSS Image background in Outlook : BEGIN -->
<!-- Best used with absolute image paths -->
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" color="#eeeeee" src="assets/nice_snow.png">
</v:background>
<![endif]-->
<!-- CSS Image background in Outlook : END -->
<!-- Logo Left, Nav Right, 100% Nav Bar : BEGIN -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="text-align: center; background: #555;">
<tr>
<td>
<table border="0" width="600" cellpadding="0" cellspacing="0" align="center" style="margin: auto;" class="email-container">
<tr>
<td height="10" style="font-size: 0; line-height: 0;"> </td>
</tr>
<tr>
<td class="hh-force-col-center" valign="middle" style="text-align: left;">
<img src="http://placehold.it/200x40/888888/555555" alt="alt text" height="40" width="200" border="0">
</td>
<td class="hh-force-col-center" valign="middle" style="padding: 10px 0;text-align: right;">
<a href="" style="color: #ffffff;font-family: sans-serif;">Link 1</a>
<a href="" style="color: #ffffff;font-family: sans-serif;">Link 2</a>
<a href="" style="color: #ffffff;font-family: sans-serif;">Link 3</a>
</td>
</tr>
<tr>
<td height="10" style="font-size: 0; line-height: 0;"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Logo Left, Nav Right, 100% Nav Bar : END -->
<!-- Logo Left Nav Right + Vertical Padding : BEGIN -->
<table border="0" width="600" cellpadding="0" cellspacing="0" align="center" class="email-container">
<tr>
<td height="30" style="font-size: 0; line-height: 0;"> </td>
</tr>
<tr>
<td class="force-col-center" valign="middle" style="padding: 20px 0;text-align: left;">
<img src="http://placehold.it/300x75/888888/7777777" alt="alt text" height="75" width="300" border="0">
</td>
<td class="force-col-center" valign="middle" style="padding: 20px 0;text-align: right;">
<a href="#" style="font-family: sans-serif;color: #444;">Link 1</a>
<a href="#" style="font-family: sans-serif;color: #444;">Link 2</a>
<a href="#" style="font-family: sans-serif;color: #444;">Link 3</a>
</td>
</tr>
<tr>
<td height="30" style="font-size: 0; line-height: 0;"> </td>
</tr>
</table>
<!-- Logo Left Nav Right + Vertical Padding : END -->
<!-- Email Container : BEGIN -->
<!-- This table wraps the whole body email within it's width (600px), sets the background color (white) and border (thin, gray, solid) -->
<table border="0" width="600" cellpadding="0" cellspacing="0" align="center" style="background: #ffffff;border: 1px solid #e5e5e5;" class="email-container">
<!-- Single Fluid Image, No Crop : BEGIN -->
<tr>
<td>
<img src="http://placehold.it/650x350/888888/7777777" alt="alt text" height="350" width="600" border="0" style="display: block;" class="fluid">
</td>
</tr>
<!-- Single Fluid Image, No Crop : END -->
<!-- Full Width, Fluid Column : BEGIN -->
<tr>
<td style="border-bottom: 1px solid #e5e5e5;">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="padding: 30px; font-family: sans-serif; font-size: 16px; line-height: 22px; color: #444444;">
Ulla nec est tristique, tempor lacus eu, aliquam erat. Cras tristique, arcu ac tristique hendrerit, urna diam mollis libero, vitae gravida nisi lectus in leo. Aenean eu ligula id nisi euismod dapibus et eu mauris. Donec quis dictum velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
<br><br>
Donec nulla ante, cursus sit amet egestas ut, facilisis ut neque. Nullam sed est lorem. Aenean pharetra metus nisl, eu lacinia ante cursus quis. Integer facilisis elementum mi, sed auctor leo posuere sed. Nulla facilisi.
</td>
</tr>
</table>
</td>
</tr>
<!-- Full Width, Fluid Column : END -->
<!-- Two Columns, With Padding ==> Stacked Layout : BEGIN -->
<tr>
<td style="border-bottom: 1px solid #e5e5e5;">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="fluid" style="padding: 0 30px;">
<tr>
<td height="30" style="font-size: 0; line-height: 0;" class="empty-spacer"> </td>
</tr>
<tr>
<td valign="top" style="padding-right: 30px;" class="hh-force-col-center">
<img src="http://placehold.it/200/888888/7777777" alt="alt text" height="200" width="200" border="0" style="display: block;margin: auto;" class="hh-force-col-center">
</td>
<td valign="top" class="hh-force-col" width="100%" style="padding-left: 0;">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="width:100%; font-family: sans-serif; font-size: 16px; line-height: 22px; color: #444444;text-align: left;">
<div style="font-size: 0; line-height: 0; display: none; height: 30px;" class="hh-visible"></div>
<div style="font-size: 22px;line-height: 1;" class="hh-center">Two Columns, Padded</div><br>
Two columns, each with padding on all sides. Columns stack on narrow screens, maintaining said padding.<br><br>
<!-- Bulletproof Button : BEGIN -->
<!-- Modified code from http://buttons.cm -->
<div>
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.google.com" style="height:40px;v-text-anchor:middle;width:200px;" arcsize="10%" strokecolor="#444444" fillcolor="#444444">
<w:anchorlock/>
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">Bulletproof Button</center>
</v:roundrect>
<![endif]-->
<a href="http://www.google.com" style="background-color:#444444;border:1px solid #444444;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;mso-hide:all;">Bulletproof Button</a>
</div>
<!-- Bulletproof Button : END -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="30" style="font-size: 0; line-height: 0;"> </td>
</tr>
</table>
</td>
</tr>
<!-- Two Columns, With Padding ==> Stacked Layout : END -->
<!-- Two Columns, One Column Without Padding ==> Stacked Layout : BEGIN -->
<tr>
<td style="border-bottom: 1px solid #e5e5e5;">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="fluid">
<tr>
<td valign="top" class="hh-force-col">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding: 30px;font-family: sans-serif; font-size: 16px; line-height: 22px; color: #444444;">
<div style="font-size: 22px;line-height: 1;" class="hh-center">Two Columns, One Column Without Padding</div><br>
Two columns; one with padding on all sides and one without padding (good for flush images or columns with a background). Columns stack on narrow screens, maintaining said padding.<br><br>
<!-- Imageless Button : BEGIN -->
<!-- In Outlook, only the button label is clickable and nothing happens if you click the rest of the button shape. But it still works and code is simpler than the bulletproof button above. -->
<a href="http://www.google.com" style="text-decoration:none;">
<table border="0" cellpadding="12" cellspacing="0" style="border: 2px solid #444444;" class="button">
<tr>
<td align="center" class="hh-fluid">
<a href="http://www.google.com" style="text-decoration:none;font-size:12px;line-height: 1; color:#444444; letter-spacing: 1px; font-family:sans-serif;"><strong>IMAGELESS BUTTON</strong></a>
</td>
</tr>
</table>
</a>
<!-- Imageless Button : END -->
</td>
</tr>
</table>
</td>
<td valign="top" class="hh-force-col-center">
<img src="http://placehold.it/250x350/888888/7777777" alt="alt text" height="350" width="250" border="0" style="display: block;margin: auto;" class="hh-fluid">
</td>
</tr>
</table>
</td>
</tr>
<!-- Two Columns, One Column Without Padding ==> Stacked Layout : END -->
<!-- Three Column ==> Stacked Wide Layout ==> Stacked Narrow Layout : BEGIN -->
<tr>
<td style="padding: 30px;">
<table border="0" cellpadding="0" cellspacing="0" class="columns-container">
<tr>
<td width="160" style="padding-right: 30px;font-family: sans-serif; font-size: 16px; line-height: 22px;color: #444444;" valign="top" class="force-col">
<img src="http://placehold.it/160/888888/7777777" alt="alt text" align="center" height="160" width="160" border="0" style="display: block;padding-bottom: 10px;" class="col-3-img-r">
<a href="#" style="color:#444444; font-weight:bold">1 of 3 Header</a><br>
These columns appear three across on wide screens...
</td>
<td style="font-size: 0; line-height: 0; display: none;" class="hh-spacer"> </td>
<td width="160" style="padding-right: 30px;font-family: sans-serif; font-size: 16px; line-height: 22px;color: #444444;" valign="top" class="force-col">
<img src="http://placehold.it/160/888888/7777777" alt="alt text" align="center" height="160" width="160" border="0" style="display: block;padding-bottom: 10px;" class="col-3-img-l">
<a href="#" style="color:#444444; font-weight:bold">2 of 3 Header</a><br>
...but on medium screens, the columns stack but their child text and image appear side by side...
</td>
<td style="font-size: 0; line-height: 0; display: none;" class="hh-spacer"> </td>
<td width="160" style="font-family: sans-serif; font-size: 16px; line-height: 22px;color: #444444;" valign="top" class="force-col">
<img src="http://placehold.it/160/888888/7777777" alt="alt text" align="center" height="160" width="160" border="0" style="display: block;padding-bottom: 10px;" class="col-3-img-r">
<a href="#" style="color:#444444; font-weight:bold">3 of 3 Header</a><br>
...and finally everything stacks and centers on narrow screens.
</td>
</tr>
</table>
</td>
</tr>
<!-- Three Column ==> Stacked Wide Layout ==> Stacked Narrow Layout : END -->
</table>
<!-- Email Container : END -->
<!-- Footer : BEGIN -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="email-container">
<tr>
<td style="text-align: center;padding: 20px;font-family: sans-serif; font-size: 12px; line-height: 18px;color: #888888;">
If you no longer wish to receive these emails, you can <unsubscribe style="color: #444444; padding: 0;text-decoration: underline">unsubscribe</unsubscribe>.<br>
Company Name • 123 Fake Street, SpringField, Oregon 97477 US • <span class="mobile_link">(123) 456-7890</span><br><br>
</td>
</tr>
</table>
<!-- Footer : END -->
</td></tr></table>
</body>
</html>