diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-19 17:01:44 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-19 17:01:44 -0500 |
commit | 0ee58619c74a8ab086a8ebc9b74bb21de2df25a1 (patch) | |
tree | c704d3da2f4816d4df820e83ab9b8800e1acf127 /diff.go | |
parent | 3ab1f11f356d83e3c89298e6a786987a08c029b6 (diff) |
diff: better styling
Diffstat (limited to 'diff.go')
-rw-r--r-- | diff.go | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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; + } </style> <script src="sorttable.js"></script> <base target="_parent" /> @@ -133,7 +140,7 @@ var tmpl = template.Must(template.New("2html"). <tr class="diff-dat"><td colspan=4>@@ -1,{{len .certsTLS}} +1,{{len .certsCrtSh}} @@</td></tr> {{define "Row"}} <tr class={{.pfix | class}}> - <td><a href="{{.cert | link}}">{{.pfix}}</a></td> + <td><a href="{{.cert | link}}">{{if eq .pfix " "}} {{else}}{{.pfix}}{{end}}</a></td> <td><a href="{{.cert | link}}">{{.cert.Subject.CommonName}}</a></td> <td><a href="{{.cert | link}}">{{.cert.NotBefore.Local.Format "2006-01-02 15:04:05"}}</a></td> <td><a href="{{.cert | link}}">{{.cert.NotAfter.Local.Format "2006-01-02 15:04:05"}}</a></td> |