aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-11-04 00:31:18 -0700
committerJordan <me@jordan.im>2021-11-04 00:31:18 -0700
commit9e4eb63a6a90cdeba92c88e72a559024e1774e23 (patch)
tree6d2fe9a89d20407407a56d59818ad01b74729397
parenteaca76acf4b013d744088adf94b28c8df57a14c1 (diff)
downloadcrane-9e4eb63a6a90cdeba92c88e72a559024e1774e23.tar.gz
crane-9e4eb63a6a90cdeba92c88e72a559024e1774e23.zip
styling: between-paper breaks, bullets
-rw-r--r--templates/admin-edit.html7
-rw-r--r--templates/layout.html21
-rw-r--r--templates/list.html8
3 files changed, 20 insertions, 16 deletions
diff --git a/templates/admin-edit.html b/templates/admin-edit.html
index f28518b..5bd4fa1 100644
--- a/templates/admin-edit.html
+++ b/templates/admin-edit.html
@@ -51,7 +51,8 @@
<label for="{{ $category }}"><span class='papersection' id='{{ $category }}'>{{ $category }}</span></label>
</div>
{{ range $path, $paper := $papers }}
- <div class="paper">
+ <ul>
+ <li>
{{ if $paper.Meta.Title }}
<span class="title"><input type="checkbox" id="{{ $path }}" name="paper" value="{{ $path }}"> <a href='/download/{{ $path }}' title='{{ $paper.Meta.Title }}'>{{ $paper.Meta.Title }}</a></input></span><br>
{{ else }}
@@ -72,8 +73,10 @@
{{ if $paper.Meta.Journal }}{{ if $hasVal }}- {{ end }}<span class="journal">{{ $paper.Meta.Journal }}</span>{{ end }}
- </div>
+ </li>
+ </ul>
{{ end }}
+ <hr>
{{ end }}
{{ end }}
</form></div>
diff --git a/templates/layout.html b/templates/layout.html
index e70c260..02549bd 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -32,6 +32,12 @@ div#crane {
border-radius: 2px;
}
+div#crane ul {
+ list-style: square;
+ padding-left: 1.5em;
+ padding-right: .5em;
+}
+
div#crane a {
color: #000;
text-decoration: none;
@@ -145,8 +151,6 @@ div#crane table.tabs td.form form {
div#crane div.content {
margin-top: 1em;
- padding-bottom: 1em;
- border-bottom: solid 2px #ccc;
}
div#crane div.cat {
@@ -175,13 +179,6 @@ div#crane div.content div.action {
padding-bottom: 1em;
}
-div#crane div.list div.paper {
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- padding-left: 10px;
- padding-right: 10px;
-}
-
div#crane div.list span.authors {
font-size: 80%;
color: #900;
@@ -215,15 +212,17 @@ div#crane div.list span.title a {
div#crane div.list div.papersection {
font-weight: bold;
padding-top: 0.5em;
- padding-bottom: 0.5em;
color: black;
}
+div#crane hr {
+ border: solid 1px #ccc;
+}
+
div#crane div.footer {
margin-top: 0.5em;
text-align: center;
font-size: 80%;
- color: #ccc;
}
div#crane div.footer a {
diff --git a/templates/list.html b/templates/list.html
index aa857ee..52e7bb9 100644
--- a/templates/list.html
+++ b/templates/list.html
@@ -7,7 +7,8 @@
<span class='papersection' id='{{ $category }}'>{{ $category }}</span>
</div>
{{ range $path, $paper := $papers }}
- <div class="paper">
+ <ul>
+ <li>
{{ if $paper.Meta.Title }}
<span class="title"><a href='/download/{{ $path }}' title='{{ $paper.Meta.Title }}'>{{ $paper.Meta.Title }}</a></span><br>
{{ else }}
@@ -27,9 +28,10 @@
{{ else if $paper.Meta.Resource }}{{ if $hasVal }}- {{ end }}<span class="doi"><a href="{{ $paper.Meta.Resource }}">{{ $paper.Meta.Resource }}</a></span>{{ end }}
{{ if $paper.Meta.Journal }}{{ if $hasVal }}- {{ end }}<span class="journal">{{ $paper.Meta.Journal }}</span>{{ end }}
-
- </div>
+ </li>
+ </ul>
{{ end }}
+ <hr>
{{ end }}
{{ end }}
</div>