diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index 617d9391..d78c294b 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 2afef2f3..304d7b18 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 d696e77d..ab621777 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 4a76dde4..7a22c1b2 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 c0b1d650..7e38f9e6 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 %} -