From 6a91cfe5a66a3d93f4fc6388492141a9eecad7e3 Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Wed, 28 Oct 2020 15:26:20 +0100 Subject: [PATCH] fix: email styling (#918) --- .../templates/template 01 Tabelle black.mjml | 43 +- .../static/templates/template.html | 1179 +++++++---------- 2 files changed, 504 insertions(+), 718 deletions(-) diff --git a/internal/notification/static/templates/template 01 Tabelle black.mjml b/internal/notification/static/templates/template 01 Tabelle black.mjml index 8d514752eb..82cc467db3 100644 --- a/internal/notification/static/templates/template 01 Tabelle black.mjml +++ b/internal/notification/static/templates/template 01 Tabelle black.mjml @@ -1,46 +1,47 @@ - + + - + - + + @media (max-width:480px) { .mobile_hidden { display:none !important; } } + - + - - - - - - {{.Greeting}} - {{.Text}} - {{.ButtonText}} - - CAOS AG | Teufener Strasse 19 | CH-9000 St. Gallen - - - - - + + + + + {{.Greeting}} + {{.Text}} + {{.ButtonText}} + + CAOS AG | Teufener Strasse 19 | CH-9000 St. Gallen + + + + - - + + diff --git a/internal/notification/static/templates/template.html b/internal/notification/static/templates/template.html index 77319e45a0..3627215a1b 100644 --- a/internal/notification/static/templates/template.html +++ b/internal/notification/static/templates/template.html @@ -1,714 +1,499 @@ + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - - - -
- - + body { + margin: 0; + padding: 0; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + } + + table, + td { + border-collapse: collapse; + mso-table-lspace: 0pt; + mso-table-rspace: 0pt; + } + + img { + border: 0; + height: auto; + line-height: 100%; + outline: none; + text-decoration: none; + -ms-interpolation-mode: bicubic; + } + + p { + display: block; + margin: 13px 0; + } + + + + + + + + + + + + + + +
+
- +
- - - - -
-
- - - - - - -
- - - - - - - -
- - - - - -
- - - - - - - -
- - -
- - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - -
- -
- -
- -
- - -
- - -
- -
- - - - - -
- - - - - - - - - -
- - - - - -
- - - - - - - -
- - -
- - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - -
- -
- -
- -
- - - -
- - - - - - - -
- - - - - - - - - - - - - - - -
- -
{{.Greeting}}
- -
- -
{{.Text}}
- -
- - - - - - - - - -
+ + + + - - {{.ButtonText}} - - - -
- -
- -
CAOS AG | Teufener Strasse 19 | CH-9000 St. Gallen
- -
- -
- - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - -
- -
- -
- -
- - - - - -
- -
- - - - - -
- - - - - - - - -
- - - - - -
- - - - - - - -
+
+
+ + + + + + +
+ + + + + + + +
+ +
+ + + + + + +
+ +
+ +
+ + + + + + +
+ + + + +
+ + + + + + +
+
+
+
+ +
+ +
+
+ +
+ + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + + + +
+ + + + +
+ + + + + + +
+
+
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + +
+
{{.Greeting}}
+
+
{{.Text}}
+
+ + + + +
+ {{.ButtonText}} +
+
+
CAOS AG | Teufener Strasse 19 | CH-9000 St. Gallen
+
+
+
+ +
+ + + + + + +
+ + + + +
+ + + + + + +
+
+
+
+ +
+
+ +
+ + + + + + + +
+ +
+ + + + + + +
+ +
+ +
+ + + + + + +
+ + + + +
+ + + + + + +
+
+
+
+ +
+ +
+
+ +
+ +
+
+
- -
- - -
- - - - - - - -
- - - - - - -
- - - - - - - -
- - - -
-
- -
- -
- - -
- - -
- -
- - - - - -
- - -
- - - - - - -
- -
- - - - \ No newline at end of file +
+
+ + + \ No newline at end of file