From 24c28876afd57222e78c6b1d5d46d0db14fa6516 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 28 Sep 2020 21:08:42 -0700 Subject: [PATCH] Cleans up status display --- bookwyrm/static/css/format.css | 29 ++++++++++ bookwyrm/templates/feed.html | 4 +- bookwyrm/templates/snippets/avatar.html | 2 +- bookwyrm/templates/snippets/book_cover.html | 2 +- bookwyrm/templates/snippets/covers_shelf.html | 58 +++++-------------- bookwyrm/templates/snippets/interaction.html | 6 -- bookwyrm/templates/snippets/shelf.html | 2 +- .../templates/snippets/shelve_button.html | 6 +- bookwyrm/templates/snippets/status.html | 11 +++- .../templates/snippets/status_header.html | 8 +-- 10 files changed, 63 insertions(+), 65 deletions(-) diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index 617d93916..d78c294bd 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -53,3 +53,32 @@ input.toggle-control:checked ~ .toggle-content { .rate-stars form:hover ~ form .icon:before{ content: '\e9d7'; } + + +/* --- BOOK COVERS --- */ +.book-cover { + width: 10em; + height: auto; +} +.no-cover { + position: relative; +} +.no-cover div { + position: absolute; + padding: 1em; + color: white; + top: 0; + left: 0; + text-align: center; +} +.no-cover .title { + text-transform: uppercase; + margin-bottom: 1em; +} + + +/* --- AVATAR --- */ +.avatar { + vertical-align: middle; + display: inline; +} diff --git a/bookwyrm/templates/feed.html b/bookwyrm/templates/feed.html index 2afef2f31..304d7b181 100644 --- a/bookwyrm/templates/feed.html +++ b/bookwyrm/templates/feed.html @@ -2,8 +2,8 @@ {% load fr_display %} {% block content %} -
-
+
+
{% for activity in activities %}
{% include 'snippets/status.html' with status=activity %} diff --git a/bookwyrm/templates/snippets/avatar.html b/bookwyrm/templates/snippets/avatar.html index d696e77db..ab621777f 100644 --- a/bookwyrm/templates/snippets/avatar.html +++ b/bookwyrm/templates/snippets/avatar.html @@ -1,2 +1,2 @@ - + diff --git a/bookwyrm/templates/snippets/book_cover.html b/bookwyrm/templates/snippets/book_cover.html index 4a76dde4b..7a22c1b21 100644 --- a/bookwyrm/templates/snippets/book_cover.html +++ b/bookwyrm/templates/snippets/book_cover.html @@ -5,7 +5,7 @@
No cover
-

{{ book.title }}

+

{{ book.title }}

({{ book|edition_info }})

diff --git a/bookwyrm/templates/snippets/covers_shelf.html b/bookwyrm/templates/snippets/covers_shelf.html index c0b1d6509..7e38f9e62 100644 --- a/bookwyrm/templates/snippets/covers_shelf.html +++ b/bookwyrm/templates/snippets/covers_shelf.html @@ -1,49 +1,23 @@ {% load fr_display %} -
- {% for shelf in shelves %} - {% if shelf.books %} -
-

{{ shelf.name }} - {% if shelf.size > shelf.books|length %} - (See all {{ shelf.size }}) - {% endif %} -

-
- {% for book in shelf.books %} -
- - {% include 'snippets/shelve_button.html' with book=book hide_pulldown=True %} -
- {% endfor %} -
-
- {% endif %} - {% endfor %} -
- {% for shelf in shelves %} - {% for book in shelf.books %} -