Merge branch 'develop' of github.com:martini/zammad into develop

This commit is contained in:
Martin Edenhofer 2016-05-12 16:54:43 +02:00
commit 85a8d5fe02
2 changed files with 88 additions and 44 deletions

View file

@ -4430,12 +4430,6 @@ footer {
p { p {
margin: 0; margin: 0;
} }
blockquote,
pre {
margin: 0px;
padding: 8px 12px 8px 12px;
}
} }
.ticket-article-item.state--folde-out .textBubble { .ticket-article-item.state--folde-out .textBubble {
@ -5278,7 +5272,7 @@ footer {
} }
& > .box { & > .box {
flex: 1; width: calc(50% - 47px);
margin: 34px; margin: 34px;
} }
@ -5288,6 +5282,7 @@ footer {
} }
.boxFade { .boxFade {
width: 94px;
top: 34px; top: 34px;
height: 100%; height: 100%;
position: absolute; position: absolute;
@ -8125,10 +8120,17 @@ output {
} }
.richtext-content { .richtext-content {
p, table, pre { p,
table,
pre,
blockquote {
margin-bottom: 16px; margin-bottom: 16px;
}
& > p,
& > table,
& > pre,
& > blockquote {
&:first-child { &:first-child {
margin-top: 6px; margin-top: 6px;
} }
@ -8165,6 +8167,11 @@ output {
} }
} }
blockquote {
padding: 8px 12px;
border-left: 5px solid #eee;
}
code { code {
border: none; border: none;
background: hsl(0,0%,97%); background: hsl(0,0%,97%);
@ -8172,7 +8179,7 @@ output {
} }
pre { pre {
padding: 15px; padding: 12px 15px;
font-size: 13px; font-size: 13px;
line-height: 1.45; line-height: 1.45;
background: hsl(0,0%,97%); background: hsl(0,0%,97%);

View file

@ -115,7 +115,7 @@ module Channel::EmailBuild
content_disposition: attachment.preferences['Content-Disposition'] || 'attachment', content_disposition: attachment.preferences['Content-Disposition'] || 'attachment',
content_type: attachment.preferences['Content-Type'], content_type: attachment.preferences['Content-Type'],
mime_type: attachment.preferences['Mime-Type'], mime_type: attachment.preferences['Mime-Type'],
content: attachment.content, content: attachment.content
} }
end end
end end
@ -146,39 +146,76 @@ Check if string is a complete html document. If not, add head and css styles.
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css"> <style type="text/css">
body { body {
width:90% !important; width: 90% !important;
-webkit-text-size-adjust:90%; -webkit-text-size-adjust: 90%;
-ms-text-size-adjust:90%; -ms-text-size-adjust: 90%;
#{css}; #{css};
} }
img { img {
outline:none; text-decoration:none; -ms-interpolation-mode: bicubic; outline: none;
} text-decoration: none;
a img { -ms-interpolation-mode: bicubic;
border:none; }
} a img {
table td { border: none;
border-collapse: collapse; }
} table td {
table { border-collapse: collapse;
border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
} table {
p, table, div, td { border-collapse: collapse;
max-width: 600px; mso-table-lspace: 0pt;
} mso-table-rspace: 0pt;
p { border: none;
margin: 0; table-layout: auto;
} display: block;
blockquote { width: 100%;
border-left: 2px solid blue; overflow: auto;
margin: 0px; word-break: keep-all;
padding: 8px 12px 8px 12px; }
} p, table, div, td {
pre { max-width: 600px;
margin: 0px; }
padding: 8px 12px 8px 12px; p,
} table,
pre,
blockquote {
margin: 0 0 16px;
}
td, th {
padding: 7px 12px;
border: 1px solid hsl(0,0%,87%);
}
th {
font-weight: bold;
text-align: center;
}
tbody tr:nth-child(even) {
background: hsl(0,0%,97%);
}
col {
width: auto;
}
code {
border: none;
background: hsl(0,0%,97%);
white-space: normal;
}
blockquote {
padding: 8px 12px;
border-left: 5px solid #eee;
}
pre {
padding: 12px 15px;
font-size: 13px;
line-height: 1.45;
background: hsl(0,0%,97%);
white-space: pre-wrap;
border-radius: 3px;
border: none;
overflow: auto;
}
</style> </style>
<head> <head>
<body style="#{css}">#{html}</body> <body style="#{css}">#{html}</body>