feat: adiciona responsividade imagens tablet

This commit is contained in:
Vitor Soares 2023-02-07 12:19:24 -03:00
parent 731ec32b45
commit 342774490f
6 changed files with 127 additions and 18 deletions

View File

@ -12,10 +12,18 @@
width: 99.432%; width: 99.432%;
} }
[class*="description-container"] {
display: flex;
}
@media only screen and (max-width: 1024px) { @media only screen and (max-width: 1024px) {
[class*="html--buy-button"] :global(.vtex-button) { [class*="html--buy-button"] :global(.vtex-button) {
width: 100%; width: 100%;
} }
[class*="description-container"] {
flex-direction: column;
}
} }
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {

View File

@ -4,7 +4,7 @@
"html#breadcrumb", "html#breadcrumb",
"condition-layout.product#availability", "condition-layout.product#availability",
"tab-layout#product", "tab-layout#product",
// "flex-layout.row#description", // "html#description",
// "flex-layout.row#specifications-title", // "flex-layout.row#specifications-title",
// "product-specification-group#table", // "product-specification-group#table",
// "shelf.relatedProducts", // "shelf.relatedProducts",
@ -217,7 +217,7 @@
"tabId": "product1", "tabId": "product1",
"blockClass": "content-render" "blockClass": "content-render"
}, },
"children": ["flex-layout.row#description"] "children": ["html#description"]
}, },
"tab-content.item#product2": { "tab-content.item#product2": {
@ -225,7 +225,7 @@
"tabId": "product2", "tabId": "product2",
"blockClass": "content-render" "blockClass": "content-render"
}, },
"children": ["flex-layout.row#description"] "children": ["html#description"]
}, },
"tab-content.item#product3": { "tab-content.item#product3": {
@ -233,7 +233,7 @@
"tabId": "product3", "tabId": "product3",
"blockClass": "content-render" "blockClass": "content-render"
}, },
"children": ["flex-layout.row#description"] "children": ["html#description"]
}, },
"tab-content.item#product4": { "tab-content.item#product4": {
@ -241,7 +241,7 @@
"tabId": "product4", "tabId": "product4",
"blockClass": "content-render" "blockClass": "content-render"
}, },
"children": ["flex-layout.row#description"] "children": ["html#description"]
}, },
"tab-content.item#product5": { "tab-content.item#product5": {
@ -249,15 +249,15 @@
"tabId": "product5", "tabId": "product5",
"blockClass": "content-render" "blockClass": "content-render"
}, },
"children": ["flex-layout.row#description"] "children": ["html#description"]
}, },
"flex-layout.col#imageDescriptionContainer": { // "html#imageDescriptionContainer": {
"props": { // "props": {
"blockClass": "image-description" // "blockClass": "image-description"
}, // },
"children": ["product-images#imageDescription"] // "children": ["product-images#imageDescription"]
}, // },
"product-images#imageDescription": { "product-images#imageDescription": {
"props": { "props": {
@ -267,12 +267,11 @@
} }
}, },
"flex-layout.row#description": { "html#description": {
"props": { "props": {
"marginBottom": 7, "blockClass": "description-container"
"preventHorizontalStretch": true
}, },
"children": ["flex-layout.col#imageDescriptionContainer", "product-description"] "children": ["product-images#imageDescription", "product-description"]
}, },
// "flex-layout.row#quantity-buy-button": { // "flex-layout.row#quantity-buy-button": {

View File

