forked from rodriguezcommaj/salted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsalted-responsive-email-template-rss.html
451 lines (399 loc) · 27.3 KB
/
salted-responsive-email-template-rss.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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html lang="en">
<head>
<title>*|MC:SUBJECT|*</title>
<!--
SALTED | A RESPONSIVE EMAIL TEMPLATE
=====================================
Based on code used and tested by Litmus (@litmusapp)
Originally developed by Kevin Mandeville (@KEVINgotbounce)
Cleaned up by Jason Rodriguez (@rodriguezcommaj)
Presented by A List Apart (@alistapart)
Edited for use in a Mailchimp template by Ciaran Mahoney (@ciaransm)
Email is surprisingly hard. While this has been thoroughly tested, your mileage may vary.
It's highly recommended that you test using a service like Litmus and your own devices.
Enjoy!
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style type="text/css">
/* CLIENT-SPECIFIC STYLES */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up */
img{-ms-interpolation-mode:bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */
/* RESET STYLES */
body{margin:0; padding:0;}
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
table{border-collapse:collapse !important;}
body{height:100% !important; margin:0; padding:0; width:100% !important;}
/* iOS BLUE LINKS */
.appleBody a {color:#68440a; text-decoration: none;}
.appleFooter a {color:#999999; text-decoration: none;}
/* LINKS IN ARTICLE EXCERPT */
.item-content a {color: #aaaaaa !important;}
/* MOBILE STYLES */
@media screen and (max-width: 525px) {
/* ALLOWS FOR FLUID TABLES */
table[class="wrapper"]{
width:100% !important;
}
/* ADJUSTS LAYOUT OF LOGO IMAGE */
td[class="logo"]{
text-align: left;
padding: 20px 0 20px 0 !important;
}
td[class="logo"] img{
margin:0 auto!important;
}
/* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */
td[class="mobile-hide"]{
display:none;}
img[class="mobile-hide"]{
display: none !important;
}
img[class="img-max"]{
max-width: 100% !important;
height:auto !important;
}
/* FULL-WIDTH TABLES */
table[class="responsive-table"]{
width:100%!important;
}
/* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */
td[class="padding"]{
padding: 10px 5% 15px 5% !important;
}
td[class="padding-copy"]{
padding: 10px 5% 10px 5% !important;
text-align: center;
}
td[class="padding-meta"]{
padding: 30px 5% 0px 5% !important;
text-align: center;
}
td[class="no-pad"]{
padding: 0 0 20px 0 !important;
}
td[class="no-padding"]{
padding: 0 !important;
}
td[class="section-padding"]{
padding: 50px 15px 50px 15px !important;
}
td[class="section-padding-bottom-image"]{
padding: 50px 15px 0 15px !important;
}
/* ADJUST BUTTONS ON MOBILE */
td[class="mobile-wrapper"]{
padding: 10px 5% 15px 5% !important;
}
table[class="mobile-button-container"]{
margin:0 auto;
width:100% !important;
}
a[class="mobile-button"]{
width:80% !important;
padding: 15px !important;
border: 0 !important;
font-size: 16px !important;
}
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<!-- HEADER -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td bgcolor="#ffffff">
<div align="center" style="padding: 0px 15px 0px 15px;">
<table border="0" cellpadding="0" cellspacing="0" width="500" class="wrapper">
<!-- LOGO/PREHEADER TEXT -->
<tr>
<td style="padding: 20px 0px 30px 0px;" class="logo">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#ffffff" width="100" align="left"><img mc:edit="postcard" width="52" height="78" style="display: block; font-family: Helvetica, Arial, sans-serif; color: #666666; font-size: 16px;" border="0"></td>
<td bgcolor="#ffffff" width="400" align="right" class="mobile-hide">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" style="padding: 0 0 5px 0; font-family: Arial, sans-serif; color: #666666; text-decoration: none;">
<span mc:edit="preheader" style="font-size: 15px; color: #666666; text-decoration: none;">Salted - a responsive email template for Mailchimp RSS campaigns.</span><br>
<span style="font-size: 10px; color: #666666; text-decoration: none;">If this email looks strange, please <a href="*|ARCHIVE|*" style="color:#888888" target="_blank">view in your browser</a></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!-- ONE COLUMN SECTION -->
<table mc:hideable border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;" >
<tr>
<td bgcolor="#3397e1" align="center" style="padding: 70px 15px 70px 15px;" class="section-padding">
<table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- HERO IMAGE -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="padding-copy">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- Image on top repeatable section image - allow text instead of image -->
<img mc:edit="hero-image" mc:allowtext mc:hideable width="500" height="200" border="0" style="display: block; padding: 0; color: #81817a; text-decoration: none; font-family: Helvetica, arial, sans-serif; font-size: 16px; width: 500px; height: 200px;" class="img-max" >
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<!-- COPY -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- Image on top repeatable section title -->
<td mc:edit="img-top-section-title" align="center" style="font-size: 25px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; padding-top: 30px;" class="padding-copy">Hi, *|FNAME|*</td>
</tr>
<tr>
<!-- Image on top repeatable section body -->
<td mc:edit="img-top-section-body" align="center" style="padding: 20px 0 0 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #004980;" class="padding-copy">This monthly email is to keep you up-to-date with the news and happenings at our company. You can also check out our <a href="#" style="color:#efefef">blog</a> to get articles as they are posted.</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- COMPACT ARTICLE SECTION -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td bgcolor="#f8f8f8" align="center" style="padding: 70px 15px 70px 15px;" class="section-padding">
<!-- Start RSS items -->
*|RSSITEMS:|*
<table border="0" cellpadding="0" cellspacing="0" width="500" style="padding:0 0 20px 0;" class="responsive-table">
<!-- TITLE -->
<tr>
<td mc:edit="post-list-section-header" mc:hideable align="left" style="padding: 0 0 10px 130px; font-size: 25px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #333333;" class="padding-copy" colspan="2">New this month...</td>
</tr>
<tr>
<td valign="top" style="padding: 40px 0 0 0;" class="mobile-hide"><img src="*|RSSITEM:IMAGE|*" width="105" height="105" border="0" style="display: block; font-family: Arial; color: #666666; font-size: 14px; width: 105px; height: 105px;"></td>
<td style="padding: 40px 0 0 0;" class="no-padding">
<!-- ARTICLE -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" style="padding: 0 0 5px 25px; font-size: 13px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #aaaaaa;" class="padding-meta">*|RSSITEM:CATEGORIES|*</td>
</tr>
<tr>
<td align="left" style="padding: 0 0 5px 25px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #333333;" class="padding-copy">*|RSSITEM:TITLE|*</td>
</tr>
<tr>
<td mc:edit="post-list-excerpt" align="left" style="padding: 10px 0 15px 25px; font-size: 16px; line-height: 24px; font-family: Helvetica, Arial, sans-serif; color: #666666;" class="padding-copy item-content">*|RSSITEM:CONTENT|*</td>
</tr>
<tr>
<td style="padding:0 0 45px 25px;" align="left" class="padding">
<table border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center">
<!-- BULLETPROOF BUTTON -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center" style="padding: 0;" class="padding-copy">
<table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
<tr>
<td align="center"><a href="*|RSSITEM:URL|*" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #F6BB42; border-top: 10px solid #F6BB42; border-bottom: 10px solid #F6BB42; border-left: 20px solid #F6BB42; border-right: 20px solid #F6BB42; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button">Read more →</a><br><br>
*|RSSITEM:LIKE|* *|RSSITEM:TWITTER|*</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End RSS items -->
*|END:RSSITEMS|*
<!-- RECENT POSTS -->
<table border="0" cellpadding="0" cellspacing="0" width="500" style="padding:0 0 20px 0;" class="responsive-table">
<!-- RECENT POSTS HEADING -->
<tr>
<td mc:edit="recent-list-section-header" align="left" style="padding: 0 0 10px 130px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #333333;" class="padding-copy" colspan="2"><br>Other Recent Posts...</td>
</tr>
<!-- LIST OF 5 OTHER RECENT POSTS NOT IN EMAIL-->
<tr>
<td align="left" style="padding: 0 0 10px 130px; font-size: 13px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #333333;" class="padding-copy item-content" >*|RSS:RECENT|*</td>
<tr>
</table>
</td>
</tr>
</table>
<!-- TWO COLUMN SECTION -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td bgcolor="#45464a" align="center" style="padding: 70px 15px 70px 15px;" class="section-padding">
<table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table">
<tr>
<td>
<!-- TITLE SECTION AND COPY -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td mc:edit="columns-section-title" mc:hideable align="center" style="font-size: 25px; font-family: Helvetica, Arial, sans-serif; color: #ffffff;" class="padding-copy" >Product Features</td>
</tr>
<tr>
<td mc:edit="columns-section-subheading" mc:hideable align="center" style="padding: 20px 0 20px 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #ccc;" class="padding-copy" mc:edit="columns-section-subheading">Here are some products that you may be interested in</td>
</tr>
</table>
</td>
</tr>
<tr mc:repeatable>
<td>
<!-- TWO COLUMNS -->
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td valign="top" style="padding: 0;" class="mobile-wrapper">
<!-- LEFT COLUMN -->
<table cellpadding="0" cellspacing="0" border="0" width="47%" align="left" class="responsive-table">
<tr>
<td style="padding: 20px 0 40px 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="center" bgcolor="#45464a" valign="middle"><img src="img/fluid-images.jpg" width="240" height="130" style="display: block; color: #666666; font-family: Helvetica, arial, sans-serif; font-size: 13px; width: 240px; height: 130px;" border="0" class="img-max" mc:edit="left-col-image"></td>
</tr>
<tr>
<td align="center" style="padding: 15px 0 0 0; font-family: Arial, sans-serif; color: #fff; font-size: 20px;" bgcolor="#45464a" mc:edit="left-col-title">Product 1</td>
</tr>
<tr>
<td mc:edit="left-col-body" align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #ccc; font-size: 14px; line-height: 20px;" bgcolor="#45464a"><span class="appleBody">Blah Blah Blah</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:0 0 45px 0px;" align="center" class="padding">
<table border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center">
<!-- BULLETPROOF BUTTON -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center" style="padding: 0;" class="padding-copy">
<table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
<tr>
<td mc:edit="product1-button" align="center"><a href="*|RSSITEM:URL|*" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #A9A9A9; border-top: 10px solid #A9A9A9; border-bottom: 10px solid #A9A9A9; border-left: 20px solid #A9A9A9; border-right: 20px solid #A9A9A9; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button">Read more →</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- RIGHT COLUMN -->
<table cellpadding="0" cellspacing="0" border="0" width="47%" align="right" class="responsive-table">
<tr>
<td style="padding: 20px 0 40px 0;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="center" bgcolor="#45464a" valign="middle"><img src="img/fluid-structure.jpg" width="240" height="130" style="display: block; color: #666666; font-family: Helvetica, arial, sans-serif; font-size: 13px; width: 240px; height: 130px;" border="0" class="img-max" mc:edit="right-col-image"></td>
</tr>
<tr>
<td mc:edit="right-col-title" align="center" style="padding: 15px 0 0 0; font-family: Arial, sans-serif; color: #ffffff; font-size: 20px;" bgcolor="#45464a" >Product 2</td>
</tr>
<tr>
<td mc:edit="right-col-body" align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #ccc; font-size: 14px; line-height: 20px;" bgcolor="#45464a"><span class="appleBody" >More awesome product information</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:0 0 45px 0px;" align="center" class="padding">
<table border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center">
<!-- BULLETPROOF BUTTON -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
<tr>
<td align="center" style="padding: 0;" class="padding-copy">
<table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
<tr>
<td mc:edit="product2-button" align="center"><a href="#" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #A9A9A9; border-top: 10px solid #A9A9A9; border-bottom: 10px solid #A9A9A9; border-left: 20px solid #A9A9A9; border-right: 20px solid #A9A9A9; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button">Read more →</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- FOOTER - Mailchimp automatically inserts a standard footer so this footer html is unnecessary. I have modified it anyway, just in case a custom pre-footer is required. See here for more about Mailchimp's standard footer: http://kb.mailchimp.com/campaigns/design/manage-vcard-footer-info -->
<!-- UNCOMMENT IF REQUIRED
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td bgcolor="#ffffff" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="padding: 20px 0px 20px 0px;">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
<tr>
<td align="center" valign="middle" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
<span class="appleFooter" style="color:#666666;">*|HTML:LIST_ADDRESS_HTML|*</span><br>
<a href="*|UNSUB|*" class="original-only" style="color: #666666; text-decoration: none;">Unsubscribe *|EMAIL*| from this list.</a>
<span class="original-only" style="font-family: Arial, sans-serif; font-size: 12px; color: #444444;"> | </span>
<a href="*|FORWARD|*" class="original-only" style="color: #666666; text-decoration: none;">Forward this email to a friend</a>
<span class="original-only" style="font-family: Arial, sans-serif; font-size: 12px; color: #444444;"> | </span>
<a href="*|UPDATE_PROFILE|*" class="original-only" style="color: #666666; text-decoration: none;">Update your profile</a><br>
<span class="appleFooter" style="color:#666666;">Copyright (C) *|CURRENT_YEAR|* *|LIST:COMPANY|* All rights reserved.</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
END FOOTER UNCOMMENT IF REQUIRED-->
</body>
</html>