Improved thumbnails view
More readable fonts. Better spacing. 3-col layout on medium-sized devices (responsiveness)
This commit is contained in:
parent
be9cb71f47
commit
c219c38a49
2 changed files with 8 additions and 4 deletions
|
|
@ -1,18 +1,22 @@
|
||||||
div.thumbnail
|
div.thumbnail
|
||||||
{
|
{
|
||||||
width: 200px;
|
/*width: 200px;*/
|
||||||
height: 230px;
|
height: 210px;
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Package name in thumbnails view */
|
||||||
.thumbnail h3
|
.thumbnail h3
|
||||||
{
|
{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: normal;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Package description in thumbnails view */
|
||||||
.thumbnail p
|
.thumbnail p
|
||||||
{
|
{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<% if @packages.length>0 %>
|
<% if @packages.length>0 %>
|
||||||
<% @packages.each do |package| %>
|
<% @packages.each do |package| %>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3 col-sm-4">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<% if package.screenshots.length>0 %>
|
<% if package.screenshots.length>0 %>
|
||||||
<% screenshot = package.screenshots.first %>
|
<% screenshot = package.screenshots.first %>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue