From: Jan Szejko Date: Wed, 23 May 2018 14:39:00 +0000 (+0200) Subject: fix placement of book abstract X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/176d81e1b055cdcca0a2500f7287b1e0cdc65350 fix placement of book abstract --- 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;