Advanced woocommerce product gallery slider single product (ok)

#panel {
width: 483px;
position: relative;
float: left;
}
#thumbs{
position: absolute;
right: 0;
width: 76px;
height: 350px;
overflow-x: hidden;
overflow-y: scroll;
@include translateY50;
@include flexbox;
@include flexcolumn;
img {
border: 1px solid #C4C4C4;
height: 100%;
@include objectfit;
}
.thumb {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
&.active {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
img {
border: 1px solid #EC4A23;
}
}
}
.woocommerce-product-gallery__image {
height: 76px;
width: 76px;
margin-bottom: 15px;
@include borderbox;
&:last-child {
margin-bottom: 0;
}
}
&::-webkit-scrollbar {
width: 0;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
}
}
.thumb {
display: inline-block;
margin: 0px;
padding: 0px;
cursor: pointer;
}
.controls {
position: absolute;
top: 0;
height: 100%;
right: 0;
i {
position: absolute;
right: 32px;
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
i.prev {
top: 0;
}
i.next {
bottom: 0;
}
img {
cursor: pointer;
margin: 0px;
}
span {
font-size: 13px;
display: inline-block;
vertical-align: top;
margin-top: 5px;
}
}
#large{
.woocommerce-product-gallery__image.active {
width: 390px;
height: 390px;
>img {
width: 100%;
height: 100%;
@include objectfit
}
}
.controls {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.thumb {
display: none;
}
.active {
display: block;
img {
border: 2px solid #333;
}
}
}PreviousThay đổi số lượng hiển thị sản phẩm liên quan trong woocommerce (ok)NextHow To Add WooCommerce Custom Product Fields (ok)
Last updated
Was this helpful?