##// END OF EJS Templates
emails: fixed some fonts rendering problems in outlook....
marcink -
r4217:e41c2009 stable
parent child Browse files
Show More
@@ -21,7 +21,7 b''
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>
@@ -63,8 +63,8 b" css_style = ';'.join(["
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
@@ -100,7 +100,7 b' text_monospace = "\'Menlo\', \'Liberation M'
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.*/
@@ -184,6 +184,13 b' text_monospace = "\'Menlo\', \'Liberation M'
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;
@@ -202,6 +209,10 b' text_monospace = "\'Menlo\', \'Liberation M'
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 }
@@ -283,7 +294,7 b' text_monospace = "\'Menlo\', \'Liberation M'
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
@@ -361,7 +372,7 b' text_monospace = "\'Menlo\', \'Liberation M'
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;
@@ -490,8 +501,10 b' text_monospace = "\'Menlo\', \'Liberation M'
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%">
@@ -513,11 +526,13 b' text_monospace = "\'Menlo\', \'Liberation M'
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>
General Comments 0
You need to be logged in to leave comments. Login now