From 966ee629775635a31c69fb21cdd55e103653e480 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 28 Feb 2021 12:06:27 -0700 Subject: layout, css cleanup --- screenshots/admin.png | Bin 186972 -> 188580 bytes templates/admin-edit.html | 2 +- templates/layout.html | 86 +++------------------------------------------- templates/list.html | 2 +- 4 files changed, 7 insertions(+), 83 deletions(-) diff --git a/screenshots/admin.png b/screenshots/admin.png index 7085005..4a56a05 100644 Binary files a/screenshots/admin.png and b/screenshots/admin.png differ diff --git a/templates/admin-edit.html b/templates/admin-edit.html index 58d93f5..8455e25 100644 --- a/templates/admin-edit.html +++ b/templates/admin-edit.html @@ -57,7 +57,7 @@ {{ if $paper.Meta.Title }} - author: {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }} yr: {{ $paper.Meta.PubYear }} doi: {{ $paper.Meta.DOI }} journal: {{ $paper.Meta.Journal }} + {{ $paper.Meta.PubYear }} - {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }} - {{ $paper.Meta.DOI }} - {{ $paper.Meta.Journal }} {{ else }} {{ end }} diff --git a/templates/layout.html b/templates/layout.html index 7a784b5..a239bf7 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -19,9 +19,10 @@ div#crane { font-family: monospace; padding: 0em; - margin: 0em; background: white; padding: 4px; + max-width: 55em; + margin: auto; } div#crane a { @@ -155,10 +156,6 @@ div#crane table.list { border-collapse: collapse; } -div#crane table.list tr { - background: white; -} - div#crane table.list:first-child tr:first-child td:first-child { padding-top: 0em; } @@ -168,16 +165,6 @@ div#crane table.list td.sub { font-size: 80%; } -div#crane table.list th { - font-weight: bold; - /* color: #888; - border-top: dashed 1px #888; - border-bottom: dashed 1px #888; - */ - padding: 0.1em 0.5em 0.05em 0.5em; - vertical-align: baseline; -} - div#crane table.list td { border: none; padding: 0.1em 0.5em 0.1em 0.5em; @@ -185,50 +172,14 @@ div#crane table.list td { div#crane table.list td.title { text-decoration: underline; -} - -div#crane table.list td.authors { - max-width: 10em; -} - -div#crane table.list td.year { - max-width: 5em; -} - -div#crane table.list td.doi { - max-width: 5em; -} - -div#crane table.list td a { - color: black; + padding-top: 0.5em; + padding-left: 1.5em; } div#crane table.list td a:hover { color: #00f; } -div#crane img { - border: none; -} - -div#crane td#content { - vertical-align: top; - padding: 1em 2em 1em 1em; - border: none; -} - -div#crane table.nowrap td { - white-space: normal; -} - -div#crane .left { - text-align: left; -} - -div#crane .right { - text-align: right; -} - div#crane table.list td.papersection { font-weight: bold; padding-top: 1em; @@ -236,9 +187,6 @@ div#crane table.list td.papersection { color: black; } -div#crane table.list td.sublevel-paper { -} - div#crane div.footer { margin-top: 0.5em; text-align: center; @@ -254,30 +202,6 @@ div#crane div.footer a { div#crane div.footer a:hover { text-decoration: underline; } - -* { line-height: 1.25em; } - -div#crane { - max-width: 55em; - margin: auto; - -moz-tab-size: 4; - tab-size: 4; -} - -div#crane table.list th a { - color: inherit; -} - -div#crane table.list tr.nohover-highlight:hover:nth-child(even) { - background: inherit; -} - -div#crane table.blob td.linenumbers a:target { - color: goldenrod; - text-decoration: underline; - outline: none; -} - @@ -285,7 +209,7 @@ div#crane table.blob td.linenumbers a:target {
- + {{ block "content" . }}{{ end }} diff --git a/templates/list.html b/templates/list.html index 718a732..1a482d1 100644 --- a/templates/list.html +++ b/templates/list.html @@ -16,7 +16,7 @@ {{ if $paper.Meta.Title }} - author: {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }} yr: {{ $paper.Meta.PubYear }} doi: {{ $paper.Meta.DOI }} journal: {{ $paper.Meta.Journal }} + {{ $paper.Meta.PubYear }} - {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }} - {{ $paper.Meta.DOI }} - {{ $paper.Meta.Journal }} {{ else }} {{ end }} -- cgit v1.2.3-54-g00ecf