@ -306,12 +306,18 @@
:global(.vtex-address-form__field--small) { :global(.vtex-address-form__field--small) {
padding-bottom: 16px; padding-bottom: 16px;
} }
@media only screen and (max-width: 767px) {
:global(.vtex-address-form__field--small) {
flex-direction: column;
}
}
.shippingTable { .shippingTable {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: none; border: none;
margin-top: 0; margin-top: 0;
padding: 0;
} }
.shippingTable .shippingTableHead { .shippingTable .shippingTableHead {
display: block; display: block;
@ -325,7 +331,6 @@
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
text-transform: uppercase; text-transform: uppercase;
padding-right: 112px;
color: #202020; color: #202020;
} }
@media only screen and (min-width: 1920px) { @media only screen and (min-width: 1920px) {
@ -358,16 +363,19 @@
.shippingTable .shippingTableCellDeliveryName { .shippingTable .shippingTableCellDeliveryName {
width: 23.9263%; width: 23.9263%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
.shippingTable .shippingTableHeadDeliveryEstimate, .shippingTable .shippingTableHeadDeliveryEstimate,
.shippingTable .shippingTableCellDeliveryEstimate { .shippingTable .shippingTableCellDeliveryEstimate {
width: 41.7177%; width: 41.7177%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
.shippingTable .shippingTableCellDeliveryPrice, .shippingTable .shippingTableCellDeliveryPrice,
.shippingTable .shippingTableHeadDeliveryPrice { .shippingTable .shippingTableHeadDeliveryPrice {
width: 14.7239%; width: 14.7239%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
.shippingTableBody .shippingtableRow { .shippingTableBody .shippingtableRow {
@ -454,6 +462,15 @@
color: #fff; color: #fff;
} }
.productDescriptionContainer {
width: 100%;
padding-left: 32px;
}
@media only screen and (max-width: 1025px) {
.productDescriptionContainer {
padding-left: 0;
}
}
.productDescriptionContainer .productDescriptionTitle { .productDescriptionContainer .productDescriptionTitle {
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
@ -494,6 +511,23 @@
} }
} }
:global(.vtex-store-components-3-x-productImagesContainer--first-image) {
max-width: 632px;
width: 100%;
height: 632px;
}
@media only screen and (max-width: 1025px) {
:global(.vtex-store-components-3-x-productImagesContainer--first-image) {
max-width: unset;
height: 944px;
}
}
@media only screen and (max-width: 767px) {
:global(.vtex-store-components-3-x-productImagesContainer--first-image) {
height: unset;
}
}
.newsletter { .newsletter {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;

View File

@ -30,6 +30,23 @@
line-height: 32px; line-height: 32px;
} }
} }
.container--structure :global(.vtex-store-components-3-x-productImageTag) {
width: 100% !important;
max-height: 632px !important;
max-width: 632px !important;
}
@media only screen and (max-width: 1025px) {
.container--structure :global(.vtex-store-components-3-x-productImageTag) {
max-width: unset !important;
max-height: 944px !important;
}
}
@media only screen and (max-width: 767px) {
.container--structure :global(.vtex-store-components-3-x-productImageTag) {
max-width: unset !important;
max-height: unset !important;
}
}
.contentContainer { .contentContainer {
padding: 0 32px; padding: 0 32px;

View File

@ -356,6 +356,10 @@
:global(.vtex-address-form__field--small) { :global(.vtex-address-form__field--small) {
padding-bottom: 16px; padding-bottom: 16px;
@include mq(sm, max) {
flex-direction: column;
}
} }
// ENTREGA // ENTREGA
@ -365,6 +369,7 @@
flex-direction: column; flex-direction: column;
border: none; border: none;
margin-top: 0; margin-top: 0;
padding: 0;
.shippingTableHead { .shippingTableHead {
display: block; display: block;
@ -379,7 +384,6 @@
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
text-transform: uppercase; text-transform: uppercase;
padding-right: 112px;
color: $black-100; color: $black-100;
@ -422,18 +426,21 @@
.shippingTableCellDeliveryName { .shippingTableCellDeliveryName {
width: 23.9263%; width: 23.9263%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
.shippingTableHeadDeliveryEstimate, .shippingTableHeadDeliveryEstimate,
.shippingTableCellDeliveryEstimate { .shippingTableCellDeliveryEstimate {
width: 41.7177%; width: 41.7177%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
.shippingTableCellDeliveryPrice, .shippingTableCellDeliveryPrice,
.shippingTableHeadDeliveryPrice { .shippingTableHeadDeliveryPrice {
width: 14.7239%; width: 14.7239%;
padding: 0 0 15px 0; padding: 0 0 15px 0;
text-align: initial;
} }
} }
@ -548,6 +555,13 @@
// DESCRIÇÃO // DESCRIÇÃO
.productDescriptionContainer { .productDescriptionContainer {
width: 100%;
padding-left: 32px;
@include mq(md, max) {
padding-left: 0;
}
.productDescriptionTitle { .productDescriptionTitle {
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
@ -586,6 +600,27 @@
padding-bottom: 16px; padding-bottom: 16px;
} }
} }
// :global(.vtex-store-components-3-x-productDescriptionContainer) {
// width: 100% !important;
// padding-left: 32px;
// }
}
:global(.vtex-store-components-3-x-productImagesContainer--first-image) {
max-width: 632px;
width: 100%;
height: 632px;
@include mq(md, max) {
max-width: unset;
height: 944px;
}
@include mq(sm, max) {
height: unset;
}
} }
// NEWSLETTER // NEWSLETTER

View File

@ -17,6 +17,22 @@
line-height: 32px; line-height: 32px;
} }
} }
:global(.vtex-store-components-3-x-productImageTag) {
width: 100% !important;
max-height: 632px !important;
max-width: 632px !important;
@include mq(md, max) {
max-width: unset !important;
max-height: 944px !important;
}
@include mq(sm, max) {
max-width: unset !important;
max-height: unset !important;
}
}
} }
.contentContainer { .contentContainer {