diff options
author | Jordan <me@jordan.im> | 2021-02-28 12:06:27 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-02-28 12:06:27 -0700 |
commit | 966ee629775635a31c69fb21cdd55e103653e480 (patch) | |
tree | ddb9550b49aa56e7f8ec9b04e7b649851b36fd2c | |
parent | c0d64dcf2d9364214d843dd95d690fb8cbb5eb6d (diff) | |
download | crane-966ee629775635a31c69fb21cdd55e103653e480.tar.gz crane-966ee629775635a31c69fb21cdd55e103653e480.zip |
layout, css cleanup
-rw-r--r-- | screenshots/admin.png | bin | 186972 -> 188580 bytes | |||
-rw-r--r-- | templates/admin-edit.html | 2 | ||||
-rw-r--r-- | templates/layout.html | 86 | ||||
-rw-r--r-- | templates/list.html | 2 |
4 files changed, 7 insertions, 83 deletions
diff --git a/screenshots/admin.png b/screenshots/admin.png Binary files differindex 7085005..4a56a05 100644 --- a/screenshots/admin.png +++ b/screenshots/admin.png 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 @@ </tr> <tr> {{ if $paper.Meta.Title }} - <td class="sub">author: {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}<a href='/?a={{ $author.LastName }}'>{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }}</a> yr: <a href="?y={{ $paper.Meta.PubYear }}">{{ $paper.Meta.PubYear }}</a> doi: <a href="https://doi.org/{{ $paper.Meta.DOI }}">{{ $paper.Meta.DOI }}</a> journal: <font color="black">{{ $paper.Meta.Journal }}</font></td> + <td class="sub">{{ $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 }} - <a href="https://doi.org/{{ $paper.Meta.DOI }}">{{ $paper.Meta.DOI }}</a> - {{ $paper.Meta.Journal }}</td> {{ else }} <td></td> {{ 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; -} - </style> </head> <body> @@ -285,7 +209,7 @@ div#crane table.blob td.linenumbers a:target { <div id='crane'> <table id='header'> <tr><td class='main'><a href="/">Crane</a></td></tr> - <tr><td class='sub'>Research literature archival and categorization</td></tr> + <tr><td class='sub'>Research literature download and organization</td></tr> </table> {{ block "content" . }}{{ end }} <div class='footer'><a href='https://git.jordan.im/crane'>crane</a></div> 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 @@ </tr> <tr> {{ if $paper.Meta.Title }} - <td class="sub">author: {{ $contCount := len $paper.Meta.Contributors }} {{ if gt $contCount 0 }}{{ $author := index $paper.Meta.Contributors 0 }}<a href='/?a={{ $author.LastName }}'>{{ $author.LastName }}{{ if gt $contCount 1 }} et al.{{ end }}{{ end }}</a> yr: <a href="?y={{ $paper.Meta.PubYear }}">{{ $paper.Meta.PubYear }}</a> doi: <a href="https://doi.org/{{ $paper.Meta.DOI }}">{{ $paper.Meta.DOI }}</a> journal: <font color="black">{{ $paper.Meta.Journal }}</font></td> + <td class="sub">{{ $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 }} - <a href="https://doi.org/{{ $paper.Meta.DOI }}">{{ $paper.Meta.DOI }}</a> - {{ $paper.Meta.Journal }}</td> {{ else }} <td></td> {{ end }} |