This commit is contained in:
Laurent Destailleur 2019-12-04 21:30:31 +01:00
parent 7b25104e0c
commit 90bf7d24b9
2 changed files with 7 additions and 1 deletions

View File

@ -153,7 +153,7 @@ div.description{
text-align:center;
padding-top: 30px;
background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,1), white);
background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,0.98), rgba(255,255,255,1));
}
div.catwatermark{
@ -321,6 +321,8 @@ div.description_content {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
padding-left: 2px;
padding-right: 2px;
}
@media screen and (min-width: 892px) {

View File

@ -181,12 +181,14 @@ function PrintCategories(first) {
$("#catdesc"+i).text("");
$("#catimg"+i).attr("src","genimg/empty.png");
$("#catwatermark"+i).hide();
$("#catdiv"+i).attr('class', 'wrapper divempty');
continue;
}
$("#catdivdesc"+i).show();
$("#catdesc"+i).text(categories[parseInt(i)+parseInt(first)]['label']);
$("#catimg"+i).attr("src","genimg/index.php?query=cat&id="+categories[parseInt(i)+parseInt(first)]['rowid']);
$("#catdiv"+i).data("rowid",categories[parseInt(i)+parseInt(first)]['rowid']);
$("#catdiv"+i).attr('class', 'wrapper');
$("#catwatermark"+i).show();
}
}
@ -264,6 +266,7 @@ function LoadProducts(position, issubcat) {
$("#proimg"+ishow).attr("title","");
$("#proimg"+ishow).attr("src","genimg/empty.png");
$("#prodiv"+ishow).data("rowid","");
$("#prodiv"+ishow).attr("class","wrapper2 divempty");
$("#prowatermark"+ishow).hide();
ishow++; //Next product to show after print data product
}
@ -275,6 +278,7 @@ function LoadProducts(position, issubcat) {
$("#proimg"+ishow).attr("src", "genimg/index.php?query=pro&id="+data[idata]['id']);
$("#prodiv"+ishow).data("rowid", data[idata]['id']);
$("#prodiv"+ishow).data("iscat", 0);
$("#prodiv"+ishow).attr("class","wrapper2");
$("#prowatermark"+ishow).hide();
ishow++; //Next product to show after print data product
}