##// 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 21 <ul>
22 22 % for elem in sorted(c.email_types.keys()):
23 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 26 <a href="${request.route_path('debug_style_email_plain_rendered', email_id=elem, _query={'user':c.rhodecode_user.username})}">plain rendered</a>
27 27 </li>
@@ -63,8 +63,8 b" css_style = ';'.join(["
63 63
64 64 ## Constants
65 65 <%
66 text_regular = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;"
67 text_monospace = "'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;"
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"
68 68
69 69 %>
70 70
@@ -100,7 +100,7 b' text_monospace = "\'Menlo\', \'Liberation M'
100 100 -ms-text-size-adjust: 100%;
101 101 margin: 0;
102 102 padding: 0;
103 font-family: ${text_regular|n}
103 font-family: ${text_regular|n};
104 104 }
105 105
106 106 /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
@@ -184,6 +184,13 b' text_monospace = "\'Menlo\', \'Liberation M'
184 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 194 table td {
188 195 padding: .65em 1em .65em 0;
189 196 border-collapse: collapse;
@@ -202,6 +209,10 b' text_monospace = "\'Menlo\', \'Liberation M'
202 209 outline: 1px solid #979797
203 210 }
204 211
212 code {
213 font-family: ${text_monospace|n};
214 }
215
205 216 @media only screen and (-webkit-min-device-pixel-ratio: 2) {
206 217 /* Put your iPhone 4g styles in here */
207 218 }
@@ -283,7 +294,7 b' text_monospace = "\'Menlo\', \'Liberation M'
283 294 margin: 3px 0 13px 0 !important;
284 295 color: #424242 !important;
285 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 298 font-weight: normal !important;
288 299 overflow: visible !important;
289 300 line-height: 140% !important
@@ -361,7 +372,7 b' text_monospace = "\'Menlo\', \'Liberation M'
361 372 }
362 373
363 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 376 font-size: 11px;
366 377 -webkit-border-radius: 2px;
367 378 -moz-border-radius: 2px;
@@ -490,8 +501,10 b' text_monospace = "\'Menlo\', \'Liberation M'
490 501 <![endif]-->
491 502 </head>
492 503 <body>
504
505 <div>
493 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 508 <tr>
496 509 <td valign="top" style="padding:0;">
497 510 <table cellpadding="0" cellspacing="0" border="0" align="left" width="100%">
@@ -513,11 +526,13 b' text_monospace = "\'Menlo\', \'Liberation M'
513 526 </tr>
514 527 </table>
515 528 <!-- End of wrapper table -->
529 </div>
516 530
517 <div style="clear: both"></div>
518 <div style="margin-left:1%;font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace}">
531 <div style="width:100%; clear: both; height: 1px">&nbsp;</div>
532
533 <div style="margin-left:1%;font-weight:100;font-size:11px;color:#666666;text-decoration:none;font-family:${text_monospace};">
519 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 536 ${instance_url}
522 537 </a>
523 538 </div>
General Comments 0
You need to be logged in to leave comments. Login now