Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

feat/update the product images to fit the container #226

Merged
merged 2 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion assets/product.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
}
@media (min-width: 768px) {
.yc-single-product .product-images .product-images-container .thumbnail-images {
flex-direction: row;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
order: 1;
}
}
Expand All @@ -94,6 +95,12 @@
height: 78px;
cursor: pointer;
}
@media (min-width: 768px) {
.yc-single-product .product-images .product-images-container .thumbnail-images .image-container {
width: 100%;
height: 100%;
}
}
.yc-single-product .product-images .product-images-container .thumbnail-images .image-container.active {
border-color: #000000;
}
Expand Down
8 changes: 7 additions & 1 deletion styles/product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
max-width: max-content;

@include breakpoint('md') {
flex-direction: row;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
order: 1;
}
}
Expand All @@ -95,6 +96,11 @@
height: 78px;
cursor: pointer;

@include breakpoint('md') {
width: 100%;
height: 100%;
}

&.active {
border-color: #000000;
}
Expand Down