Improved thumbnails view

More readable fonts. Better spacing.
3-col layout on medium-sized devices (responsiveness)
This commit is contained in:
Haas, Christoph 2013-08-23 13:38:15 +02:00
parent be9cb71f47
commit c219c38a49
2 changed files with 8 additions and 4 deletions

View file

@ -1,18 +1,22 @@
div.thumbnail
{
width: 200px;
height: 230px;
/*width: 200px;*/
height: 210px;
margin-bottom: 5px;
}
/* Package name in thumbnails view */
.thumbnail h3
{
font-size: 18px;
line-height: normal;
text-align: center;
white-space: nowrap;
overflow: hidden;
margin-top: 8px;
margin-bottom: 5px;
}
/* Package description in thumbnails view */
.thumbnail p
{
text-align: center;

View file

@ -2,7 +2,7 @@
<% if @packages.length>0 %>
<% @packages.each do |package| %>
<div class="col-md-3">
<div class="col-md-3 col-sm-4">
<div class="thumbnail">
<% if package.screenshots.length>0 %>
<% screenshot = package.screenshots.first %>