Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve CSS style
This is not a good way to do it because there are fixed values for
sizing. We should use more dynamic CSS rules to be adjusted properly
to the content and cover more use cases.
  • Loading branch information
humitos committed Jan 5, 2016
1 parent 0e5ed1b commit b53bd4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap3/templates/gallery.tmpl
Expand Up @@ -18,11 +18,11 @@
% if galleries_use_thumbnail:
<div class="row">
% for folder, ftitle, fpost in folders:
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="col-md-4 col-sm-6 col-xs-12" style="min-height: 425px;">
<div class="thumbnail">
<a href="${folder}">
% if fpost and getattr(fpost, 'previewimage', None):
<img src="${folder}${fpost.previewimage}" alt="${ftitle|h}">
<img src="${folder}${fpost.previewimage}" style="width: 340px; height: 255px;" alt="${ftitle|h}">
% elif galleries_default_thumbnail:
<img src="${galleries_default_thumbnail}" alt="${ftitle|h}">
% else:
Expand Down

0 comments on commit b53bd4d

Please sign in to comment.