From 1c66750a4a0611d2399e6e60eec5ea6915b458f6 Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Fri, 19 Oct 2012 21:13:40 +0200 Subject: [PATCH] Thumbnail styling edits plus edits to the object_gallery (4 columns instead of 5 by default) --- mediagoblin/static/css/base.css | 11 ++++++++--- .../templates/mediagoblin/utils/object_gallery.html | 7 +++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index c6152a1c..312edc49 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -409,9 +409,8 @@ textarea#comment_content { float: left; padding: 0px; width: 212px; - height: 156px; overflow: hidden; - margin: 0px 28px 24px 0px; + margin: 0px 28px 26px 0px; text-align: center; font-size: 0.875em; background-color: #222; @@ -425,10 +424,16 @@ textarea#comment_content { .media_thumbnail a { color: #eee; text-decoration: none; + display: block; +} + +a.thumb_entry_title { + padding: 8px; } .media_thumbnail img { - max-height: 135px; + width: 212px; + max-height: 159px; } .thumb_entry_last { diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html index 81506a84..b63419a8 100644 --- a/mediagoblin/templates/mediagoblin/utils/object_gallery.html +++ b/mediagoblin/templates/mediagoblin/utils/object_gallery.html @@ -18,7 +18,7 @@ {% from "mediagoblin/utils/pagination.html" import render_pagination %} -{% macro media_grid(request, media_entries, col_number=5) %} +{% macro media_grid(request, media_entries, col_number=4) %} {% for row in gridify_cursor(media_entries, col_number) %} {% if entry.title %} -
- {{ entry.title }} + {{ entry.title }} {% endif %} {% endfor %} @@ -56,7 +55,7 @@ - col_number: How many columns per row (default 5) #} {% macro object_gallery(request, media_entries, pagination, - pagination_base_url=None, col_number=5) %} + pagination_base_url=None, col_number=4) %} {% if media_entries and media_entries.count() %} {{ media_grid(request, media_entries, col_number=col_number) }}
-- 2.25.1