Files
zulip/templates/zerver/emails/email_base_messages.html
Daniil Fadeev db37880d08 emails: Fix some css not being applied to emails.
This commit places the email CSS into the `style` tag located in the
`head` section. This resolves the issue of being unable to apply
certain CSS styles that cannot be inlined, such as media queries and
pseudo-classes.
2023-04-27 08:55:24 -07:00

29 lines
709 B
HTML

{% import 'zerver/emails/email.css' as css_styles %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Zulip</title>
<style>{{css_styles}}</style>
</head>
{% if has_preheader %}
<span style="display:none !important;
visibility:hidden;
color:transparent;
mso-hide:all;
font-size:1px;
color:hsl(0, 0%, 100%);
line-height:1px;
max-height:0px;
height:0px;
max-width:0px;
width:0px;
opacity:0;
overflow:hidden;">
{% block preheader %}{% endblock %}
</span>
{% endif %}
{% block content %}{% endblock %}
{% block manage_preferences %}{% endblock %}
</html>