Digest styling improvements.

This commit is contained in:
Mihai Parparita 2014-10-26 22:31:07 -07:00
parent 816ea1d94a
commit 1f31fe8cca
3 changed files with 18 additions and 11 deletions

View file

@ -3,13 +3,16 @@
"font-family": "Helvetica, Arial, sans-serif", "font-family": "Helvetica, Arial, sans-serif",
"font-size": "10pt", "font-size": "10pt",
"color": "#000", "color": "#000",
"max-width": "1104px", "max-width": "1102px",
"margin": "0" "margin": "0"
}, },
"link": { "link": {
"text-decoration": "none", "text-decoration": "none",
"color": "#e73b31" "color": "#e73b31"
}, },
"monospace": {
"font-family": "Consolas,\"Liberation Mono\",Menlo,Courier,monospace"
},
"intro-paragraph": { "intro-paragraph": {
"font-size": "12pt", "font-size": "12pt",
"user-link": { "user-link": {
@ -22,15 +25,18 @@
} }
}, },
"interval-header": { "interval-header": {
"font-size": "24pt", "font-size": "20pt",
"font-weight": "bold", "font-weight": "bold",
"margin": ".75em 0 .5em 0", "margin": ".75em 0 .5em 0",
"border-bottom": "solid 1px #ddd" "border-bottom": "dashed 1px #ccc"
}, },
"repository-header": { "repository-header": {
"font-size": "18pt", "font-size": "16pt",
"font-weight": "bold", "font-weight": "bold",
"margin": ".5em 0" "margin": ".5em 0",
"link": {
"color": "#b52e26"
}
}, },
"commit": { "commit": {
"background": "#fefcef", "background": "#fefcef",

View file

@ -44,12 +44,13 @@ a {
.body { .body {
padding: 10px; padding: 10px;
max-width: 1104px; max-width: 1102px;
margin: 0 auto; margin: 0 auto;
} }
.body h1 { .body h1 {
margin-top: 0; margin-top: 0;
color: #756344;
} }
#sign-in-form { #sign-in-form {
@ -135,7 +136,7 @@ a {
} }
#delete-account-form { #delete-account-form {
border-top: solid 1px #ccc; border-top: dashed 1px #ccc;
margin-top: 1em; margin-top: 1em;
padding-top: 1em; padding-top: 1em;
} }

View file

@ -17,13 +17,13 @@
{{range .IntervalDigests }} {{range .IntervalDigests }}
{{$interval := .}} {{$interval := .}}
<h1 style="{{style "interval-header"}}">{{.Header}}</h1> <h1 style="{{style "monospace" "interval-header"}}">{{.Header}}</h1>
<p>{{.Description}}</p> <p>{{.Description}}</p>
{{range .RepoDigests}} {{range .RepoDigests}}
<h2 style="{{style "repository-header"}}"> <h2 style="{{style "monospace" "repository-header"}}">
<a href="{{.Repo.HTMLURL}}" style="{{style "link"}}">{{.Repo.FullName}}</a> <a href="{{.Repo.HTMLURL}}" style="{{style "link" "repository-header.link"}}">{{.Repo.FullName}}</a>
</h2> </h2>
<div> <div>
@ -38,7 +38,7 @@
<div style="{{style "commit"}}"> <div style="{{style "commit"}}">
<h3 style="{{style "commit.title"}}">{{.Title}}</h3> <h3 style="{{style "commit.title"}}">{{.Title}}</h3>
{{if .Message}} {{if .Message}}
<pre style="{{style "commit.message"}}">{{.Message}}</pre> <pre style="{{style "monospace" "commit.message"}}">{{.Message}}</pre>
{{end}} {{end}}
<div style="{{style "commit.footer"}}"> <div style="{{style "commit.footer"}}">
<a href="{{.URL}}" <a href="{{.URL}}"