mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Reduce the size of the digest email HTML.
Make monospace be the default font, and only override it in the few places where we don't want it (as opposed to repeating it for every commit).
This commit is contained in:
parent
400c057deb
commit
2cb734cd49
2 changed files with 11 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"digest": {
|
||||
"font-family": "Helvetica, Arial, sans-serif",
|
||||
"font-family": "Consolas,\"Liberation Mono\",Menlo,Courier,monospace",
|
||||
"font-size": "10pt",
|
||||
"color": "#000",
|
||||
"max-width": "1102px",
|
||||
|
|
@ -10,8 +10,8 @@
|
|||
"text-decoration": "none",
|
||||
"color": "#e73b31"
|
||||
},
|
||||
"monospace": {
|
||||
"font-family": "Consolas,\"Liberation Mono\",Menlo,Courier,monospace"
|
||||
"proportional": {
|
||||
"font-family": "Helvetica,Arial,sans-serif"
|
||||
},
|
||||
"intro-paragraph": {
|
||||
"font-size": "12pt",
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"commit": {
|
||||
"background": "#fefcef",
|
||||
"border": "solid 1px #dddac8",
|
||||
"box-shadow": "1px 1px 2px rgba(0, 0, 0, 0.11)",
|
||||
"box-shadow": "1px 1px 2px rgba(0,0,0,.11)",
|
||||
"container": {
|
||||
"margin": "1em 0"
|
||||
},
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
"height": "0",
|
||||
"border": "solid",
|
||||
"border-width": "0 0 20px 10px",
|
||||
"border-color": "transparent transparent #dddac8 white"
|
||||
"border-color": "transparent transparent #dddac8 #fff"
|
||||
},
|
||||
"border": {
|
||||
"margin": "1px 0 0 1px",
|
||||
|
|
@ -83,7 +83,6 @@
|
|||
"color": "#666"
|
||||
},
|
||||
"link": {
|
||||
"font-family": "monospace",
|
||||
"float": "right"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<div style="{{style "digest"}}">
|
||||
|
||||
<p style="{{style "intro-paragraph"}}">
|
||||
<p style="{{style "proportional" "intro-paragraph"}}">
|
||||
GitHub activity time machine for
|
||||
<a href="https://github.com/{{.User.Login}}"
|
||||
title="{{.User.Name}}"
|
||||
|
|
@ -17,12 +17,12 @@
|
|||
|
||||
{{range .IntervalDigests }}
|
||||
{{$interval := .}}
|
||||
<h1 style="{{style "monospace" "interval-header"}}">{{.Header}}</h1>
|
||||
<h1 style="{{style "interval-header"}}">{{.Header}}</h1>
|
||||
|
||||
<p>{{.Description}}</p>
|
||||
<p style="{{style "proportional"}}">{{.Description}}</p>
|
||||
|
||||
{{range .RepoDigests}}
|
||||
<h2 style="{{style "monospace" "repository-header"}}">
|
||||
<h2 style="{{style "repository-header"}}">
|
||||
<a href="{{.Repo.HTMLURL}}" style="{{style "link" "repository-header.link"}}">{{.Repo.FullName}}</a>
|
||||
</h2>
|
||||
|
||||
|
|
@ -38,13 +38,13 @@
|
|||
<div style="{{style "commit"}}">
|
||||
<h3 style="{{style "commit.title"}}">{{.Title}}</h3>
|
||||
{{if .Message}}
|
||||
<pre style="{{style "monospace" "commit.message"}}">{{.Message}}</pre>
|
||||
<pre style="{{style "commit.message"}}">{{.Message}}</pre>
|
||||
{{end}}
|
||||
<div style="{{style "commit.footer"}}">
|
||||
<a href="{{.URL}}"
|
||||
style="{{style "link" "commit.footer.link"}}">{{.DisplaySHA}}</a>
|
||||
<i title={{.DisplayDateTooltip}}
|
||||
style="{{style "commit.footer.date"}}">{{if $interval.Weekly}}{{.WeeklyDisplayDate}}{{else}}{{.DisplayDate}}{{end}}</i>
|
||||
style="{{style "proportional" "commit.footer.date"}}">{{if $interval.Weekly}}{{.WeeklyDisplayDate}}{{else}}{{.DisplayDate}}{{end}}</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue