_layout.email.html.mustache 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width">
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <style type="text/css">
  7. /*
  8. Changes to font size (14->16) for smaller screens
  9. table[class=body] is the only selector that works for all vendors
  10. */
  11. @media only screen and (max-width: 620px) {
  12. table[class=body] p,
  13. table[class=body] ul,
  14. table[class=body] ol,
  15. table[class=body] td,
  16. table[class=body] span,
  17. table[class=body] a {
  18. font-size: 16px !important;
  19. }
  20. /* remove padding for mobile so no gray shows */
  21. table[class=body] .bodycell {
  22. padding: 0 !important;
  23. width: 100% !important;
  24. }
  25. /* reduce padding from 20->10 for mobile */
  26. table[class=body] .maincell {
  27. padding: 10px !important;
  28. }
  29. }
  30. /*
  31. ExternalClass fixes Outlook.com / Hotmail emails
  32. */
  33. @media all {
  34. .ExternalClass {
  35. width: 100%;
  36. }
  37. .ExternalClass,
  38. .ExternalClass p,
  39. .ExternalClass span,
  40. .ExternalClass font,
  41. .ExternalClass td,
  42. .ExternalClass div {
  43. line-height: 100%;
  44. }
  45. }
  46. </style>
  47. </head>
  48. <!--
  49. background: white (could be gray)
  50. default sans serif fonts, 14px, 1.3, #444444
  51. vendor prefixes for Outlook (-ms) and iOS (-webkit)
  52. Margin is capitalized to fix Outlook.com
  53. -->
  54. <body class="" style="background-color:#ffffff; font-family:'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif'; font-size:14px; color: #444444; line-height:1.3; Margin:0; padding:0; -ms-text-size-adjust:100%; -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%;">
  55. <!-- body: background table (if body has a color, this should match) -->
  56. <table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse:separate; background-color:#ffffff; width:100%; box-sizing:border-box; mso-table-lspace:0pt; mso-table-rspace:0pt;">
  57. <tr>
  58. <!-- width and max-width so it can scale for mobile -->
  59. <td class="bodycell" style="max-width:600px; width:100%; font-family:'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif'; font-size:14px; vertical-align:top; display:block; box-sizing:border-box; padding:10px; Margin:0 auto !important;">
  60. <!-- for older versions of Outlook that don't support max-width -->
  61. <!--[if (gte mso 9)|(IE)]>
  62. <table width="600" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td>
  63. <![endif]-->
  64. <!-- main: white box for content -->
  65. <table class="main" style="background:#fff; width:100%; border-collapse:separate; mso-table-lspace:0pt; mso-table-rspace:0pt; ">
  66. <tr>
  67. <td class="maincell" style="font-family:sans-serif; font-size:14px; vertical-align:top; box-sizing:border-box; padding:20px;">
  68. <%= inner_html %>
  69. </td>
  70. </tr>
  71. </table>
  72. <!-- /.main -->
  73. <!-- logo: branding -->
  74. <table class="logo" style="width:100%; box-sizing:border-box; border-collapse:separate; mso-table-lspace:0pt; mso-table-rspace:0pt; ">
  75. <tr>
  76. <td class="logocell" style="text-align:center; vertical-align:top; box-sizing:border-box; padding:10px;">
  77. <img src="<%= custom_logo || "https://lh3.googleusercontent.com/D1pgZeJZrBFc_n_EnEWpj9BQpVUaQ6xj2FYl1ZaxhDN4c-x8X69DqfJ258Eb0u7sXyuvYI533FkaCouBv6131tpxMbd1CpjZDEMr2kN4t8_Epitm77c" %>" alt="">
  78. </td>
  79. </tr>
  80. </table>
  81. <!-- /.logo -->
  82. <!-- footer: gray text below main -->
  83. <table class="footer" style="width:100%; box-sizing:border-box; border-collapse:separate; mso-table-lspace:0pt; mso-table-rspace:0pt; ">
  84. <tr>
  85. <td class="footercell" style="font-family:sans-serif; font-size:14px; vertical-align:top; color:#a8b9c6; font-size:12px; text-align:center; padding:10px; box-sizing:border-box; ">
  86. <% if !content(:footer_link).blank? %>
  87. <%= content(:footer_link).html_safe %> &nbsp;|&nbsp;
  88. <% end %>
  89. <a href="<%= communication_profile_url %>" style="white-space: nowrap;"><%= t 'click_to_preferences', "Update your notification settings" %></a>
  90. </td>
  91. </tr>
  92. </table>
  93. <!-- /.footer -->
  94. <!--[if (gte mso 9)|(IE)]>
  95. </td></tr></table>
  96. <![endif]-->
  97. </td>
  98. </tr>
  99. </table>
  100. <!-- /.body -->
  101. </body>
  102. </html>