feat: Responsividade tablet finalizada

This commit is contained in:
José Carlos Lins 2023-01-24 23:11:24 -03:00
parent 364a9b2003
commit bcc7f9ec18
13 changed files with 202 additions and 13 deletions

View File

@ -12,7 +12,9 @@ export const DescriptionSection: FC = () => {
return ( return (
<div className={styles.wrapperImageAndDescription}> <div className={styles.wrapperImageAndDescription}>
<img className={styles.imageProductDescriptionSection} src={imageProduct} alt={imageProductAlt} /> <div className={styles.containerImageProductDescriptionSection}>
<img className={styles.imageProductDescriptionSection} src={imageProduct} alt={imageProductAlt} />
</div>
<div className={styles.wrapperDescriptionSection}> <div className={styles.wrapperDescriptionSection}>
<h3 className={styles.descriptionSectionTitle}>Descrição do produto</h3> <h3 className={styles.descriptionSectionTitle}>Descrição do produto</h3>
<p className={styles.descriptionSectionParagraph}>{descriptionProduct}</p> <p className={styles.descriptionSectionParagraph}>{descriptionProduct}</p>

View File

@ -1,12 +1,19 @@
.wrapperImageAndDescription{ .wrapperImageAndDescription{
display: flex; display: grid;
gap: 32px; gap: 32px;
grid-template-columns: 47.591% 1fr;
margin-left: 32px;
}
.containerImageProductDescriptionSection{
width: 100%;
height: 100%;
display: flex;
} }
.imageProductDescriptionSection{ .imageProductDescriptionSection{
margin-left: 32px; width: 100%;
width: 632px; height: 100%;
height: 632px;
} }
.descriptionSectionTitle{ .descriptionSectionTitle{
@ -14,6 +21,10 @@
font-size: 24px; font-size: 24px;
line-height: 32px; line-height: 32px;
color: #575757; color: #575757;
height: 40px;
margin: 0;
margin-bottom: 8px;
} }
.descriptionSectionParagraph{ .descriptionSectionParagraph{
@ -22,4 +33,20 @@
line-height: 22px; line-height: 22px;
color: #929292; color: #929292;
margin: 0;
}
@media screen and (max-width: 1024px) {
.wrapperImageAndDescription{
display: flex;
flex-direction: column;
margin-left: 0;
gap: 16px;
border-bottom: 1px solid #BFBFBF;
}
.descriptionSectionParagraph{
margin-bottom: 16px;
}
} }

View File

@ -159,7 +159,8 @@
"props": { "props": {
"blockClass": "container-slider-related-products-pdp", "blockClass": "container-slider-related-products-pdp",
"itemsPerPage": { "itemsPerPage": {
"desktop": 4 "desktop": 4,
"tablet": 3
} }
} }
}, },
@ -249,13 +250,15 @@
"blockClass": "product-images-pdp", "blockClass": "product-images-pdp",
"aspectRatio": { "aspectRatio": {
"desktop": "auto", "desktop": "auto",
"phone": "16:9" "phone": "auto"
}, },
"showNavigationArrows": false, "showNavigationArrows": false,
"displayThumbnailsArrows": false, "displayThumbnailsArrows": false,
"thumbnailsOrientation": "horizontal", "thumbnailsOrientation": "horizontal",
"showPaginationDots": false, "showPaginationDots": false,
"thumbnailMaxHeight": 90 "thumbnailMaxHeight": 90,
"thumbnailVisibility": "visible"
} }
}, },
"flex-layout.col#right-col": { "flex-layout.col#right-col": {

View File

@ -53,4 +53,12 @@
} }
.flexRowContent--container-related-products-pdp .stretchChildrenWidth { .flexRowContent--container-related-products-pdp .stretchChildrenWidth {
width: 100% !important; width: 100% !important;
}
@media screen and (max-width: 1024px) {
.flexRow--container-product-main .flexRowContent--container-product-main {
display: flex;
flex-direction: column;
padding-top: 16px;
}
} }

View File

@ -21,4 +21,11 @@
line-height: 19px; line-height: 19px;
text-align: right; text-align: right;
color: rgba(146, 146, 146, 0.48); color: rgba(146, 146, 146, 0.48);
}
@media screen and (max-width: 1024px) {
.product-identifier--productReference {
justify-content: flex-start;
margin-bottom: 24px;
}
} }

View File

@ -18,4 +18,10 @@
line-height: 38px; line-height: 38px;
color: #575757; color: #575757;
margin: 0; margin: 0;
}
@media screen and (max-width: 1024px) {
.container--title-related-products {
margin-bottom: 24px;
}
} }

