From 3dc43aa81c59ac26b81a2df1f403dcab4c91be74 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 29 Sep 2020 13:11:52 -0700 Subject: [PATCH] Book and editions page styles --- bookwyrm/static/css/format.css | 7 +++-- bookwyrm/templates/book.html | 10 ++++--- bookwyrm/templates/editions.html | 31 ++++++++++++++------- bookwyrm/templates/feed.html | 2 +- bookwyrm/templates/snippets/book_cover.html | 16 +++++++---- bookwyrm/templates/snippets/status.html | 2 +- 6 files changed, 44 insertions(+), 24 deletions(-) diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index b0e9ec2b..ab124038 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -79,9 +79,12 @@ input.toggle-control:checked ~ .toggle-content { /* --- BOOK COVERS --- */ +.cover-container { + height: 250px; +} .book-cover { - width: 10em; - height: auto; + height: 100% + object-fit: scale-down; } .no-cover { position: relative; diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index caa4167d..dc0500de 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -87,10 +87,12 @@ {% endif %} -{% for review in reviews %} -
- {% include 'snippets/status.html' with status=review hide_book=True depth=1 %} +
+ {% for review in reviews %} +
+ {% include 'snippets/status.html' with status=review hide_book=True depth=1 %} +
+ {% endfor %}
-{% endfor %} {% endblock %} diff --git a/bookwyrm/templates/editions.html b/bookwyrm/templates/editions.html index 535e651e..40881a48 100644 --- a/bookwyrm/templates/editions.html +++ b/bookwyrm/templates/editions.html @@ -1,18 +1,29 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -
-

Editions of "{{ work.title }}"

-
    +
    +

    Editions of "{{ work.title }}"

    + + +
    +
    +
    {% for book in editions %} -
  1. - - {% include 'snippets/book_cover.html' with book=book %} - - {% include 'snippets/shelve_button.html' with book=book %} -
  2. + {% if forloop.counter0|divisibleby:"5" %} +
    +
    + {% endif %} +
    + +
    {% endfor %} -
+
+
{% endblock %} diff --git a/bookwyrm/templates/feed.html b/bookwyrm/templates/feed.html index 78832695..5c15c4f8 100644 --- a/bookwyrm/templates/feed.html +++ b/bookwyrm/templates/feed.html @@ -9,7 +9,7 @@ {% endfor %} -