luzikov (29 Июль 2014 - 20:01) писал:
Спасибо, осталось СРОЧНО сделать нормального вида блок "Хиты продаж" Я не понимаю что с ним
здравствуйте, в шаблоне style.css найдите:
#carousel_favorites ul, #carousel_specials ul, #carousel_newproducts ul, #carousel_bestsellers ul, #also_purchased ul {width:20000em;position:absolute;list-style:none;margin-left: 0px;margin-right: -1px;padding:0}
и замените на:
#carousel_favorites ul, #carousel_specials ul, #carousel_newproducts ul, #carousel_bestsellers ul, #also_purchased ul {width: 880px;height: 500px;position:absolute;list-style:none;margin-left: 0px;margin-right: -1px;padding:0}
после вставьте:
div.product-image-wrapper{
width:292px;
height:auto;
}
код:
.product-name {
text-align: center;
text-transform: uppercase;
font-weight: bold;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
height: 55px;
margin-top: 0px;
}
замените на:
.product-name {
text-align: center;
text-transform: uppercase;
font-weight: bold;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
height: 20px;
margin-top: 0px;
}
код:
.product .product-price {font-size: 16px;height: 42px;line-height: 18px;margin: 8px 0 0 8px;padding-bottom: 5px;cursor: text;text-align: center;}
замените на:
.product .product-price {font-size: 16px;height: 25px;line-height: 18px;margin: 8px 0 0 8px;padding-bottom: 5px;cursor: text;text-align: center;}
заменить:
#also_purchased ul li .product {width: auto !important;margin: 0 3px;}
на:
#also_purchased ul li .product {width: 277px;margin: 0 3px;}
в шаблоне HTML заменить:
<h2>Популярные модели</h2>
</div>
<div id="carousel_bestsellers">
<ul>
{% FOR index_page_favorites_goods %}<li class="main_general">
на:
<h2>Популярные модели</h2>
</div>
<div id="carousel_bestsellers">
<ul>
{% FOR index_page_favorites_goods %}<li class="main_general" style="width: 292px; margin: 0px 2px;">