From 0bea615b8226600fc9cab079dffd8fe8f4ba9833 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 29 Sep 2020 14:11:55 -0700 Subject: [PATCH] Tags and tables --- bookwyrm/static/css/format.css | 11 ++++-- bookwyrm/templates/book.html | 2 + bookwyrm/templates/layout.html | 4 +- bookwyrm/templates/shelf.html | 4 +- bookwyrm/templates/snippets/book_cover.html | 12 +++--- bookwyrm/templates/snippets/shelf.html | 3 +- bookwyrm/templates/snippets/tag.html | 42 +++++++++++---------- bookwyrm/templates/user_shelves.html | 4 +- 8 files changed, 45 insertions(+), 37 deletions(-) diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index ab124038..0d09d858 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -82,8 +82,11 @@ input.toggle-control:checked ~ .toggle-content { .cover-container { height: 250px; } +.cover-container.is-small { + height: 100px; +} .book-cover { - height: 100% + height: 100%; object-fit: scale-down; } .no-cover { @@ -97,9 +100,9 @@ input.toggle-control:checked ~ .toggle-content { left: 0; text-align: center; } -.no-cover .title { - text-transform: uppercase; - margin-bottom: 1em; +.is-small .no-cover div { + font-size: 0.7em; + padding: 0.1em; } diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index e0f0b30d..a99e4ffc 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -71,9 +71,11 @@ {% endif %}
+
{% for tag in tags %} {% include 'snippets/tag.html' with book=book tag=tag user_tags=user_tags %} {% endfor %} +
diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index 771a86a7..f5806ef5 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -59,10 +59,10 @@