amélioration affichage produits

This commit is contained in:
Nicolas Bally 2018-08-28 14:59:48 +02:00
parent 2f39ebc909
commit e37d59e43c
2 changed files with 16 additions and 2 deletions

View File

@ -43,6 +43,20 @@ $dark_orange:#206e95;
float:left;
padding:10px;
.img{
height:250px;
background:no-repeat center center;
background-size:cover;
}
.description{
height:80px;
text-align:center;
h3{
text-align:center;
}
}
.product-price{
color:rgba(0,0,0,0.8);

View File

@ -1,7 +1,7 @@
=link_to public_reseaux_product_path(:reseaux_id => params[:reseaux_id],:id => product.id, :slug => product.lang(I18n.locale).slug) do
.product.product-item
.inner.with_ratio{:data => {:ratio => "1.4"}}
=image_tag product.default_image.image_file.file.large.medium.url if product.default_image
.inner.with_ratio
.img{:style => "background-image:url('#{(product.default_image.image_file.file.large.medium.url if product.default_image)}')"}
.description
%h3.product-title