From 70e2bb823a0c5792580a7ad60bef9d3f33978439 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 23 Jan 2012 13:26:03 +0100 Subject: [PATCH] search result display --- wolnelektury/static/css/book_box.css | 12 +++++++++--- .../templates/catalogue/search_multiple_hits.html | 12 ++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/wolnelektury/static/css/book_box.css b/wolnelektury/static/css/book_box.css index 7a1a2bcc5..aefb4550f 100755 --- a/wolnelektury/static/css/book_box.css +++ b/wolnelektury/static/css/book_box.css @@ -83,9 +83,15 @@ margin: 0.5em; } -/*.book-wide-box.search-result .book-box-inner, .book-wide-box.search-result blockquote { - height: auto !important; -}*/ + +/* + * ingenous float containment hack + * http://www.mikepadgett.com/technology/technical/alternative-to-the-pie-clearfix-hack/ + */ +.search-result .book-box-inner { + height: 1%; + overflow: hidden; +} .book-mini-box img, .book-box img, .book-wide-box img, .search-result img { width: 13.9em; diff --git a/wolnelektury/templates/catalogue/search_multiple_hits.html b/wolnelektury/templates/catalogue/search_multiple_hits.html index a3c725837..6739645cc 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -12,7 +12,7 @@ {% endif %} - + {% spaceless %} {% if results.author %}
@@ -22,7 +22,7 @@
    {% for author in results.author %} -
  1. +
  2. {% book_short author.book %}
  3. {% endfor %} @@ -39,7 +39,7 @@
      {% for result in results.title %} -
    1. +
    2. {% book_short result.book %}
    3. {% endfor %} @@ -56,7 +56,7 @@
        {% for result in results.content %} -
      1. +
      2. {% book_searched result %}
      3. {% endfor %} @@ -73,14 +73,14 @@
          {% for result in results.other %} -
        1. +
        2. {% book_searched result %}
        3. {% endfor %}
        {% endif %} - + {% endspaceless %} -- 2.20.1