layout mobile e ultrawide

This commit is contained in:
Emerson Fully 2023-02-10 18:46:45 -03:00
parent 92ded99fdd
commit 4f76bd79e3
9 changed files with 101 additions and 31 deletions

View File

@ -1,7 +1,30 @@
.html--pdp-breadcrumb { .html--pdp-breadcrumb {
margin: 0 40px; margin: 0 40px;
}
.html--product-summary-container {
margin: 0 40px;
} }
@media screen and (min-width: 1920px) {
.html--pdp-breadcrumb {
margin: 0 360px;
}
.html--product-summary-container {
margin: 0 360px;
}
}
@media screen and (min-width: 768px) {
.html--quantity-and-button {
display: flex;
}
}
/*buy-button*/ /*buy-button*/
/* [class*="flexRowContent--btn-product"] button { /* [class*="flexRowContent--btn-product"] button {

View File

@ -32,17 +32,13 @@
"props": { "props": {
"verticalAlign": "middle" "verticalAlign": "middle"
}, },
"children": [ "children": ["assembly-option-item-quantity-selector"]
"assembly-option-item-quantity-selector"
]
}, },
"flex-layout.col#product-assembly-image": { "flex-layout.col#product-assembly-image": {
"props": { "props": {
"marginRight": 4 "marginRight": 4
}, },
"children": [ "children": ["assembly-option-item-image"]
"assembly-option-item-image"
]
}, },
"flex-layout.col#product-assembly-middle": { "flex-layout.col#product-assembly-middle": {
"props": { "props": {
@ -96,9 +92,7 @@
"horizontalAlign": "right", "horizontalAlign": "right",
"verticalAlign": "middle" "verticalAlign": "middle"
}, },
"children": [ "children": ["assembly-option-item-quantity-selector"]
"assembly-option-item-quantity-selector"
]
}, },
"assembly-option-item-customize#sec-level": { "assembly-option-item-customize#sec-level": {
"props": { "props": {

View File

@ -125,14 +125,20 @@
"html#product-installments", "html#product-installments",
"html#Pix", "html#Pix",
"html#sku-selector", "html#sku-selector",
"html#product-quantity", "html#buy-container",
"product-assembly-options", "product-assembly-options",
"flex-layout.row#buy-button",
"availability-subscriber", "availability-subscriber",
"html#shipping-simulator" "html#shipping-simulator"
] ]
}, },
"html#buy-container": {
"props": {
"blockClass": "quantity-and-button"
},
"children": ["html#product-quantity", "flex-layout.row#buy-button"]
},
"html#product-installments": { "html#product-installments": {
"props": { "props": {
"testId": "product-installments" "testId": "product-installments"
@ -287,7 +293,8 @@
"html#slider": { "html#slider": {
"props": { "props": {
"testId": "product-summary-list" "testId": "product-summary-list",
"blockClass": "product-summary-container"
}, },
"children": ["slider-layout#carrosselatualizado"] "children": ["slider-layout#carrosselatualizado"]
}, },
@ -297,7 +304,7 @@
"itemsPerPage": { "itemsPerPage": {
"desktop": 4, "desktop": 4,
"tablet": 3, "tablet": 3,
"phone": 1 "phone": 2
}, },
"infinite": true, "infinite": true,
"showNavigationArrows": "desktopOnly", "showNavigationArrows": "desktopOnly",

View File

@ -32,15 +32,15 @@
position: relative; position: relative;
} }
@media screen and (min-width: 769px) { @media screen and (min-width: 768px) {
.flexRow--btn-product { .flexRowContent--btn-product {
width: 100%; margin: 0 10px;
max-width: 526px;
position: absolute;
top: 374px;
left: 158px;
} }
} }
.flexRow--btn-product {
width: 100%;
}
.flexRow--btn-product :global(.vtex-button) { .flexRow--btn-product :global(.vtex-button) {
background-color: black; background-color: black;
border: 1px solid black; border: 1px solid black;

View File

@ -27,7 +27,7 @@
/* carouselThumbs*/ /* carouselThumbs*/
.carouselGaleryThumbs { .carouselGaleryThumbs {
height: 200px; height: 140px;
margin-top: 16px; margin-top: 16px;
} }
.carouselGaleryThumbs .productImagesThumb { .carouselGaleryThumbs .productImagesThumb {
@ -267,6 +267,12 @@
line-height: 32px; line-height: 32px;
color: #575757; color: #575757;
} }
@media screen and (min-width: 1920px) {
.productDescriptionContainer .productDescriptionTitle {
font-size: 32px;
line-height: 32px;
}
}
.productDescriptionContainer .productDescriptionText { .productDescriptionContainer .productDescriptionText {
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
@ -275,6 +281,12 @@
line-height: 19px; line-height: 19px;
color: #929292; color: #929292;
} }
@media screen and (min-width: 1920px) {
.productDescriptionContainer .productDescriptionText {
font-size: 18px;
line-height: 25px;
}
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
.productDescriptionContainer { .productDescriptionContainer {
margin-top: 16px; margin-top: 16px;
@ -322,7 +334,12 @@
margin: 16px; margin: 16px;
} }
.newsletter .inputGroup { .newsletter .inputGroup {
width: 774px; display: flex;
}
@media screen and (min-width: 768px) {
.newsletter .inputGroup {
width: 774px;
}
} }
.newsletter .inputGroup :global(.vtex-input-prefix__group) { .newsletter .inputGroup :global(.vtex-input-prefix__group) {
border: none; border: none;

View File

@ -15,6 +15,11 @@
margin: auto; margin: auto;
width: 95%; width: 95%;
} }
@media screen and (min-width: 1920px) {
.listContainer {
width: 75%;
}
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
.listContainer { .listContainer {
flex-direction: column; flex-direction: column;
@ -26,6 +31,11 @@
display: flex; display: flex;
padding: 62px 52px; padding: 62px 52px;
} }
@media screen and (min-width: 1920px) {
.contentItem {
padding: 62px 360px;
}
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
.contentItem { .contentItem {
flex-direction: column; flex-direction: column;

View File

@ -27,14 +27,13 @@
position: relative; position: relative;
} }
.flexRow--btn-product { .flexRowContent--btn-product {
@media screen and (min-width: 769px) { @media screen and (min-width: 768px) {
width: 100%; margin: 0 10px;
max-width: 526px;
position: absolute;
top: 374px;
left: 158px;
} }
}
.flexRow--btn-product {
width: 100%;
:global(.vtex-button) { :global(.vtex-button) {
background-color: black; background-color: black;

View File

@ -15,7 +15,7 @@
/* carouselThumbs*/ /* carouselThumbs*/
.carouselGaleryThumbs { .carouselGaleryThumbs {
height: 200px; height: 140px;
margin-top: 16px; margin-top: 16px;
.productImagesThumb { .productImagesThumb {
@ -296,6 +296,11 @@
line-height: 32px; line-height: 32px;
color: $color-gray6; color: $color-gray6;
@media screen and (min-width: 1920px) {
font-size: 32px;
line-height: 32px;
}
} }
.productDescriptionText { .productDescriptionText {
@ -306,6 +311,11 @@
line-height: 19px; line-height: 19px;
color: $color-gray8; color: $color-gray8;
@media screen and (min-width: 1920px) {
font-size: 18px;
line-height: 25px;
}
} }
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
@ -361,7 +371,10 @@
} }
.inputGroup { .inputGroup {
width: 774px; display: flex;
@media screen and (min-width: 768px) {
width: 774px;
}
:global(.vtex-input-prefix__group) { :global(.vtex-input-prefix__group) {
border: none; border: none;
border-bottom: 1px solid gray; border-bottom: 1px solid gray;

View File

@ -5,6 +5,9 @@
margin: auto; margin: auto;
width: 95%; width: 95%;
@media screen and (min-width: 1920px) {
width: 75%;
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
flex-direction: column; flex-direction: column;
border-top: 1px solid #b9b9b9; border-top: 1px solid #b9b9b9;
@ -15,6 +18,10 @@
display: flex; display: flex;
padding: 62px 52px; padding: 62px 52px;
@media screen and (min-width: 1920px) {
padding: 62px 360px;
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
flex-direction: column; flex-direction: column;
padding: 16px 40px; padding: 16px 40px;