Normalize HTML email font sizes

Adjust the font-size monospace text in HTML emails to be more consistent
across email clients (gMail, Inbox, Mail.app, mobile). Also make the
font-size in the change footer smaller.

Change-Id: I020a4fed4aaf8920e98f439df8d7bb39003fee48
This commit is contained in:
Wyatt Allen
2016-10-17 17:05:24 -07:00
parent 2223cb7c52
commit 02279866b9
11 changed files with 18 additions and 16 deletions

View File

@@ -39,6 +39,6 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
{/template}

View File

@@ -28,6 +28,7 @@
{template .ChangeFooterHtml autoescape="strict" kind="html"}
{let $footerStyle kind="css"}
color: #555;
font-size: 10px;
margin: 10px 0 0 0;
{/let}

View File

@@ -22,6 +22,7 @@
{template .CommentFooterHtml autoescape="strict" kind="html"}
{let $footerStyle kind="css"}
color: #555;
font-size: 10px;
margin: 0;
{/let}

View File

@@ -58,7 +58,7 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
<ul style="{$ulStyle}">
@@ -86,14 +86,14 @@
Patch Set #{$group.patchSetId}, Line {$comment.startLine}:{sp}
{/if}
{if length($comment.lines) == 1}
<code>{$comment.lines[0]}</code>
<code style="font-size:12px">{$comment.lines[0]}</code>
{/if}
</p>
{if length($comment.lines) > 1}
<p>
<blockquote style="{$blockquoteStyle}">
<pre>
<pre style="font-size:12px">
{foreach $line in $comment.lines}
{$line}{\n}
{/foreach}

View File

@@ -44,6 +44,6 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
{/template}

View File

@@ -39,6 +39,6 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
{/template}

View File

@@ -37,16 +37,16 @@
</p>
<hr/>
<pre>
<pre style="font-size:12px">
{$email.changeDetail}
</pre>
<pre>
<pre style="font-size:12px">
{$email.approvals}
</pre>
{if $email.includeDiff}
<pre>
<pre style="font-size:12px">
{$email.unifiedDiff}
</pre>
{/if}

View File

@@ -59,19 +59,19 @@
</p>
<hr/>
<pre>
<pre style="font-size:12px">
{$email.changeDetail}
</pre>
{if $email.sshHost}
<pre>
<pre style="font-size:12px">
git pull ssh:{print '//'}{$email.sshHost}/{$projectName}
{sp}{$patchSet.refName}
</pre>
{/if}
{if $email.includeDiff}
<pre>
<pre style="font-size:12px">
{$email.unifiedDiff}
</pre>
{/if}

View File

@@ -59,12 +59,12 @@
</p>
<hr/>
<pre>
<pre style="font-size:12px">
{$email.changeDetail}
</pre>
{if $email.sshHost}
<pre>
<pre style="font-size:12px">
git pull ssh:{print '//'}{$email.sshHost}/{$projectName}{sp}
{$patchSet.refName}
</pre>

View File

@@ -39,6 +39,6 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
{/template}

View File

@@ -39,6 +39,6 @@
<hr/>
{if $coverLetter}
<pre>{$coverLetter}</pre>
<pre style="font-size:12px">{$coverLetter}</pre>
{/if}
{/template}