View File

@ -254,8 +254,6 @@
} }
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice { .shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice {
grid-area: frete; grid-area: frete;
}
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice {
font-size: 0; font-size: 0;
} }
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice::after { .shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice::after {
@ -285,4 +283,43 @@
} }
.shippingTable .shippingTableBody .shippingTableRow .shippingTableCellDeliveryEstimate { .shippingTable .shippingTableBody .shippingTableRow .shippingTableCellDeliveryEstimate {
grid-area: prazo; grid-area: prazo;
}
@media screen and (max-width: 1024px) {
.productNameContainer {
margin-top: 32px;
text-align: left;
}
}
@media screen and (max-width: 768px) {
.shippingContainer {
width: 100%;
grid-template-areas: "label button" "notCep notCep";
grid-template-columns: 83.4459% 1fr;
}
.shippingContainer :global(.vtex-address-form__postalCode) {
padding: 0;
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) {
grid-area: label;
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-address-form-4-x-input) {
padding: 0 16px;
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-address-form-4-x-input)::placeholder {
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: #AFAFAF;
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-input__suffix) {
display: none;
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-address-form__postalCode-forgottenURL) {
top: 0;
margin-top: 8px;
}
.carouselGaleryThumbs--product-images-pdp {
display: block !important;
}
} }

View File

@ -46,4 +46,19 @@
} }
.listContainer--container-list-tab-layout-pdp .listItemActive :global(.vtex-button) :global(.vtex-button__label) { .listContainer--container-list-tab-layout-pdp .listItemActive :global(.vtex-button) :global(.vtex-button__label) {
color: #000000; color: #000000;
}
@media screen and (max-width: 1024px) {
.listContainer--container-list-tab-layout-pdp {
flex-direction: column;
padding: 0;
gap: 16px;
margin-bottom: 16px;
}
.listContainer--container-list-tab-layout-pdp .listItem {
width: max-content;
}
.listContainer--container-list-tab-layout-pdp .listItemActive {
border: 0;
}
} }

View File

@ -51,3 +51,13 @@
width: 100% !important; width: 100% !important;
} }
} }
@media screen and (max-width: 1024px) {
.flexRow--container-product-main{
.flexRowContent--container-product-main {
display: flex;
flex-direction: column;
padding-top: 16px;
}
}
}

View File

@ -15,3 +15,10 @@
color: rgba(146, 146, 146, 0.48); color: rgba(146, 146, 146, 0.48);
} }
} }
@media screen and (max-width: 1024px) {
.product-identifier--productReference{
justify-content: flex-start;
margin-bottom: 24px;
}
}

View File

@ -12,3 +12,9 @@
margin: 0; margin: 0;
} }
} }
@media screen and (max-width: 1024px) {
.container--title-related-products{
margin-bottom: 24px;
}
}

View File

@ -286,9 +286,6 @@
.shippingTableHeadDeliveryPrice{ .shippingTableHeadDeliveryPrice{
grid-area: frete; grid-area: frete;
}
.shippingTableHeadDeliveryPrice{
font-size: 0; font-size: 0;
&::after{ &::after{
content: "FRETE"; content: "FRETE";
@ -330,3 +327,50 @@
} }
} }
} }
@media screen and (max-width: 1024px) {
.productNameContainer{
margin-top: 32px;
text-align: left;
}
}
@media screen and (max-width: 768px) {
.shippingContainer{
width: 100%;
grid-template-areas: "label button"
"notCep notCep";
grid-template-columns: 83.4459% 1fr;
:global(.vtex-address-form__postalCode){
padding: 0;
:global(.vtex-input){
grid-area: label;
:global(.vtex-input-prefix__group){
:global(.vtex-address-form-4-x-input){
padding: 0 16px;
&::placeholder{
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: #AFAFAF;
}
}
:global(.vtex-input__suffix){
display: none;
}
}
}
:global(.vtex-address-form__postalCode-forgottenURL){
top: 0;
margin-top: 8px;
}
}
}
.carouselGaleryThumbs--product-images-pdp{
display: block !important;
}
}

View File

@ -49,3 +49,20 @@
} }
} }
} }
@media screen and (max-width: 1024px) {
.listContainer--container-list-tab-layout-pdp{
flex-direction: column;
padding: 0;
gap: 16px;
margin-bottom: 16px;
.listItem{
width: max-content;
}
.listItemActive{
border: 0;
}
}
}