logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

email_styled.html.eex (8545B)


  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office"
  4. xmlns:v="urn:schemas-microsoft-com:vml">
  5. <head>
  6. <!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
  7. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  8. <meta content="width=device-width" name="viewport" />
  9. <!--[if !mso]><!-->
  10. <meta content="IE=edge" http-equiv="X-UA-Compatible" />
  11. <!--<![endif]-->
  12. <title><%= @email.subject %></title>
  13. <!--[if !mso]><!-->
  14. <!--<![endif]-->
  15. <style type="text/css">
  16. body {
  17. margin: 0;
  18. padding: 0;
  19. }
  20. a {
  21. color: <%= @styling.link_color %>;
  22. text-decoration: none;
  23. }
  24. table,
  25. td,
  26. tr {
  27. vertical-align: top;
  28. border-collapse: collapse;
  29. }
  30. * {
  31. line-height: inherit;
  32. }
  33. a[x-apple-data-detectors=true] {
  34. color: inherit !important;
  35. text-decoration: none !important;
  36. }
  37. </style>
  38. <style id="media-query" type="text/css">
  39. @media (max-width: 610px) {
  40. .block-grid,
  41. .col {
  42. min-width: 320px !important;
  43. max-width: 100% !important;
  44. display: block !important;
  45. }
  46. .block-grid {
  47. width: 100% !important;
  48. }
  49. .col {
  50. width: 100% !important;
  51. }
  52. .col>div {
  53. margin: 0 auto;
  54. }
  55. .no-stack .col {
  56. min-width: 0 !important;
  57. display: table-cell !important;
  58. }
  59. .no-stack.two-up .col {
  60. width: 50% !important;
  61. }
  62. .no-stack .col.num4 {
  63. width: 33% !important;
  64. }
  65. .no-stack .col.num8 {
  66. width: 66% !important;
  67. }
  68. .no-stack .col.num4 {
  69. width: 33% !important;
  70. }
  71. .no-stack .col.num3 {
  72. width: 25% !important;
  73. }
  74. .no-stack .col.num6 {
  75. width: 50% !important;
  76. }
  77. .no-stack .col.num9 {
  78. width: 75% !important;
  79. }
  80. }
  81. </style>
  82. </head>
  83. <body class="clean-body" style="margin: 0; padding: 0; -webkit-text-size-adjust: 100%; background-color: <%= @styling.background_color %>;">
  84. <!--[if IE]><div class="ie-browser"><![endif]-->
  85. <table bgcolor="<%= @styling.background_color %>" cellpadding="0" cellspacing="0" class="nl-container" role="presentation"
  86. style="table-layout: fixed; vertical-align: top; min-width: 320px; Margin: 0 auto; border-spacing: 0; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: <%= @styling.background_color %>; width: 100%;"
  87. valign="top" width="100%">
  88. <tbody>
  89. <tr style="vertical-align: top;" valign="top">
  90. <td style="word-break: break-word; vertical-align: top;" valign="top">
  91. <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:<%= @styling.background_color %>"><![endif]-->
  92. <%# header %>
  93. <div style="background-color:transparent;">
  94. <div class="block-grid"
  95. style="Margin: 0 auto; min-width: 320px; max-width: 590px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: <%= @styling.content_background_color%>;">
  96. <div style="border-collapse: collapse;display: table;width: 100%;background-color:<%= @styling.content_background_color%>;">
  97. <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:590px"><tr class="layout-full-width" style="background-color:<%= @styling.content_background_color%>"><![endif]-->
  98. <!--[if (mso)|(IE)]><td align="center" width="590" style="background-color:<%= @styling.content_background_color%>;width:590px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]-->
  99. <div class="col num12"
  100. style="min-width: 320px; max-width: 590px; display: table-cell; vertical-align: top; width: 590px;">
  101. <div style="width:100% !important;">
  102. <!--[if (!mso)&(!IE)]><!-->
  103. <div
  104. style="border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
  105. <!--<![endif]-->
  106. <div align="center" class="img-container center"
  107. style="padding-right: 0px;padding-left: 0px;">
  108. <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr style="line-height:0px"><td style="padding-right: 0px;padding-left: 0px;" align="center"><![endif]--><img
  109. align="center" alt="Image" border="0" class="center" src="<%= @logo_url %>"
  110. style="text-decoration: none; -ms-interpolation-mode: bicubic; border: 0; height: 80px; width: auto; max-height: 80px; display: block;"
  111. title="Image" height="80" />
  112. <!--[if mso]></td></tr></table><![endif]-->
  113. </div>
  114. <!--[if (!mso)&(!IE)]><!-->
  115. </div>
  116. <!--<![endif]-->
  117. </div>
  118. </div>
  119. <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
  120. <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
  121. </div>
  122. </div>
  123. </div>
  124. <%# title %>
  125. <%= if @title do %>
  126. <div style="background-color:transparent;">
  127. <div class="block-grid"
  128. style="Margin: 0 auto; min-width: 320px; max-width: 590px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: <%= @styling.content_background_color%>;">
  129. <div style="border-collapse: collapse;display: table;width: 100%;background-color:<%= @styling.content_background_color%>;">
  130. <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:590px"><tr class="layout-full-width" style="background-color:<%= @styling.content_background_color%>"><![endif]-->
  131. <!--[if (mso)|(IE)]><td align="center" width="590" style="background-color:<%= @styling.content_background_color%>;width:590px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]-->
  132. <div class="col num12"
  133. style="min-width: 320px; max-width: 590px; display: table-cell; vertical-align: top; width: 590px;">
  134. <div style="width:100% !important;">
  135. <!--[if (!mso)&(!IE)]><!-->
  136. <div
  137. style="border-top:0px solid transparent; border-left:0px solid transparent; border-bottom:0px solid transparent; border-right:0px solid transparent; padding-top:5px; padding-bottom:5px; padding-right: 0px; padding-left: 0px;">
  138. <!--<![endif]-->
  139. <!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]-->
  140. <div
  141. style="line-height:120%;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;">
  142. <div
  143. style="font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;line-height: 14px; color: <%= @styling.header_color %>;">
  144. <p style="line-height: 36px; text-align: center; margin: 0;"><span
  145. style="font-size: 30px; color: <%= @styling.header_color %>;"><%= @title %></span></p>
  146. </div>
  147. </div>
  148. <!--[if mso]></td></tr></table><![endif]-->
  149. <!--[if (!mso)&(!IE)]><!-->
  150. </div>
  151. <!--<![endif]-->
  152. </div>
  153. </div>
  154. <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
  155. <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->
  156. </div>
  157. </div>
  158. </div>
  159. <% end %>
  160. <%= @inner_content %>
  161. </td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <!--[if (IE)]></div><![endif]-->
  166. </body>
  167. </html>