/
email_base.html
214 lines (206 loc) · 7.89 KB
/
email_base.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
{% load i18n %}
<!DOCTYPE html>
<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 -->
<style type="text/css">
/* Resets: see reset.css for details */
.ReadMsgBody { width: 100%; background-color: #ebebeb;}
.ExternalClass { width: 100%; background-color: #ebebeb;}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height:100%;}
body {
margin:0;
padding:10px 0;
}
table {border-spacing:0;}
table td {border-collapse:collapse;}
.container-pre-header {
background-color: #ffffff;
padding-left: 30px;
padding-right: 30px;
font-size: 14px;
line-height: 20px;
font-family: Open Sans, sans-serif;
color: #333;
border-top: 10px solid #1AA1E0;
border-radius: 5px;
}
.container-header {
padding-left: 30px;
padding-right: 30px;
font-size: 14px;
line-height: 20px;
font-family: Open Sans, sans-serif;
color: #333;
background-color: #f3f3f3;
border-top: 1px solid #cccccc;
border-bottom: 1px solid #eeeeee;
}
.container-body{
background-color: #ffffff;
padding-left: 30px;
padding-right: 30px;
font-size: 13px;
line-height: 20px;
font-family: Open Sans, sans-serif;
color: #333;
border-radius: 5px;
}
.container-footer{
padding-left: 30px;
padding-right: 30px;
font-size: 13px;
line-height: 20px;
font-family: Open Sans, sans-serif;
color: #002D40;
background-color: #f3f3f3;
}
.yshortcuts a {border-bottom: none !important;}
/* Constrain email width for small screens */
@media screen and (max-width: 600px) {
table[class="container"] {
width: 95% !important;
}
table[class="columns-container"] {
width: 100%;
}
}
/* Give content more room on mobile */
@media screen and (max-width: 480px) {
td[class="container-padding"] {
padding-left: 12px !important;
padding-right: 12px !important;
}
}
/* Styles for forcing columns to rows */
@media only screen and (max-width : 600px) {
/* force container columns to (horizontal) blocks */
td[class="force-col"] {
display: block;
padding-right: 0 !important;
}
table[class="col-2"] {
/* unset table align="left/right" */
float: none !important;
width: 100% !important;
/* change left/right padding and margins to top/bottom ones */
margin-bottom: 12px;
border-bottom: 1px solid #eeeeee;
}
/* remove bottom border for last column/row */
table[id="last-col-2"] {
border-bottom: none !important;
margin-bottom: 0;
}
/* adjust text sizing for email type */
td[class="email-type"] {
line-height: 30px;
}
table[class="col-2-actions"] {
/* unset table align="left/right" */
float: none !important;
width: 100% !important;
/* change left/right padding and margins to top/bottom ones */
margin-bottom: 20px;
}
table[class="col-2-edx"] {
/* unset table align="left/right" */
float: none !important;
width: 100% !important;
/* change left/right padding and margins to top/bottom ones */
margin-bottom: 20px;
}
}
/* Credit Notification: basic css for credit notifications */
.cn-container {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
width: 600px;
font-size: 14px;
line-height: 150%;
border: 2px solid #eeeeee;
margin: 0 auto;
}
.cn-container .cn-body {
padding: 20px;
}
.cn-img-wrapper {
padding: 9px 0;
}
.cn-img-wrapper .cn-img {
float: left;
width: 80px;
}
.cn-content-clear {
padding: 0px 18px 18px;
border-top: 3px solid #B92167;
}
.cn-content-clear .cn-footer {
border-top-width: 6px;
}
.cn-content p {
padding: 5px 0;
}
.cn-content-msg {
color: #636C72;
line-height: 1.5rem;
}
.cn-content-msg a {
color: #005686 ;
}
.cn-footer-content {
color: #636C72;
}
.cn-footer-content p {
padding: 5px 0;
}
</style>
</head>
<body style="font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:14px;line-height:150%;margin:auto">
<br>
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" style="padding: 5px;">
<tr>
<td align="center" valign="top">
<!-- 600px container (white background) -->
<table class="cn-container">
{% block body %}
{% endblock body %}
{% block footer %}
<!-- Copyright and Address -->
<tr>
<td class="container-padding" bgcolor="#ffffff" style="padding-left: 30px; padding-right: 30px; font-size: 14px; line-height: 20px; font-family: Open Sans, sans-serif; color: #333; background-color: #ffffff; border-bottom: 1px solid #cccccc; border-radius: 5px;">
<table border="0" cellpadding="0" cellspacing="0" class="columns-container">
<tr>
<td class="force-col" style="padding-right: 20px;" valign="middle">
<!-- ### COLUMN 1 - COPYRIGHT AND ADDRESS ### -->
<table border="0" cellspacing="0" cellpadding="0" width="250" align="left" class="col-2-edx">
<tr>
<td align="left" valign="top" style="font-size: 10px; color: #767676; font-style: italic;">
<br>
{% now 'Y' as year %}
{% filter force_escape %}
{% blocktrans %}Copyright © {{ year }} {{ platform_name }}. All rights reserved.{% endblocktrans %}
{% endfilter %}
</td>
</tr>
<tr>
<td align="left" valign="top" style="font-size: 10px; color: #767676;">
141 Portland St, Cambridge, MA 02142
<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table><!--/ end .columns-container-->
</td>
</tr>
{% endblock footer %}
</table>
</td>
</tr>
</table>
<img src="{{tracking_pixel}}"/>
</body>
</html>