feat: faz o site para telas de 1024px

This commit is contained in:
Leonardo Pereira Rocha 2023-02-10 14:04:56 -03:00
parent 741b36d69d
commit 8c81925dca
6 changed files with 227 additions and 94 deletions

View File

@ -1,14 +1,27 @@
[class*="productImageTag--main"] { [class*="productImageTag--main"] {
object-fit: none; object-fit: none !important;
width: 98.225% !important;
height: 100% !important;
max-height: 664px !important;
} }
[class*="flexRow--button-cart"] :global(.vtex-button) { [class*="flexRow--button-cart"] :global(.vtex-button) {
background-color: black; background-color: black;
border-color: black; border-color: black;
width: 97.952%;
height: 49px; height: 49px;
} }
[class*="flexRow--button-cart"] {
background-color: black;
border-color: black;
width: 73.464%;
height: 49px;
position: relative;
bottom: 72px;
left: 148px;
margin-left: 5px;
}
[class*="numeric-stepper__minus-button__text"] { [class*="numeric-stepper__minus-button__text"] {
position: absolute !important; position: absolute !important;
left: 50%; left: 50%;
@ -62,6 +75,11 @@
height: 46px; height: 46px;
} }
[class*="skuSelectorContainer"] {
display: flex;
flex-direction: column-reverse;
}
[class*="skuSelectorSubcontainer--cor"] [class*="skuSelectorSubcontainer--cor"]
:global(.vtex-store-components-3-x-skuSelectorName) { :global(.vtex-store-components-3-x-skuSelectorName) {
font-size: 0; font-size: 0;
@ -179,6 +197,20 @@
margin-left: 32px; margin-left: 32px;
} }
[class*="vtex-address-form__postalCode"] :global(.vtex-input__label) {
font-size: 0;
}
[class*="vtex-address-form__postalCode"] :global(.vtex-input__label)::after {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #929292;
content: "CALCULAR FRETE:";
}
[class*="vtex-address-form__postalCode-forgottenURL"] :global(.pointer) { [class*="vtex-address-form__postalCode-forgottenURL"] :global(.pointer) {
color: black; color: black;
text-decoration: underline; text-decoration: underline;
@ -208,7 +240,7 @@
} }
[class*="listContainer"] { [class*="listContainer"] {
justify-content: space-between; justify-content: space-around;
color: black; color: black;
background-color: transparent; background-color: transparent;
border-bottom: 1px solid #bfbfbf; border-bottom: 1px solid #bfbfbf;
@ -331,7 +363,7 @@
content: "ENTREGA"; content: "ENTREGA";
position: relative; position: relative;
right: 500%; right: 500%;
top: -30px; top: -23px;
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -344,7 +376,7 @@
content: "FRETE"; content: "FRETE";
position: relative; position: relative;
right: 329%; right: 329%;
top: -52px; top: -45px;
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -357,7 +389,7 @@
content: "PRAZO"; content: "PRAZO";
position: relative; position: relative;
right: 108%; right: 108%;
top: -72px; top: -67px;
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -476,7 +508,115 @@
} }
[class*="container--home"] { [class*="container--home"] {
width: 94.44%; margin: 0 40px;
margin-right: auto; }
margin-left: auto;
[class*="agenciamagma-store-theme-5-x-html--shipping"] {
position: relative;
bottom: 77px;
margin-top: 16px;
}
[class*="thumbImg--product-images"] {
width: 90px;
height: 90px;
gap: 16px;
display: flex;
}
[class*="productDescriptionText"]
:global(.vtex-store-components-3-x-container) {
margin: 0 !important;
}
[class*="vtex-store-components-3-x-container"] {
margin: 0 40px;
}
@media (max-width: 1024px) {
[class*="listContainer"] {
flex-direction: column;
}
[class*="vtex-store-components-3-x-container"]
:global(.vtex-flex-layout-0-x-flexRowContent) {
display: flex;
flex-direction: column;
}
[class*="vtex-flex-layout-0-x-stretchChildrenWidth"] {
width: 100% !important;
}
[class*="productNameContainer"] {
text-align: start !important;
}
[class*="product-identifier__value"] {
text-align: start !important;
position: unset !important;
}
[class*="productImageTag"] {
max-height: none !important;
width: 100% !important;
margin: auto !important;
}
[class*="ph5-m"] {
padding-left: 0 !important;
padding-right: 0 !important;
}
[class*="vtex-store-components-3-x-container"] {
margin: 0 40px;
}
[class*="flexRow--button-cart"] {
width: 85.382%;
}
[class*="productDescriptionContainer"] {
margin-left: 0px;
}
[class*="agenciamagma-store-theme-5-x-html--shipping"] {
position: relative !important;
bottom: 75.5px !important;
margin-top: 16px !important;
}
[class*="agenciamagma-store-theme-5-x-html--shipping"] {
position: relative !important;
bottom: 75.5px !important;
margin-top: 16px !important;
}
[class*="productDescriptionText"]
:global(.vtex-store-components-3-x-container) {
margin: 0 !important;
}
[class*="listContainer"] {
border-top: 1px solid #bfbfbf;
}
[class*="listItemActive"] :global(.vtex-button) {
border-bottom: none;
}
[class*="imageNormal"] {
width: 291.4px;
height: 291.4px;
}
[class*="listItem"] :global(.vtex-button):hover {
border-bottom: none;
}
[data-testid="product-description"] {
position: relative;
bottom: 125px;
}
[class*="thumbImg--product-images"] {
gap: 0px;
}
} }

