summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-08 07:23:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-08 07:23:50 +0000
commit690b1e9cb7a038d3d9011ba49be40ecceeceeae5 (patch)
tree0c73d235a1cf83df82d58c8dc9b0c5734811d848
parent731a2e3e0593f874e877e6493420cd8e64a29ffc (diff)
downloadredmine-690b1e9cb7a038d3d9011ba49be40ecceeceeae5.tar.gz
redmine-690b1e9cb7a038d3d9011ba49be40ecceeceeae5.zip
Add styles for pre in email notifications (#22693).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@15395 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/layouts/mailer.html.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index f2cf45bb8..0e6d24df9 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -27,6 +27,17 @@ span.footer {
}
blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 1.2em;}
blockquote blockquote { margin-left: 0;}
+pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
+pre {
+ margin: 1em 1em 1em 1.6em;
+ padding: 8px;
+ background-color: #fafafa;
+ border: 1px solid #e2e2e2;
+ border-radius: 3px;
+ width:auto;
+ overflow-x: auto;
+ overflow-y: hidden;
+}
</style>
</head>
<body>