##// END OF EJS Templates
emails: fixed some fonts rendering problems in outlook....
marcink -
r4217:e41c2009 stable
parent child Browse files
Show More
@@ -1,34 +1,34 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/debug_style/index.html"/>
2 <%inherit file="/debug_style/index.html"/>
3
3
4 <%def name="breadcrumbs_links()">
4 <%def name="breadcrumbs_links()">
5 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
5 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 &raquo;
6 &raquo;
7 ${c.active}
7 ${c.active}
8 </%def>
8 </%def>
9
9
10
10
11 <%def name="real_main()">
11 <%def name="real_main()">
12 <div class="box">
12 <div class="box">
13 <div class="title">
13 <div class="title">
14 ${self.breadcrumbs()}
14 ${self.breadcrumbs()}
15 </div>
15 </div>
16
16
17 <div class='sidebar-col-wrapper'>
17 <div class='sidebar-col-wrapper'>
18 ${self.sidebar()}
18 ${self.sidebar()}
19 <div class="main-content">
19 <div class="main-content">
20 <h2>Emails</h2>
20 <h2>Emails</h2>
21 <ul>
21 <ul>
22 % for elem in sorted(c.email_types.keys()):
22 % for elem in sorted(c.email_types.keys()):
23 <li>
23 <li>
24 <a href="${request.route_path('debug_style_email', email_id=elem, _query={'user':c.rhodecode_user.username})}">${elem}</a>
24 <a href="${request.route_path('debug_style_email', email_id=elem, _query={'user':c.rhodecode_user.username, 'email': ''})}">${elem}</a>
25 |
25 |
26 <a href="${request.route_path('debug_style_email_plain_rendered', email_id=elem, _query={'user':c.rhodecode_user.username})}">plain rendered</a>
26 <a href="${request.route_path('debug_style_email_plain_rendered', email_id=elem, _query={'user':c.rhodecode_user.username})}">plain rendered</a>
27 </li>
27 </li>
28 % endfor
28 % endfor
29 </ul>
29 </ul>
30
30
31 </div> <!-- .main-content -->
31 </div> <!-- .main-content -->
32 </div>
32 </div>
33 </div> <!-- .box -->
33 </div> <!-- .box -->
34 </%def>
34 </%def>
@@ -1,525 +1,540 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2
2
3 ## helpers
3 ## helpers
4 <%def name="tag_button(text, tag_type=None)">
4 <%def name="tag_button(text, tag_type=None)">
5 <%
5 <%
6 color_scheme = {
6 color_scheme = {
7 'default': 'border:1px solid #979797;color:#666666;background-color:#f9f9f9',
7 'default': 'border:1px solid #979797;color:#666666;background-color:#f9f9f9',
8 'approved': 'border:1px solid #0ac878;color:#0ac878;background-color:#f9f9f9',
8 'approved': 'border:1px solid #0ac878;color:#0ac878;background-color:#f9f9f9',
9 'rejected': 'border:1px solid #e85e4d;color:#e85e4d;background-color:#f9f9f9',
9 'rejected': 'border:1px solid #e85e4d;color:#e85e4d;background-color:#f9f9f9',
10 'under_review': 'border:1px solid #ffc854;color:#ffc854;background-color:#f9f9f9',
10 'under_review': 'border:1px solid #ffc854;color:#ffc854;background-color:#f9f9f9',
11 }
11 }
12
12
13 css_style = ';'.join([
13 css_style = ';'.join([
14 'display:inline',
14 'display:inline',
15 'border-radius:2px',
15 'border-radius:2px',
16 'font-size:12px',
16 'font-size:12px',
17 'padding:.2em',
17 'padding:.2em',
18 ])
18 ])
19
19
20 %>
20 %>
21 <pre style="${css_style}; ${color_scheme.get(tag_type, color_scheme['default'])}">${text}</pre>
21 <pre style="${css_style}; ${color_scheme.get(tag_type, color_scheme['default'])}">${text}</pre>
22 </%def>
22 </%def>
23
23
24 <%def name="status_text(text, tag_type=None)">
24 <%def name="status_text(text, tag_type=None)">
25 <%
25 <%
26 color_scheme = {
26 color_scheme = {
27 'default': 'color:#666666',
27 'default': 'color:#666666',
28 'approved': 'color:#0ac878',
28 'approved': 'color:#0ac878',
29 'rejected': 'color:#e85e4d',
29 'rejected': 'color:#e85e4d',
30 'under_review': 'color:#ffc854',
30 'under_review': 'color:#ffc854',
31 }
31 }
32 %>
32 %>
33 <span style="font-weight:bold;font-size:12px;padding:.2em;${color_scheme.get(tag_type, color_scheme['default'])}">${text}</span>
33 <span style="font-weight:bold;font-size:12px;padding:.2em;${color_scheme.get(tag_type, color_scheme['default'])}">${text}</span>
34 </%def>
34 </%def>
35
35
36 <%def name="gravatar_img(email, size=16)">
36 <%def name="gravatar_img(email, size=16)">
37 <%
37 <%
38 css_style = ';'.join([
38 css_style = ';'.join([
39 'padding: 0',
39 'padding: 0',
40 'margin: -4px 0',
40 'margin: -4px 0',
41 'border-radius: 50%',
41 'border-radius: 50%',
42 'box-sizing: content-box',
42 'box-sizing: content-box',
43 'display: inline',
43 'display: inline',
44 'line-height: 1em',
44 'line-height: 1em',
45 'min-width: 16px',
45 'min-width: 16px',
46 'min-height: 16px',
46 'min-height: 16px',
47 ])
47 ])
48 %>
48 %>
49
49
50 <img alt="gravatar" style="${css_style}" src="${h.gravatar_url(email, size)}" height="${size}" width="${size}">
50 <img alt="gravatar" style="${css_style}" src="${h.gravatar_url(email, size)}" height="${size}" width="${size}">
51 </%def>
51 </%def>
52
52
53 <%def name="link_css()">\
53 <%def name="link_css()">\
54 <%
54 <%
55 css_style = ';'.join([
55 css_style = ';'.join([
56 'color:#427cc9',
56 'color:#427cc9',
57 'text-decoration:none',
57 'text-decoration:none',
58 'cursor:pointer'
58 'cursor:pointer'
59 ])
59 ])
60 %>\
60 %>\
61 ${css_style}\
61 ${css_style}\
62 </%def>
62 </%def>
63
63
64 ## Constants
64 ## Constants
65 <%
65 <%
66 text_regular = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;"
66 text_regular = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, sans-serif"
67 text_monospace = "'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;"
67 text_monospace = "'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace"
68
68
69 %>
69 %>
70
70
71 ## headers we additionally can set for email
71 ## headers we additionally can set for email
72 <%def name="headers()" filter="n,trim"></%def>
72 <%def name="headers()" filter="n,trim"></%def>
73
73
74 <%def name="plaintext_footer()" filter="trim">
74 <%def name="plaintext_footer()" filter="trim">
75 ${_('This is a notification from RhodeCode.')} ${instance_url}
75 ${_('This is a notification from RhodeCode.')} ${instance_url}
76 </%def>
76 </%def>
77
77
78 <%def name="body_plaintext()" filter="n,trim">
78 <%def name="body_plaintext()" filter="n,trim">
79 ## this example is not called itself but overridden in each template
79 ## this example is not called itself but overridden in each template
80 ## the plaintext_footer should be at the bottom of both html and text emails
80 ## the plaintext_footer should be at the bottom of both html and text emails
81 ${self.plaintext_footer()}
81 ${self.plaintext_footer()}
82 </%def>
82 </%def>
83
83
84 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
84 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
85 <html xmlns="http://www.w3.org/1999/xhtml">
85 <html xmlns="http://www.w3.org/1999/xhtml">
86 <head>
86 <head>
87 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
87 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
88 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
89 <title>${self.subject()}</title>
89 <title>${self.subject()}</title>
90 <style type="text/css">
90 <style type="text/css">
91 /* Based on The MailChimp Reset INLINE: Yes. */
91 /* Based on The MailChimp Reset INLINE: Yes. */
92 #outlook a {
92 #outlook a {
93 padding: 0;
93 padding: 0;
94 }
94 }
95
95
96 /* Force Outlook to provide a "view in browser" menu link. */
96 /* Force Outlook to provide a "view in browser" menu link. */
97 body {
97 body {
98 width: 100% !important;
98 width: 100% !important;
99 -webkit-text-size-adjust: 100%;
99 -webkit-text-size-adjust: 100%;
100 -ms-text-size-adjust: 100%;
100 -ms-text-size-adjust: 100%;
101 margin: 0;
101 margin: 0;
102 padding: 0;
102 padding: 0;
103 font-family: ${text_regular|n}
103 font-family: ${text_regular|n};
104 }
104 }
105
105
106 /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
106 /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
107 .ExternalClass {
107 .ExternalClass {
108 width: 100%;
108 width: 100%;
109 }
109 }
110
110
111 /* Force Hotmail to display emails at full width */
111 /* Force Hotmail to display emails at full width */
112 .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
112 .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
113 line-height: 100%;
113 line-height: 100%;
114 }
114 }
115
115
116 /* Forces Hotmail to display normal line spacing. More on that: http://www.emailonacid.com/forum/viewthread/43/ */
116 /* Forces Hotmail to display normal line spacing. More on that: http://www.emailonacid.com/forum/viewthread/43/ */
117 #backgroundTable {
117 #backgroundTable {
118 margin: 0;
118 margin: 0;
119 padding: 0;
119 padding: 0;
120 line-height: 100% !important;
120 line-height: 100% !important;
121 }
121 }
122
122
123 /* End reset */
123 /* End reset */
124
124
125 /* defaults for images*/
125 /* defaults for images*/
126 img {
126 img {
127 outline: none;
127 outline: none;
128 text-decoration: none;
128 text-decoration: none;
129 -ms-interpolation-mode: bicubic;
129 -ms-interpolation-mode: bicubic;
130 }
130 }
131
131
132 a img {
132 a img {
133 border: none;
133 border: none;
134 }
134 }
135
135
136 .image_fix {
136 .image_fix {
137 display: block;
137 display: block;
138 }
138 }
139
139
140 body {
140 body {
141 line-height: 1.2em;
141 line-height: 1.2em;
142 }
142 }
143
143
144 p {
144 p {
145 margin: 0 0 20px;
145 margin: 0 0 20px;
146 }
146 }
147
147
148 h1, h2, h3, h4, h5, h6 {
148 h1, h2, h3, h4, h5, h6 {
149 color: #323232 !important;
149 color: #323232 !important;
150 }
150 }
151
151
152 a {
152 a {
153 color: #427cc9;
153 color: #427cc9;
154 text-decoration: none;
154 text-decoration: none;
155 outline: none;
155 outline: none;
156 cursor: pointer;
156 cursor: pointer;
157 }
157 }
158
158
159 a:focus {
159 a:focus {
160 outline: none;
160 outline: none;
161 }
161 }
162
162
163 a:hover {
163 a:hover {
164 color: #305b91;
164 color: #305b91;
165 }
165 }
166
166
167 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
167 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
168 color: #427cc9 !important;
168 color: #427cc9 !important;
169 text-decoration: none !important;
169 text-decoration: none !important;
170 }
170 }
171
171
172 h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active {
172 h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active {
173 color: #305b91 !important;
173 color: #305b91 !important;
174 }
174 }
175
175
176 h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
176 h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
177 color: #305b91 !important;
177 color: #305b91 !important;
178 }
178 }
179
179
180 table {
180 table {
181 font-size: 13px;
181 font-size: 13px;
182 border-collapse: collapse;
182 border-collapse: collapse;
183 mso-table-lspace: 0pt;
183 mso-table-lspace: 0pt;
184 mso-table-rspace: 0pt;
184 mso-table-rspace: 0pt;
185 }
185 }
186
186
187 table tr {
188 display: table-row;
189 vertical-align: inherit;
190 border-color: inherit;
191 border-spacing: 0 3px;
192 }
193
187 table td {
194 table td {
188 padding: .65em 1em .65em 0;
195 padding: .65em 1em .65em 0;
189 border-collapse: collapse;
196 border-collapse: collapse;
190 vertical-align: top;
197 vertical-align: top;
191 text-align: left;
198 text-align: left;
192 }
199 }
193
200
194 input {
201 input {
195 display: inline;
202 display: inline;
196 border-radius: 2px;
203 border-radius: 2px;
197 border: 1px solid #dbd9da;
204 border: 1px solid #dbd9da;
198 padding: .5em;
205 padding: .5em;
199 }
206 }
200
207
201 input:focus {
208 input:focus {
202 outline: 1px solid #979797
209 outline: 1px solid #979797
203 }
210 }
204
211
212 code {
213 font-family: ${text_monospace|n};
214 }
215
205 @media only screen and (-webkit-min-device-pixel-ratio: 2) {
216 @media only screen and (-webkit-min-device-pixel-ratio: 2) {
206 /* Put your iPhone 4g styles in here */
217 /* Put your iPhone 4g styles in here */
207 }
218 }
208
219
209 /* Android targeting */
220 /* Android targeting */
210 @media only screen and (-webkit-device-pixel-ratio:.75){
221 @media only screen and (-webkit-device-pixel-ratio:.75){
211 /* Put CSS for low density (ldpi) Android layouts in here */
222 /* Put CSS for low density (ldpi) Android layouts in here */
212 }
223 }
213 @media only screen and (-webkit-device-pixel-ratio:1){
224 @media only screen and (-webkit-device-pixel-ratio:1){
214 /* Put CSS for medium density (mdpi) Android layouts in here */
225 /* Put CSS for medium density (mdpi) Android layouts in here */
215 }
226 }
216 @media only screen and (-webkit-device-pixel-ratio:1.5){
227 @media only screen and (-webkit-device-pixel-ratio:1.5){
217 /* Put CSS for high density (hdpi) Android layouts in here */
228 /* Put CSS for high density (hdpi) Android layouts in here */
218 }
229 }
219 /* end Android targeting */
230 /* end Android targeting */
220
231
221 /** MARKDOWN styling **/
232 /** MARKDOWN styling **/
222 div.markdown-block {
233 div.markdown-block {
223 clear: both;
234 clear: both;
224 overflow: hidden;
235 overflow: hidden;
225 margin: 0;
236 margin: 0;
226 padding: 3px 5px 3px
237 padding: 3px 5px 3px
227 }
238 }
228
239
229 div.markdown-block h1, div.markdown-block h2, div.markdown-block h3, div.markdown-block h4, div.markdown-block h5, div.markdown-block h6 {
240 div.markdown-block h1, div.markdown-block h2, div.markdown-block h3, div.markdown-block h4, div.markdown-block h5, div.markdown-block h6 {
230 border-bottom: none !important;
241 border-bottom: none !important;
231 padding: 0 !important;
242 padding: 0 !important;
232 overflow: visible !important
243 overflow: visible !important
233 }
244 }
234
245
235 div.markdown-block h1, div.markdown-block h2 {
246 div.markdown-block h1, div.markdown-block h2 {
236 border-bottom: 1px #e6e5e5 solid !important
247 border-bottom: 1px #e6e5e5 solid !important
237 }
248 }
238
249
239 div.markdown-block h1 {
250 div.markdown-block h1 {
240 font-size: 32px;
251 font-size: 32px;
241 margin: 15px 0 15px 0 !important;
252 margin: 15px 0 15px 0 !important;
242 padding-bottom: 5px !important
253 padding-bottom: 5px !important
243 }
254 }
244
255
245 div.markdown-block h2 {
256 div.markdown-block h2 {
246 font-size: 24px !important;
257 font-size: 24px !important;
247 margin: 34px 0 10px 0 !important;
258 margin: 34px 0 10px 0 !important;
248 padding-top: 15px !important;
259 padding-top: 15px !important;
249 padding-bottom: 8px !important
260 padding-bottom: 8px !important
250 }
261 }
251
262
252 div.markdown-block h3 {
263 div.markdown-block h3 {
253 font-size: 18px !important;
264 font-size: 18px !important;
254 margin: 30px 0 8px 0 !important;
265 margin: 30px 0 8px 0 !important;
255 padding-bottom: 2px !important
266 padding-bottom: 2px !important
256 }
267 }
257
268
258 div.markdown-block h4 {
269 div.markdown-block h4 {
259 font-size: 13px !important;
270 font-size: 13px !important;
260 margin: 18px 0 3px 0 !important
271 margin: 18px 0 3px 0 !important
261 }
272 }
262
273
263 div.markdown-block h5 {
274 div.markdown-block h5 {
264 font-size: 12px !important;
275 font-size: 12px !important;
265 margin: 15px 0 3px 0 !important
276 margin: 15px 0 3px 0 !important
266 }
277 }
267
278
268 div.markdown-block h6 {
279 div.markdown-block h6 {
269 font-size: 12px;
280 font-size: 12px;
270 color: #777777;
281 color: #777777;
271 margin: 15px 0 3px 0 !important
282 margin: 15px 0 3px 0 !important
272 }
283 }
273
284
274 div.markdown-block hr {
285 div.markdown-block hr {
275 border: 0;
286 border: 0;
276 color: #e6e5e5;
287 color: #e6e5e5;
277 background-color: #e6e5e5;
288 background-color: #e6e5e5;
278 height: 3px;
289 height: 3px;
279 margin-bottom: 13px
290 margin-bottom: 13px
280 }
291 }
281
292
282 div.markdown-block ol, div.markdown-block ul, div.markdown-block p, div.markdown-block blockquote, div.markdown-block dl, div.markdown-block li, div.markdown-block table {
293 div.markdown-block ol, div.markdown-block ul, div.markdown-block p, div.markdown-block blockquote, div.markdown-block dl, div.markdown-block li, div.markdown-block table {
283 margin: 3px 0 13px 0 !important;
294 margin: 3px 0 13px 0 !important;
284 color: #424242 !important;
295 color: #424242 !important;
285 font-size: 13px !important;
296 font-size: 13px !important;
286 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
297 font-family: ${text_regular|n};
287 font-weight: normal !important;
298 font-weight: normal !important;
288 overflow: visible !important;
299 overflow: visible !important;
289 line-height: 140% !important
300 line-height: 140% !important
290 }
301 }
291
302
292 div.markdown-block pre {
303 div.markdown-block pre {
293 margin: 3px 0 13px 0 !important;
304 margin: 3px 0 13px 0 !important;
294 padding: .5em;
305 padding: .5em;
295 color: #424242 !important;
306 color: #424242 !important;
296 font-size: 13px !important;
307 font-size: 13px !important;
297 overflow: visible !important;
308 overflow: visible !important;
298 line-height: 140% !important;
309 line-height: 140% !important;
299 background-color: #F5F5F5
310 background-color: #F5F5F5
300 }
311 }
301
312
302 div.markdown-block img {
313 div.markdown-block img {
303 border-style: none;
314 border-style: none;
304 background-color: #fff;
315 background-color: #fff;
305 padding-right: 20px;
316 padding-right: 20px;
306 max-width: 100%
317 max-width: 100%
307 }
318 }
308
319
309 div.markdown-block strong {
320 div.markdown-block strong {
310 font-weight: 600;
321 font-weight: 600;
311 margin: 0
322 margin: 0
312 }
323 }
313
324
314 div.markdown-block ul.checkbox, div.markdown-block ol.checkbox {
325 div.markdown-block ul.checkbox, div.markdown-block ol.checkbox {
315 padding-left: 20px !important;
326 padding-left: 20px !important;
316 margin-top: 0 !important;
327 margin-top: 0 !important;
317 margin-bottom: 18px !important
328 margin-bottom: 18px !important
318 }
329 }
319
330
320 div.markdown-block ul, div.markdown-block ol {
331 div.markdown-block ul, div.markdown-block ol {
321 padding-left: 30px !important;
332 padding-left: 30px !important;
322 margin-top: 0 !important;
333 margin-top: 0 !important;
323 margin-bottom: 18px !important
334 margin-bottom: 18px !important
324 }
335 }
325
336
326 div.markdown-block ul.checkbox li, div.markdown-block ol.checkbox li {
337 div.markdown-block ul.checkbox li, div.markdown-block ol.checkbox li {
327 list-style: none !important;
338 list-style: none !important;
328 margin: 6px !important;
339 margin: 6px !important;
329 padding: 0 !important
340 padding: 0 !important
330 }
341 }
331
342
332 div.markdown-block ul li, div.markdown-block ol li {
343 div.markdown-block ul li, div.markdown-block ol li {
333 list-style: disc !important;
344 list-style: disc !important;
334 margin: 6px !important;
345 margin: 6px !important;
335 padding: 0 !important
346 padding: 0 !important
336 }
347 }
337
348
338 div.markdown-block ol li {
349 div.markdown-block ol li {
339 list-style: decimal !important
350 list-style: decimal !important
340 }
351 }
341
352
342 div.markdown-block #message {
353 div.markdown-block #message {
343 -webkit-border-radius: 2px;
354 -webkit-border-radius: 2px;
344 -moz-border-radius: 2px;
355 -moz-border-radius: 2px;
345 border-radius: 2px;
356 border-radius: 2px;
346 border: 1px solid #dbd9da;
357 border: 1px solid #dbd9da;
347 display: block;
358 display: block;
348 width: 100%;
359 width: 100%;
349 height: 60px;
360 height: 60px;
350 margin: 6px 0
361 margin: 6px 0
351 }
362 }
352
363
353 div.markdown-block button, div.markdown-block #ws {
364 div.markdown-block button, div.markdown-block #ws {
354 font-size: 13px;
365 font-size: 13px;
355 padding: 4px 6px;
366 padding: 4px 6px;
356 -webkit-border-radius: 2px;
367 -webkit-border-radius: 2px;
357 -moz-border-radius: 2px;
368 -moz-border-radius: 2px;
358 border-radius: 2px;
369 border-radius: 2px;
359 border: 1px solid #dbd9da;
370 border: 1px solid #dbd9da;
360 background-color: #eeeeee
371 background-color: #eeeeee
361 }
372 }
362
373
363 div.markdown-block code, div.markdown-block pre, div.markdown-block #ws, div.markdown-block #message {
374 div.markdown-block code, div.markdown-block pre, div.markdown-block #ws, div.markdown-block #message {
364 font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;
375 font-family: ${text_monospace|n};
365 font-size: 11px;
376 font-size: 11px;
366 -webkit-border-radius: 2px;
377 -webkit-border-radius: 2px;
367 -moz-border-radius: 2px;
378 -moz-border-radius: 2px;
368 border-radius: 2px;
379 border-radius: 2px;
369 background-color: white;
380 background-color: white;
370 color: #7E7F7F
381 color: #7E7F7F
371 }
382 }
372
383
373 div.markdown-block code {
384 div.markdown-block code {
374 border: 1px solid #eeeeee;
385 border: 1px solid #eeeeee;
375 margin: 0 2px;
386 margin: 0 2px;
376 padding: 0 5px
387 padding: 0 5px
377 }
388 }
378
389
379 div.markdown-block pre {
390 div.markdown-block pre {
380 border: 1px solid #dbd9da;
391 border: 1px solid #dbd9da;
381 overflow: auto;
392 overflow: auto;
382 padding: .5em;
393 padding: .5em;
383 background-color: #F5F5F5
394 background-color: #F5F5F5
384 }
395 }
385
396
386 div.markdown-block pre > code {
397 div.markdown-block pre > code {
387 border: 0;
398 border: 0;
388 margin: 0;
399 margin: 0;
389 padding: 0
400 padding: 0
390 }
401 }
391
402
392 div.rst-block {
403 div.rst-block {
393 clear: both;
404 clear: both;
394 overflow: hidden;
405 overflow: hidden;
395 margin: 0;
406 margin: 0;
396 padding: 3px 5px 3px
407 padding: 3px 5px 3px
397 }
408 }
398
409
399 div.rst-block h2 {
410 div.rst-block h2 {
400 font-weight: normal
411 font-weight: normal
401 }
412 }
402
413
403 div.rst-block h1, div.rst-block h2, div.rst-block h3, div.rst-block h4, div.rst-block h5, div.rst-block h6 {
414 div.rst-block h1, div.rst-block h2, div.rst-block h3, div.rst-block h4, div.rst-block h5, div.rst-block h6 {
404 border-bottom: 0 !important;
415 border-bottom: 0 !important;
405 margin: 0 !important;
416 margin: 0 !important;
406 padding: 0 !important;
417 padding: 0 !important;
407 line-height: 1.5em !important
418 line-height: 1.5em !important
408 }
419 }
409
420
410 div.rst-block h1:first-child {
421 div.rst-block h1:first-child {
411 padding-top: .25em !important
422 padding-top: .25em !important
412 }
423 }
413
424
414 div.rst-block h2, div.rst-block h3 {
425 div.rst-block h2, div.rst-block h3 {
415 margin: 1em 0 !important
426 margin: 1em 0 !important
416 }
427 }
417
428
418 div.rst-block h1, div.rst-block h2 {
429 div.rst-block h1, div.rst-block h2 {
419 border-bottom: 1px #e6e5e5 solid !important
430 border-bottom: 1px #e6e5e5 solid !important
420 }
431 }
421
432
422 div.rst-block h2 {
433 div.rst-block h2 {
423 margin-top: 1.5em !important;
434 margin-top: 1.5em !important;
424 padding-top: .5em !important
435 padding-top: .5em !important
425 }
436 }
426
437
427 div.rst-block p {
438 div.rst-block p {
428 color: black !important;
439 color: black !important;
429 margin: 1em 0 !important;
440 margin: 1em 0 !important;
430 line-height: 1.5em !important
441 line-height: 1.5em !important
431 }
442 }
432
443
433 div.rst-block ul {
444 div.rst-block ul {
434 list-style: disc !important;
445 list-style: disc !important;
435 margin: 1em 0 1em 2em !important;
446 margin: 1em 0 1em 2em !important;
436 clear: both
447 clear: both
437 }
448 }
438
449
439 div.rst-block ol {
450 div.rst-block ol {
440 list-style: decimal;
451 list-style: decimal;
441 margin: 1em 0 1em 2em !important
452 margin: 1em 0 1em 2em !important
442 }
453 }
443
454
444 div.rst-block pre, div.rst-block code {
455 div.rst-block pre, div.rst-block code {
445 font: 12px "Bitstream Vera Sans Mono", "Courier", monospace
456 font: 12px "Bitstream Vera Sans Mono", "Courier", monospace
446 }
457 }
447
458
448 div.rst-block code {
459 div.rst-block code {
449 font-size: 12px !important;
460 font-size: 12px !important;
450 background-color: ghostWhite !important;
461 background-color: ghostWhite !important;
451 color: #444 !important;
462 color: #444 !important;
452 padding: 0 .2em !important;
463 padding: 0 .2em !important;
453 border: 1px solid #dedede !important
464 border: 1px solid #dedede !important
454 }
465 }
455
466
456 div.rst-block pre code {
467 div.rst-block pre code {
457 padding: 0 !important;
468 padding: 0 !important;
458 font-size: 12px !important;
469 font-size: 12px !important;
459 background-color: #eee !important;
470 background-color: #eee !important;
460 border: none !important
471 border: none !important
461 }
472 }
462
473
463 div.rst-block pre {
474 div.rst-block pre {
464 margin: 1em 0;
475 margin: 1em 0;
465 padding: 15px;
476 padding: 15px;
466 border: 1px solid #eeeeee;
477 border: 1px solid #eeeeee;
467 -webkit-border-radius: 2px;
478 -webkit-border-radius: 2px;
468 -moz-border-radius: 2px;
479 -moz-border-radius: 2px;
469 border-radius: 2px;
480 border-radius: 2px;
470 overflow: auto;
481 overflow: auto;
471 font-size: 12px;
482 font-size: 12px;
472 color: #444;
483 color: #444;
473 background-color: #F5F5F5
484 background-color: #F5F5F5
474 }
485 }
475
486
476
487
477 </style>
488 </style>
478
489
479 <!-- Targeting Windows Mobile -->
490 <!-- Targeting Windows Mobile -->
480 <!--[if IEMobile 7]>
491 <!--[if IEMobile 7]>
481 <style type="text/css">
492 <style type="text/css">
482
493
483 </style>
494 </style>
484 <![endif]-->
495 <![endif]-->
485
496
486 <!--[if gte mso 9]>
497 <!--[if gte mso 9]>
487 <style>
498 <style>
488 /* Target Outlook 2007 and 2010 */
499 /* Target Outlook 2007 and 2010 */
489 </style>
500 </style>
490 <![endif]-->
501 <![endif]-->
491 </head>
502 </head>
492 <body>
503 <body>
504
505 <div>
493 <!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
506 <!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
494 <table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" align="left" style="margin:1%;width:97%;padding:0;font-family:sans-serif;font-weight:100;border:1px solid #dbd9da">
507 <table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" align="left" style="margin:1%;width:97%;padding:0;font-family:${text_regular|n};font-weight:100;border:1px solid #dbd9da">
495 <tr>
508 <tr>
496 <td valign="top" style="padding:0;">
509 <td valign="top" style="padding:0;">
497 <table cellpadding="0" cellspacing="0" border="0" align="left" width="100%">
510 <table cellpadding="0" cellspacing="0" border="0" align="left" width="100%">
498 <tr>
511 <tr>
499 <td style="width:100%;padding:10px 15px;background-color:#202020" valign="top">
512 <td style="width:100%;padding:10px 15px;background-color:#202020" valign="top">
500 <a style="color:#eeeeee;text-decoration:none;" href="${instance_url}">
513 <a style="color:#eeeeee;text-decoration:none;" href="${instance_url}">
501 ${_('RhodeCode')}
514 ${_('RhodeCode')}
502 % if rhodecode_instance_name:
515 % if rhodecode_instance_name:
503 - ${rhodecode_instance_name}
516 - ${rhodecode_instance_name}
504 % endif
517 % endif
505 </a>
518 </a>
506 </td>
519 </td>
507 </tr>
520 </tr>
508 <tr>
521 <tr>
509 <td style="padding:15px;" valign="top">${self.body()}</td>
522 <td style="padding:15px;" valign="top">${self.body()}</td>
510 </tr>
523 </tr>
511 </table>
524 </table>
512 </td>
525 </td>
513 </tr>
526 </tr>
514 </table>
527 </table>
515 <!-- End of wrapper table -->
528 <!-- End of wrapper table -->
529 </div>
516
530
517 <div style="clear: both"></div>
531 <div style="width:100%; clear: both; height: 1px">&nbsp;</div>
518 <div style="margin-left:1%;font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace}">
532
533 <div style="margin-left:1%;font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace};">
519 ${_('This is a notification from RhodeCode.')}
534 ${_('This is a notification from RhodeCode.')}
520 <a style="font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace}" href="${instance_url}">
535 <a style="font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace};" href="${instance_url}">
521 ${instance_url}
536 ${instance_url}
522 </a>
537 </a>
523 </div>
538 </div>
524 </body>
539 </body>
525 </html>
540 </html>
General Comments 0
You need to be logged in to leave comments. Login now