Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix ugly video preview on detail page (bug 761275)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Jun 5, 2012
1 parent 8db4ccb commit 7798569
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions media/css/mkt/detail.less
Expand Up @@ -223,16 +223,25 @@ h1 .num {
padding: 0;
a {
.border-box;
background: @black;
display: block;
.border-radius(3px);
.box-shadow(0 1px 2px #000);
width: 216px;
.box-shadow(0 1px 2px @black);
height: 166px;
background: white;
padding: 8px;
position: relative;
margin: 0 16px;
img {
width: 216px;
.img {
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: contain;
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
max-height: 150px;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion mkt/detail/templates/detail/app.html
Expand Up @@ -171,7 +171,7 @@ <h3>{{ _('Developer Comments') }}</h3>
<li>
<a class="screenshot thumbnail{{ ' video' if preview.filetype == 'video/webm' }}"
href="{{ preview.image_url }}" title="{{ preview.caption }}">
<img src="{{ preview.thumbnail_url }}">
<div class="img" style="background-image:url({{ preview.thumbnail_url }})"></div>
</a>
</li>
{%- endfor -%}
Expand Down

0 comments on commit 7798569

Please sign in to comment.