From 176d81e1b055cdcca0a2500f7287b1e0cdc65350 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 23 May 2018 16:39:00 +0200 Subject: [PATCH] fix placement of book abstract --- src/catalogue/templates/catalogue/book_short.html | 14 ++++++-------- src/wolnelektury/static/scss/main/book_box.scss | 6 ++++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index b2a912f1a..fe4871d81 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -138,16 +138,14 @@ -
- {% if book.abstract %} -
- {{ book.abstract|safe }} -
- {% endif %} {% block book-box-extra-info %}{% endblock %} - {% block box-append %} - {% endblock %} + {% block box-append %}{% endblock %} + {% if book.abstract %} +
+ {{ book.abstract|safe }} +
+ {% endif %} {% endwith %} {% block right-column %} diff --git a/src/wolnelektury/static/scss/main/book_box.scss b/src/wolnelektury/static/scss/main/book_box.scss index dd2a77f49..ddb4b7218 100755 --- a/src/wolnelektury/static/scss/main/book_box.scss +++ b/src/wolnelektury/static/scss/main/book_box.scss @@ -136,6 +136,7 @@ @media screen and (min-width: 1024px) { display: inline-block; @include size(width, 590px); + @include size(min-height, 196px); } } @@ -175,6 +176,7 @@ @media screen and (min-width: 62.5em) { float: left; @include size(width, 536px); + @include size(min-height, 196px); } } @@ -525,6 +527,10 @@ overflow: hidden; position: relative; + @media screen and (min-width: 62.5em) { + @include size(width, 536px); + } + p.paragraph { margin-bottom: 0; margin-top: 1.2em; -- 2.20.1