fix placement of book abstract
authorJan Szejko <janek37@gmail.com>
Wed, 23 May 2018 14:39:00 +0000 (16:39 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 23 May 2018 14:39:00 +0000 (16:39 +0200)
src/catalogue/templates/catalogue/book_short.html
src/wolnelektury/static/scss/main/book_box.scss

index b2a912f..fe4871d 100644 (file)
           </div>
         </li>
       </ul>
-      <div class="clearboth"></div>
-      {% if book.abstract %}
-        <div class="abstract more">
-          {{ book.abstract|safe }}
-        </div>
-      {% endif %}
       {% block book-box-extra-info %}{% endblock %}
-      {% block box-append %}
-      {% endblock %}
+      {% block box-append %}{% endblock %}
     </div>
+    {% if book.abstract %}
+      <div class="abstract more">
+        {{ book.abstract|safe }}
+      </div>
+    {% endif %}
     {% endwith %}
 
     {% block right-column %}
index dd2a77f..ddb4b72 100755 (executable)
     @media screen and (min-width: 1024px) {
       display: inline-block;
       @include size(width, 590px);
+      @include size(min-height, 196px);
     }
   }
 
       @media screen and (min-width: 62.5em) {
         float: left;
         @include size(width, 536px);
+        @include size(min-height, 196px);
       }
     }
 
   overflow: hidden;
   position: relative;
 
+  @media screen and (min-width: 62.5em) {
+    @include size(width, 536px);
+  }
+
   p.paragraph {
     margin-bottom: 0;
     margin-top: 1.2em;