base.html.twig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title></title>
  7. <style>
  8. /* -------------------------------------
  9. GLOBAL
  10. ------------------------------------- */
  11. * {
  12. margin: 0;
  13. padding: 0;
  14. font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  15. font-size: 100%;
  16. line-height: 1.6;
  17. }
  18. img {
  19. max-width: 100%;
  20. }
  21. body {
  22. -webkit-font-smoothing: antialiased;
  23. -webkit-text-size-adjust: none;
  24. width: 100%!important;
  25. height: 100%;
  26. }
  27. /* -------------------------------------
  28. ELEMENTS
  29. ------------------------------------- */
  30. a {
  31. color: #348eda;
  32. }
  33. .btn-primary {
  34. text-decoration: none;
  35. color: #FFF;
  36. background-color: #348eda;
  37. border: solid #348eda;
  38. border-width: 10px 20px;
  39. line-height: 2;
  40. font-weight: bold;
  41. margin-right: 10px;
  42. text-align: center;
  43. cursor: pointer;
  44. display: inline-block;
  45. border-radius: 25px;
  46. }
  47. .btn-secondary {
  48. text-decoration: none;
  49. color: #FFF;
  50. background-color: #aaa;
  51. border: solid #aaa;
  52. border-width: 10px 20px;
  53. line-height: 2;
  54. font-weight: bold;
  55. margin-right: 10px;
  56. text-align: center;
  57. cursor: pointer;
  58. display: inline-block;
  59. border-radius: 25px;
  60. }
  61. .last {
  62. margin-bottom: 0;
  63. }
  64. .first {
  65. margin-top: 0;
  66. }
  67. .padding {
  68. padding: 10px 0;
  69. }
  70. /* -------------------------------------
  71. BODY
  72. ------------------------------------- */
  73. table.body-wrap {
  74. width: 100%;
  75. padding: 20px;
  76. }
  77. table.body-wrap .container {
  78. border: 1px solid #f0f0f0;
  79. }
  80. /* -------------------------------------
  81. FOOTER
  82. ------------------------------------- */
  83. table.footer-wrap {
  84. width: 100%;
  85. clear: both!important;
  86. }
  87. .footer-wrap .container p {
  88. font-size: 12px;
  89. color: #666;
  90. }
  91. table.footer-wrap a {
  92. color: #999;
  93. }
  94. /* -------------------------------------
  95. TYPOGRAPHY
  96. ------------------------------------- */
  97. h1, h2, h3 {
  98. font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  99. color: #000;
  100. margin: 40px 0 10px;
  101. line-height: 1.2;
  102. font-weight: 200;
  103. }
  104. h1 {
  105. font-size: 36px;
  106. }
  107. h2 {
  108. font-size: 28px;
  109. }
  110. h3 {
  111. font-size: 22px;
  112. }
  113. p, ul, ol {
  114. margin-bottom: 10px;
  115. font-weight: normal;
  116. font-size: 14px;
  117. }
  118. ul li, ol li {
  119. margin-left: 5px;
  120. list-style-position: inside;
  121. }
  122. .word-break {
  123. overflow-wrap: break-word;
  124. word-wrap: break-word;
  125. -ms-word-break: break-all;
  126. /* This is the dangerous one in WebKit, as it breaks things wherever */
  127. word-break: break-all;
  128. /* Instead use this non-standard one: */
  129. word-break: break-word;
  130. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  131. -ms-hyphens: auto;
  132. -moz-hyphens: auto;
  133. -webkit-hyphens: auto;
  134. hyphens: auto;
  135. }
  136. /* ---------------------------------------------------
  137. RESPONSIVENESS
  138. Nuke it from orbit. It's the only way to be sure.
  139. ------------------------------------------------------ */
  140. /* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
  141. .container {
  142. display: block!important;
  143. max-width: 600px!important;
  144. margin: 0 auto!important; /* makes it centered */
  145. clear: both!important;
  146. }
  147. /* Set the padding on the td rather than the div for Outlook compatibility */
  148. .body-wrap .container {
  149. padding: 20px;
  150. }
  151. /* This should also be a block element, so that it will fill 100% of the .container */
  152. .content {
  153. max-width: 600px;
  154. margin: 0 auto;
  155. display: block;
  156. }
  157. /* Let's make sure tables in the content area are 100% wide */
  158. .content table {
  159. width: 100%;
  160. }
  161. </style>
  162. </head>
  163. <body bgcolor="#f6f6f6">
  164. <!-- body -->
  165. <table class="body-wrap" bgcolor="#f6f6f6">
  166. <tr>
  167. <td></td>
  168. <td class="container" bgcolor="#FFFFFF">
  169. <div class="content">
  170. <table>
  171. <tr>
  172. <td>
  173. {% block content %}
  174. {{ content|raw }}
  175. {% endblock content %}
  176. </td>
  177. </tr>
  178. </table>
  179. </div>
  180. </td>
  181. <td></td>
  182. </tr>
  183. </table>
  184. <!-- /body -->
  185. <!-- footer -->
  186. <table class="footer-wrap">
  187. <tr>
  188. <td></td>
  189. <td class="container">
  190. <div class="content">
  191. <table>
  192. <tr>
  193. <td align="center">
  194. {% block footer %}
  195. {{ 'PLUGIN_EMAIL.EMAIL_FOOTER'|t }}
  196. {% endblock footer %}
  197. </td>
  198. </tr>
  199. </table>
  200. </div>
  201. </td>
  202. <td></td>
  203. </tr>
  204. </table>
  205. <!-- /footer -->
  206. </body>
  207. </html>