]> Raphaël G. Git Repositories - airbundle/commitdiff
Add mail content-language
authorRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 15:45:42 +0000 (17:45 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 15:45:42 +0000 (17:45 +0200)
Break to every letter in a.link
Force h1 default margin and font-size

Resources/views/mail/body.html.twig

index 89d84350bd72fdb638d6e5730b1668ed376c9f82..d7aec971477f30d0a1cf8fd0d3689251039600ca 100644 (file)
@@ -2,10 +2,13 @@
 {% block stylesheets %}
        <meta name="viewport" content="width=device-width" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+       {% if locale is defined and locale %}<meta http-equiv="Content-Language" content="{{ locale }}" />{% endif %}
        <style type="text/css">
                body {background:white;color:#066}
                a {text-decoration:none;color:#066}
                a:hover {text-decoration:underline}
+               a.link {word-break:break-all;font-size:1.5rem}
+               h1 {margin: .5rem;font-size: 2rem}
                table {width: 100%;border-radius: .5rem}
                table.header {border:.1rem solid #00c3f9;text-align:center}
                table.content {background:white;border:.1rem solid #00c3f9;margin:.5rem 0}