amélioration affichage produits
This commit is contained in:
parent
2f39ebc909
commit
e37d59e43c
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user