From 2cb734cd49629557fd35dc318ab07ce8f966b5fe Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sun, 26 Oct 2014 22:55:35 -0700 Subject: [PATCH] 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). --- app/config/styles.json | 11 +++++------ app/templates/shared/digest.html | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/config/styles.json b/app/config/styles.json index d5efbf3..10f200b 100644 --- a/app/config/styles.json +++ b/app/config/styles.json @@ -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" } } diff --git a/app/templates/shared/digest.html b/app/templates/shared/digest.html index 1694922..0bd6f3e 100644 --- a/app/templates/shared/digest.html +++ b/app/templates/shared/digest.html @@ -2,7 +2,7 @@
-

+

GitHub activity time machine for {{.Header}} +

{{.Header}}

-

{{.Description}}

+

{{.Description}}

{{range .RepoDigests}} -

+

{{.Repo.FullName}}

@@ -38,13 +38,13 @@

{{.Title}}

{{if .Message}} -
{{.Message}}
+
{{.Message}}
{{end}}
{{.DisplaySHA}} {{if $interval.Weekly}}{{.WeeklyDisplayDate}}{{else}}{{.DisplayDate}}{{end}} + style="{{style "proportional" "commit.footer.date"}}">{{if $interval.Weekly}}{{.WeeklyDisplayDate}}{{else}}{{.DisplayDate}}{{end}}