mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:15:48 +08:00
6c0abe15e0
implement dark mode emails when `SiteSetting.dark_mode_emails_active` is active.
52 lines
1.3 KiB
HTML
52 lines
1.3 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
lang="%{html_lang}"
|
|
xml:lang="%{html_lang}"
|
|
>
|
|
<head>
|
|
<meta
|
|
http-equiv="Content-type"
|
|
name="viewport"
|
|
content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width"
|
|
/>
|
|
%{dark_mode_meta_tags}
|
|
<!-- prevent ios zooming + autoscaling -->
|
|
<meta name="x-apple-disable-message-reformatting" />
|
|
<title></title>
|
|
</head>
|
|
|
|
<body>
|
|
<!--[if mso]>
|
|
<style type="text/css">
|
|
body,
|
|
table,
|
|
td,
|
|
th,
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-family: Arial, sans-serif !important;
|
|
}
|
|
</style>
|
|
<![endif]-->
|
|
|
|
%{email_content}
|
|
|
|
<!-- prevent Gmail on iOS font size manipulation -->
|
|
<div
|
|
style="
|
|
display: none;
|
|
white-space: nowrap;
|
|
font: 15px courier;
|
|
line-height: 0;
|
|
"
|
|
>
|
|
|
|
|
|
|
|
</div>
|
|
%{dark_mode_styles}
|
|
</body>
|
|
</html>
|