Merge branch 'feature/prateleira' into development

This commit is contained in:
Andrea Matsunaga 2023-02-08 11:16:39 -03:00
commit 0ccf5c73ea
13 changed files with 452 additions and 117 deletions

View File

@ -1,7 +1,3 @@
/* [class*="html--product-images"] {
background-color: red;
} */
[class*="html--pix-price"] { [class*="html--pix-price"] {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
@ -9,3 +5,8 @@
margin-top: 8px; margin-top: 8px;
margin-bottom: 16px; margin-bottom: 16px;
} }
[data-testid="vtex-product-summary"] {
display: flex;
flex-direction: column;
}

View File

@ -4,10 +4,8 @@
"html#breadcrumb", "html#breadcrumb",
"condition-layout.product#availability", "condition-layout.product#availability",
"html#tab-layout", "html#tab-layout",
"flex-layout.row#specifications-title", "html#shelf-container",
"product-specification-group#table", "newsletter"
"shelf.relatedProducts",
"product-questions-and-answers"
] ]
}, },
"html#breadcrumb": { "html#breadcrumb": {
@ -122,15 +120,6 @@
"children": ["product-images", "product-description"] "children": ["product-images", "product-description"]
}, },
"flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"condition-layout.product#availability": { "condition-layout.product#availability": {
"props": { "props": {
"conditions": [ "conditions": [
@ -266,7 +255,7 @@
"flex-layout.col#right-col-availability" "flex-layout.col#right-col-availability"
] ]
}, },
"flex-layout.col#right-col-availability": { "flex-layout.col#right-col-availability": {
"props": { "props": {
"width": "50%", "width": "50%",
@ -297,5 +286,47 @@
"Pinterest": true "Pinterest": true
} }
} }
},
"html#shelf-container": {
"props": {
"blockClass": "shelf-container"
},
"children": ["rich-text#see-also", "list-context.product-list"]
},
"rich-text#see-also": {
"props": {
"text": "#### Você também pode gostar:",
"blockClass": "see-also"
}
},
"list-context.product-list": {
"blocks": ["product-summary.shelf"],
"children": ["html#slider"]
},
"html#slider": {
"props": {
"testId": "product-summary-list"
},
"children": ["slider-layout#related-products"]
},
"slider-layout#related-products": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "always",
"blockClass": "carousel"
// "fullWidth": false
}
// ,
// "children": ["rich-text#1", "rich-text#2", "rich-text#3"]
} }
} }

View File

