feat(ProductImage): fix product image

This commit is contained in:
Marcello Rodrigues Martins 2023-02-10 12:47:25 -03:00
parent c9a06914fb
commit 9f01aa6aad
7 changed files with 119 additions and 25 deletions

View File

@ -15,7 +15,6 @@
"postreleasy": "vtex publish --verbose" "postreleasy": "vtex publish --verbose"
}, },
"dependencies": { "dependencies": {
"agenciamagma.store-theme": "5.x",
"vtex.store": "2.x", "vtex.store": "2.x",
"vtex.store-header": "2.x", "vtex.store-header": "2.x",
"vtex.product-summary": "2.x", "vtex.product-summary": "2.x",

View File

@ -91,7 +91,11 @@
"desktop": "auto", "desktop": "auto",
"phone": "16:9" "phone": "16:9"
}, },
"displayThumbnailsArrows": true "displayThumbnailsArrows": false,
"thumbnailsOrientation": "horizontal",
"thumbnailMaxHeight": 90,
"showPaginationDots": false,
"showNavigationArrows": false
} }
}, },
"flex-layout.col#right-col": { "flex-layout.col#right-col": {
@ -101,20 +105,20 @@
}, },
"children": [ "children": [
"flex-layout.row#product-name", "flex-layout.row#product-name",
"product-identifier.product",
"product-rating-summary", "product-rating-summary",
"flex-layout.row#list-price-savings", // "flex-layout.row#list-price-savings",
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments", "product-installments",
"product-separator", // "product-separator",
"product-identifier.product",
"sku-selector", "sku-selector",
"product-quantity", "product-quantity",
"product-assembly-options", "product-assembly-options",
"product-gifts", "product-gifts",
"flex-layout.row#buy-button", "flex-layout.row#buy-button",
"availability-subscriber", "availability-subscriber",
"shipping-simulator", "shipping-simulator"
"share#default" // "share#default"
] ]
}, },

View File

@ -8,9 +8,9 @@
/* Media Query M3 */ /* Media Query M3 */
/* Grid breakpoints */ /* Grid breakpoints */
.html { .html {
background-color: red; background-color: blue;
} }
.html--pdp-breadcrumb { .html--pdp-breadcrumb {
background-color: green; background-color: white;
} }

View File

@ -1,6 +1,6 @@
.listPrice { .listPrice {
color: #727273; color: #727273;
margin-bottom: .25rem; margin-bottom: 0.25rem;
font-size: 1rem; font-size: 1rem;
} }
@ -21,17 +21,17 @@
.savings { .savings {
font-weight: 500; font-weight: 500;
color: #79B03A; color: #79b03a;
} }
.sellingPriceValue--summary { .sellingPriceValue--summary {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: #2E2E2E; color: #2e2e2e;
} }
.savings--summary { .savings--summary {
background: #8BC34A; background: #8bc34a;
border-radius: 1000px; border-radius: 1000px;
align-items: center; align-items: center;
display: flex; display: flex;
@ -41,21 +41,21 @@
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
vertical-align: baseline; vertical-align: baseline;
color: #FFFFFF; color: #ffffff;
} }
.savings-discount--summary { .savings-discount--summary {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
vertical-align: baseline; vertical-align: baseline;
color: #FFFFFF; color: #ffffff;
padding-left: 0.5rem; padding-left: 0.5rem;
padding-right: 0.5rem; padding-right: 0.5rem;
} }
.listPrice--summary { .listPrice--summary {
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
font-size: .875rem; font-size: 0.875rem;
} }
.installments--summary { .installments--summary {
@ -74,6 +74,6 @@
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
vertical-align: baseline; vertical-align: baseline;
color: #FFFFFF; color: #ffffff;
padding: 0.25rem 0.5rem 0.25rem 0.5rem; padding: 0.25rem 0.5rem 0.25rem 0.5rem;
} }

View File

@ -7,6 +7,51 @@
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Grid breakpoints */ /* Grid breakpoints */
.newsletter { .skuSelectorContainer {
background: red; display: flex;
flex-direction: column-reverse;
}
.vtex-flex-layout-0-x-stretchChildrenWidth {
width: 46.11% !important;
}
.relative :first-child {
min-width: 100%;
}
.productImage {
height: 664px;
}
.productImageTag {
min-height: 100%;
}
.productImageTag--main {
width: unset !important;
min-height: 100% !important;
max-height: unset !important;
}
.figure {
width: 90px;
height: 90px;
}
.productImagesThumb {
width: 90px !important;
height: 90px !important;
margin-right: 16px;
}
.carouselThumbBorder {
width: 90px;
height: 90px;
}
.thumbImg {
width: 90px;
height: 90px;
border-radius: 8px !important;
} }

View File

@ -1,8 +1,7 @@
.html { .html {
background-color: red; background-color: blue;
} }
.html--pdp-breadcrumb { .html--pdp-breadcrumb {
background-color: green; background-color: white;
} }

View File

@ -1,3 +1,50 @@
.newsletter{ .skuSelectorContainer {
background: red; display: flex;
} flex-direction: column-reverse;
}
.vtex-flex-layout-0-x-stretchChildrenWidth {
width: 46.11% !important;
}
.relative {
:first-child {
min-width: 100%;
}
}
.productImage {
height: 664px;
}
.productImageTag {
min-height: 100%;
}
.productImageTag--main {
width: unset !important;
min-height: 100% !important;
max-height: unset !important;
}
.figure {
width: 90px;
height: 90px;
}
.productImagesThumb {
width: 90px !important;
height: 90px !important;
margin-right: 16px;
}
.carouselThumbBorder {
width: 90px;
height: 90px;
}
.thumbImg {
width: 90px;
height: 90px;
border-radius: 8px !important;
}