View File

@ -66,7 +66,7 @@
"itemsPerPage": { "itemsPerPage": {
"desktop": 4, "desktop": 4,
"tablet": 3, "tablet": 3,
"phone": 1 "phone": 2
}, },
"infinite": true, "infinite": true,
"fullWidth": false, "fullWidth": false,

View File

@ -3,9 +3,9 @@
"children": [ "children": [
"html#breadcrumb", "html#breadcrumb",
"condition-layout.product#availability", "condition-layout.product#availability",
"tab-layout#home", "html#product-description",
"rich-text#textproducts", "rich-text#textproducts",
"list-context.product-list#demo1", "list-context.product-list#produtos",
"rich-text#textnewsletter", "rich-text#textnewsletter",
"newsletter", "newsletter",
"product-questions-and-answers" "product-questions-and-answers"
@ -47,8 +47,13 @@
"product-summary-price" "product-summary-price"
] ]
}, },
"list-context.product-list#demo1": { "list-context.product-list#produtos": {
"blocks": ["product-summary.shelf#demo1"], "blocks": ["product-summary.shelf#demo1"],
"children": ["html#slider"]
},
"html#slider": {
"props": { "testId": "product-summary-list" },
"children": ["slider-layout#demo-products"] "children": ["slider-layout#demo-products"]
}, },
@ -70,12 +75,17 @@
}, },
"flex-layout.row#description": { "flex-layout.row#description": {
"props": { "props": {
"width": {
"tablet": "100%"
},
"marginBottom": 7 "marginBottom": 7
}, },
"children": ["image#tab", "product-description"] "children": ["image#tab", "product-description"]
}, },
"condition-layout.product#availability": { "condition-layout.product#availability": {
"props": { "props": {
"blockClass": "produtoHome",
"id": "produtoHome",
"conditions": [ "conditions": [
{ {
"subject": "isProductAvailable" "subject": "isProductAvailable"
@ -122,11 +132,12 @@
} }
}, },
"flex-layout.row#product-image": { "flex-layout.row#product-image": {
"props": {}, "props": { "blockClass": "product-images" },
"children": ["html#product-images"] "children": ["html#product-images"]
}, },
"product-images": { "product-images": {
"props": { "props": {
"blockClass": "product-images",
"contentType": "images", "contentType": "images",
"showNavigationArrows": false, "showNavigationArrows": false,
"showPaginationDots": false, "showPaginationDots": false,
@ -139,13 +150,17 @@
} }
}, },
"html#shipping-simulator": {
"props": {
"blockClass": "shipping",
"testId": "shipping-simulator"
},
"children": ["shipping-simulator"]
},
"html#product-images": { "html#product-images": {
"props": { "props": {
"thumbnailsOrientation": "horizontal", "blockClass": "product-images",
"tag": "section",
"infinite": "true",
"preventHorizontalStretch": "true",
"verticalAlign": "bottom",
"testId": "product-images" "testId": "product-images"
}, },
"children": ["product-images"] "children": ["product-images"]
@ -158,33 +173,55 @@
}, },
"children": [ "children": [
"flex-layout.row#product-name", "flex-layout.row#product-name",
"product-identifier.product", "html#codigo",
"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#m3-academy", "html#product-installments",
"ProductContext", "html#pix",
"sku-selector", "html#sku-selector",
"html#product-quantity",
"product-gifts", "product-gifts",
"flex-layout.row#buy-button", "flex-layout.row#buy-button",
"availability-subscriber", "availability-subscriber",
"shipping-simulator" "html#shipping-simulator"
] ]
}, },
"html#sku-selector": {
"props": { "testId": "sku-selector" },
"children": ["sku-selector"]
},
"html#pix": {
"props": { "testId": "pix-price", "blockClass": "pix" },
"children": ["ProductContext"]
},
"html#product-installments": {
"props": { "testId": "product-installments" },
"children": ["product-installments"]
},
"image#tab": { "image#tab": {
"props": { "props": {
"src": "assets/img-sapato.png" "src": "assets/img-sapato.png"
} }
}, },
"tab-layout#home": { "tab-layout": {
"children": ["tab-list#home", "tab-content#home"], "children": ["tab-list#home", "tab-content#home"],
"props": { "props": {
"blockClass": "home", "blockClass": "home",
"defaultActiveTabId": "home1" "defaultActiveTabId": "home1"
} }
}, },
"html#product-description": {
"props": { "testId": "product-description" },
"children": ["tab-layout"]
},
"tab-list#home": { "tab-list#home": {
"children": [ "children": [
"tab-list.item#home1", "tab-list.item#home1",
@ -270,7 +307,7 @@
} }
}, },
"product-installments#m3-academy": { "product-installments": {
"props": { "props": {
"installmentsCriteria": "max-quantity-without-interest", "installmentsCriteria": "max-quantity-without-interest",
"markers": ["discount", "vezes"], "markers": ["discount", "vezes"],
@ -283,6 +320,11 @@
"props": { "props": {
"marginBottom": 3 "marginBottom": 3
}, },
"children": ["html#product-name"]
},
"html#product-name": {
"props": { "testId": "product-name" },
"children": ["vtex.store-components:product-name"] "children": ["vtex.store-components:product-name"]
}, },
@ -300,11 +342,15 @@
"marginBottom": 7, "marginBottom": 7,
"blockClass": "button-cart" "blockClass": "button-cart"
}, },
"children": ["product-quantity", "html#add-to-cart-button"] "children": ["html#add-to-cart-button"]
}, },
"product-quantity": { "product-quantity": {
"props": { "width": "25%" } "props": {}
},
"html#product-quantity": {
"props": { "testId": "product-quantity" },
"children": ["product-quantity"]
}, },
"html#add-to-cart-button": { "html#add-to-cart-button": {
@ -334,11 +380,17 @@
}, },
"children": [ "children": [
"flex-layout.row#product-name", "flex-layout.row#product-name",
"product-identifier.product", "html#codigo",
"sku-selector", "flex-layout.row#availability",
"flex-layout.row#availability" "sku-selector"
] ]
}, },
"html#codigo": {
"props": { "blockClass": "codigo", "testId": "product-code" },
"children": ["product-identifier.product"]
},
"flex-layout.row#availability": { "flex-layout.row#availability": {
"props": { "props": {
"blockClass": "message-availability" "blockClass": "message-availability"

View File

@ -1,52 +1,8 @@
.homeIcon { .homeIcon {
visibility: hidden; display: none;
} }
.homeLink::after {
.arrow--1 {
visibility: hidden;
content: "";
}
.arrow--1::after {
visibility: visible;
content: "Home"; content: "Home";
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #929292;
}
.link--2 {
visibility: hidden;
content: "";
}
.link--2::after {
visibility: visible;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #929292;
content: "Sapatos";
}
.term {
visibility: hidden;
}
.term::after {
visibility: visible;
content: "Sandálias";
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #929292;
position: relative; position: relative;
right: 230px; bottom: 2px;
} }

View File

@ -1,11 +1,2 @@
@media screen and (max-width: 1024px) {
.flexRowContent {
display: flex;
flex-direction: column;
}
}
.flexRowContent {
margin-right: 40px;
margin-left: 40px;
}

View File

@ -3,12 +3,6 @@
padding: 0 0.5rem; padding: 0 0.5rem;
} }
@media screen and (max-width: 1024px) {
.flexRowContent {
display: flex;
flex-direction: column;
}
}
@media screen and (min-width: 40em) { @media screen and (min-width: 40em) {
.flexRowContent--menu-link, .flexRowContent--menu-link,