From afa132c391c153f4aa51e5ccdd9b3e32d4b6a3e3 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 21 May 2021 15:26:36 +0200 Subject: [PATCH] Visible book download buttons. --- .../templates/catalogue/book_short.html | 31 ++++++++----------- .../static/scss/main/book_box.scss | 6 ++-- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 1df91ca42..cc2744361 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -117,33 +117,28 @@ {% endif %}
  • - {% trans "Download" %}:
    {% if book.pdf_file %} - PDF + PDF {% endif %} {% if book.epub_file %} - EPUB + EPUB {% endif %} {% if book.mobi_file %} - MOBI + MOBI {% endif %} - {% if book.has_audio %} - MP3 + {% if book.fb2_file %} + FB2 {% endif %} - {% trans "more" %} - - {% if book.fb2_file %} - FB2 - {% endif %} - {% if book.txt_file %} - TXT - {% endif %} - {% download_audio book mp3=False %} -
    + {% if book.txt_file %} + TXT + {% endif %} +
    +
    + {% download_audio book %} +
    +
    {% custom_pdf_link_li book %} - {% trans "less" %} -
  • diff --git a/src/wolnelektury/static/scss/main/book_box.scss b/src/wolnelektury/static/scss/main/book_box.scss index fde8bb989..8e47bfe9a 100644 --- a/src/wolnelektury/static/scss/main/book_box.scss +++ b/src/wolnelektury/static/scss/main/book_box.scss @@ -459,14 +459,16 @@ } .book-box-formats { - display: inline-block; max-width: 300px; vertical-align: top; padding-top: 6px; + border-collapse: collapse; a { - display: inline-block; + display: table-cell; @include size(padding, .2em 1em); + border:1px solid black; + line-height: 20px; } } } -- 2.20.1