summaryrefslogtreecommitdiffstats
path: root/app/views/layouts/mailer.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-06 07:32:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-06 07:32:40 +0000
commit391140d280dc636794748d341d9c676ea61cd217 (patch)
tree1be75b604626abdd63b0e89e821c409f74052098 /app/views/layouts/mailer.html.erb
parent03c87f3db142b8a085f141b48f6d082a672624e2 (diff)
downloadredmine-391140d280dc636794748d341d9c676ea61cd217.tar.gz
redmine-391140d280dc636794748d341d9c676ea61cd217.zip
Set a max width to html email content (#16535).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14300 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/layouts/mailer.html.erb')
-rw-r--r--app/views/layouts/mailer.html.erb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index 46003e69d..003aec859 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -5,6 +5,8 @@ body {
font-family: Verdana, sans-serif;
font-size: 0.8em;
color:#484848;
+ background: #f6f6f6;
+ padding: 0.5em;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
@@ -16,6 +18,7 @@ fieldset.attachments {border-width: 1px 0 0 0;}
hr {
width: 100%;
height: 1px;
+ margin: 1em 0;
background: #ccc;
border: 0;
}
@@ -23,9 +26,28 @@ span.footer {
font-size: 0.8em;
font-style: italic;
}
+#content {
+ max-width: 60em;
+ margin: 0 auto;
+ padding: 1em;
+ border: 1px solid #e4e4e4;
+ border-radius: 4px;
+ background: #fff;
+}
+.description, .note {
+ margin: 2em 0;
+ color: #484848;
+}
+.author {
+ background: #f6f6f6;
+ border-radius: 3px;
+ padding: 3px;
+ margin: 0;
+}
</style>
</head>
<body>
+<div id="content">
<% if Setting.emails_header.present? -%>
<span class="header"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_header).html_safe %></span>
<% end -%>
@@ -34,5 +56,6 @@ span.footer {
<% if Setting.emails_footer.present? -%>
<span class="footer"><%= Redmine::WikiFormatting.to_html(Setting.text_formatting, Setting.emails_footer).html_safe %></span>
<% end -%>
+</div>
</body>
</html>