From 0ee58619c74a8ab086a8ebc9b74bb21de2df25a1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 Nov 2016 17:01:44 -0500 Subject: diff: better styling --- diff.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/diff.go b/diff.go index 25dee8b..4a8a559 100644 --- a/diff.go +++ b/diff.go @@ -118,10 +118,17 @@ var tmpl = template.Must(template.New("2html"). .diff-add, .diff-add a { color: green; } .diff-dat, .diff-dat a { color: blue; } .diff-ctx, .diff-ctx a { color: black; } - tr:hover td { + tr:hover a { background-color: #AAAAF3; } - a { text-decoration: none; } + td a { + text-decoration: none; + padding: 0.1em 0.25em; + display: block; + width: 100%; + height: 100%; + color: black; + } @@ -133,7 +140,7 @@ var tmpl = template.Must(template.New("2html"). @@ -1,{{len .certsTLS}} +1,{{len .certsCrtSh}} @@ {{define "Row"}} - {{.pfix}} + {{if eq .pfix " "}} {{else}}{{.pfix}}{{end}} {{.cert.Subject.CommonName}} {{.cert.NotBefore.Local.Format "2006-01-02 15:04:05"}} {{.cert.NotAfter.Local.Format "2006-01-02 15:04:05"}} -- cgit v1.2.3-2-g168b