Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

emails: Fix body tag styles being applied in messages template.

Daniil Fadeevf1db6956501f
diff --git a/templates/zerver/emails/email.css b/templates/zerver/emails/email.css
index c2b26145b17..025ec8980a6 100644
--- a/templates/zerver/emails/email.css
+++ b/templates/zerver/emails/email.css
@@ -12,7 +12,7 @@ img.bottom-illustration {
vertical-align: bottom;
}
-body {
+body.default-email-font-settings {
font-family: sans-serif;
font-size: 14px;
line-height: 1.4;
diff --git a/templates/zerver/emails/email_base_default.html b/templates/zerver/emails/email_base_default.html
index d6f37327bf9..bd83301d216 100644
--- a/templates/zerver/emails/email_base_default.html
+++ b/templates/zerver/emails/email_base_default.html
@@ -8,7 +8,7 @@
<title>Zulip</title>
<style>{{css_styles}}</style>
</head>
- <body>
+ <body class="default-email-font-settings">
<table border="0" cellpadding="0" cellspacing="0" class="body layout">
<tr>
<td>&nbsp;</td>
diff --git a/templates/zerver/emails/email_base_marketing.html b/templates/zerver/emails/email_base_marketing.html
index 3bad731429b..796dad87be5 100644
--- a/templates/zerver/emails/email_base_marketing.html
+++ b/templates/zerver/emails/email_base_marketing.html
@@ -8,7 +8,7 @@
<title>Zulip</title>
<style>{{css_styles}}</style>
</head>
- <body>
+ <body class="default-email-font-settings">
<table border="0" cellpadding="0" cellspacing="0" class="body layout">
<tr>
<td>&nbsp;</td>