@ -1,16 +1,20 @@
{ {
"product-summary.shelf": { "product-summary.shelf": {
"children": ["html#shelf"]
},
"html#shelf": {
"props": {
"testId": "vtex-product-summary"
},
"children": [ "children": [
"stack-layout#prodsum", "product-summary-image#shelf",
"product-summary-name", "product-summary-name",
"flex-layout.col#productRating",
"product-summary-space",
"product-list-price#summary", "product-list-price#summary",
"flex-layout.row#selling-price-savings", "product-selling-price#summary"
"product-installments#summary",
"add-to-cart-button"
] ]
}, },
"flex-layout.col#productRating": { "flex-layout.col#productRating": {
"props": { "props": {
"blockClass": "productRating" "blockClass": "productRating"
@ -18,19 +22,11 @@
"children": ["product-rating-inline"] "children": ["product-rating-inline"]
}, },
"stack-layout#prodsum": {
"children": [
"product-summary-image#shelf",
"vtex.product-highlights@2.x:product-highlights#collection",
"modal-trigger#quickview" // Check quickview.jsonc
]
},
"product-summary-image#shelf": { "product-summary-image#shelf": {
"props": { "props": {
"showBadge": false, "showBadge": false,
"aspectRatio": "1:1", "aspectRatio": "1:1",
"maxHeight": 300 "maxHeight": 1000
} }
}, },
@ -54,21 +50,11 @@
"product-list-price#summary": { "product-list-price#summary": {
"props": { "props": {
"blockClass": "summary" "blockClass": "summary",
"message": "de {listPriceValue} por"
} }
}, },
"flex-layout.row#selling-price-savings": {
"props": {
"colGap": 2,
"preserveLayoutOnMobile": true,
"preventHorizontalStretch": true,
"marginBottom": 4
},
"children": [
"product-selling-price#summary",
"product-price-savings#summary"
]
},
"product-installments#summary": { "product-installments#summary": {
"props": { "props": {
"blockClass": "summary" "blockClass": "summary"
@ -81,9 +67,7 @@
}, },
"product-price-savings#summary": { "product-price-savings#summary": {
"props": { "props": {
"markers": [ "markers": ["discount"],
"discount"
],
"blockClass": "summary" "blockClass": "summary"
} }
} }

View File

@ -30,4 +30,33 @@
font-weight: 300; font-weight: 300;
font-size: 13px; font-size: 13px;
color: #929292; color: #929292;
}
/* ----- SHELF ----- */
.listPrice--summary {
font-size: 14px;
line-height: 19px;
text-decoration-line: line-through;
color: #bababa;
}
@media only screen and (max-width: 1024px) {
.listPrice--summary {
font-size: 12px;
line-height: 16px;
}
}
.sellingPrice--summary {
padding-top: 8px;
}
.sellingPrice--summary .sellingPriceValue--summary {
font-size: 24px;
line-height: 33px;
color: #000000;
}
@media only screen and (max-width: 1024px) {
.sellingPrice--summary .sellingPriceValue--summary {
font-size: 18px;
line-height: 25px;
}
} }

View File

@ -0,0 +1,12 @@
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.nameContainer {
background-color: pink;
}

View File

@ -1,42 +1,56 @@
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox { /*
border-radius: 50%; 0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.container {
margin: 0;
border-radius: 0;
max-width: 1000px !important;
} }
.container .element {
.container :global(.vtex-modal-layout-0-x-triggerContainer) { padding: 0 8px;
opacity: 0;
transition: opacity 200ms ease-in-out;
} }
@media only screen and (max-width: 1024px) {
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) { .container .element {
opacity: 1; padding: 0 6px;
}
@media screen and (max-width: 40em) {
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
display: none;
} }
} }
@media only screen and (max-width: 639px) {
.nameContainer { .container .element {
justify-content: start; padding: 0 4px;
padding-top: 1rem; }
padding-bottom: 1rem;
} }
.container .element .imageContainer {
.brandName { width: 100%;
font-weight: 600; }
.container .element .imageContainer .image {
object-fit: cover !important;
}
.container .element .nameContainer {
padding: 16px 16px 8px;
}
@media only screen and (max-width: 1024px) {
.container .element .nameContainer {
padding: 16px 8px 8px;
}
}
.container .element .nameContainer .productBrand {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 18px; font-size: 18px;
color: #2E2E2E; line-height: 25px;
}
.container {
text-align: start;
}
.imageContainer {
text-align: center; text-align: center;
color: #000000;
} }
@media only screen and (max-width: 1024px) {
.image { .container .element .nameContainer .productBrand {
border-radius: 0.25rem; font-size: 14px;
} line-height: 19px;
}
}

View File

@ -6,4 +6,26 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Grid breakpoints */ /* Grid breakpoints */
.container--see-also {
justify-content: center;
}
.container--see-also .headingLevel4 {
margin: 16px 0 32px;
font-size: 24px;
line-height: 38px;
color: #575757;
}
@media only screen and (max-width: 1024px) {
.container--see-also .headingLevel4 {
margin-bottom: 24px;
}
}
@media only screen and (max-width: 639px) {
.container--see-also .headingLevel4 {
margin-bottom: 16px;
padding: 0 40px;
text-align: center;
font-size: 20px;
}
}

View File

@ -1,31 +1,85 @@
.sliderLayoutContainer { /*
justify-content: center; 0 - 600PX: Phone
} 600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.sliderLayoutContainer--carousel { .sliderLayoutContainer--carousel {
background-color: #F0F0F0; padding: 0 59.2px 113px;
min-height: 450px;
} }
@media only screen and (min-width: 1920px) {
.sliderTrackContainer { .sliderLayoutContainer--carousel {
max-width: 100%; padding: 0 379.2px 113px;
}
} }
@media only screen and (max-width: 1024px) {
.paginationDotsContainer { .sliderLayoutContainer--carousel {
margin-top: .5rem; padding: 0 57.2px 105px;
margin-bottom: .5rem; }
} }
@media only screen and (max-width: 639px) {
.layoutContainer--shelf { .sliderLayoutContainer--carousel {
margin-top: 20px; padding: 0 55.2px 65px;
margin-bottom: 20px; }
max-width: 96rem;
min-height: 550px;
} }
.sliderLayoutContainer--carousel .sliderArrows {
.slide--shelf { padding: 0;
margin-bottom: 25px; margin: 0;
padding-left: .5rem;
padding-right: .5rem;
min-height: 550px;
} }
.sliderLayoutContainer--carousel .sliderArrows.sliderLeftArrow {
margin-left: 40px;
}
@media only screen and (min-width: 1920px) {
.sliderLayoutContainer--carousel .sliderArrows.sliderLeftArrow {
margin-left: 360px;
}
}
.sliderLayoutContainer--carousel .sliderArrows.sliderLeftArrow::before {
content: "";
width: 11.2px;
height: 29.6px;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-andreamm.svg");
}
.sliderLayoutContainer--carousel .sliderArrows.sliderRightArrow {
margin-right: 40px;
}
@media only screen and (min-width: 1920px) {
.sliderLayoutContainer--carousel .sliderArrows.sliderRightArrow {
margin-right: 360px;
}
}
.sliderLayoutContainer--carousel .sliderArrows.sliderRightArrow::after {
content: "";
width: 11.2px;
height: 29.6px;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-andreamm.svg");
}
.sliderLayoutContainer--carousel .sliderArrows .caretIcon {
display: none;
}
.sliderLayoutContainer--carousel .paginationDotsContainer {
bottom: 64px;
gap: 12px;
align-items: center;
}
@media only screen and (max-width: 639px) {
.sliderLayoutContainer--carousel .paginationDotsContainer {
bottom: 32px;
}
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot {
width: 10px;
height: 10px;
margin: 0;
padding: 0;
background: #000000;
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot--isActive {
width: 17px !important;
height: 17px !important;
border: 0.5px solid #000000;
background: #ffffff;
}

View File

@ -15,14 +15,6 @@
width: 100% !important; width: 100% !important;
} }
} }
// @include mq(md, max)
// @media only screen and (max-width: 639px) {
// :global(.vtex-store-components-3-x-productImagesContainer--carousel) {
// background-color: blue;
// margin-bottom: 32px;
// }
// }
} }
/* ----- RIGHT-COL ----- */ /* ----- RIGHT-COL ----- */

View File

@ -26,3 +26,40 @@
font-size: 13px; font-size: 13px;
color: #929292; color: #929292;
} }
/* ----- SHELF ----- */
.listPrice--summary {
// background-color: red;
// font-family: "Open Sans";
// font-style: normal;
// font-weight: 400;
font-size: 14px;
line-height: 19px;
// text-align: center;
text-decoration-line: line-through;
color: #bababa;
@include mq(lg, max) {
font-size: 12px;
line-height: 16px;
}
}
.sellingPrice--summary {
padding-top: 8px;
// background-color: white;
.sellingPriceValue--summary {
// font-family: "Open Sans";
// font-style: normal;
// font-weight: 700;
font-size: 24px;
line-height: 33px;
color: #000000;
@include mq(lg, max) {
font-size: 18px;
line-height: 25px;
}
}
}

View File

@ -0,0 +1,54 @@
.container {
// background-color: green;
margin: 0;
border-radius: 0;
max-width: 1000px !important;
.element {
padding: 0 8px;
@include mq(lg, max) {
padding: 0 6px;
}
@include mq(md, max) {
padding: 0 4px;
}
.imageContainer {
// background: #ededed;
// background-color: yellow;
width: 100%;
.image {
// background: #ededed;
object-fit: cover !important;
// background-color: red;
}
}
.nameContainer {
padding: 16px 16px 8px;
@include mq(lg, max) {
padding: 16px 8px 8px;
}
.productBrand {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000000;
@include mq(lg, max) {
font-size: 14px;
line-height: 19px;
}
}
}
}
}

View File

@ -0,0 +1,23 @@
.container--see-also {
justify-content: center;
.headingLevel4 {
margin: 16px 0 32px;
// font-family: "Open Sans";
// font-weight: 400;
font-size: 24px;
line-height: 38px;
color: #575757;
@include mq(lg, max) {
margin-bottom: 24px;
}
@include mq(md, max) {
margin-bottom: 16px;
padding: 0 40px;
text-align: center;
font-size: 20px;
}
}
}

View File

@ -0,0 +1,82 @@
.sliderLayoutContainer--carousel {
// background-color: aqua;
padding: 0 59.2px 113px;
@include mq(xl, min) {
padding: 0 379.2px 113px;
}
@include mq(lg, max) {
padding: 0 57.2px 105px;
}
@include mq(md, max) {
padding: 0 55.2px 65px;
}
.sliderArrows {
// background-color: blue !important;
padding: 0;
margin: 0;
&.sliderLeftArrow {
margin-left: 40px;
@include mq(xl, min) {
margin-left: 360px;
}
&::before {
content: "";
width: 11.2px;
height: 29.6px;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-andreamm.svg");
}
}
&.sliderRightArrow {
margin-right: 40px;
@include mq(xl, min) {
margin-right: 360px;
}
&::after {
content: "";
width: 11.2px;
height: 29.6px;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-andreamm.svg");
}
}
.caretIcon {
display: none;
}
}
.paginationDotsContainer {
// background-color: lightgreen;
bottom: 64px;
gap: 12px;
align-items: center;
@include mq(md, max) {
bottom: 32px;
}
.paginationDot {
width: 10px;
height: 10px;
margin: 0;
padding: 0;
background: #000000;
&--isActive {
width: 17px !important;
height: 17px !important;
border: 0.5px solid #000000;
background: #ffffff;
}
}
}
}