feat(dados_de_compra):titulo && cart btn estilizados

This commit is contained in:
Gustavo Rallenson Gonçalves Da Silva 2023-02-02 22:47:13 -03:00
parent feadf14905
commit 3eb41bad16
9 changed files with 122 additions and 30 deletions

View File

@ -80,8 +80,8 @@
}, },
"product-images": { "product-images": {
"props": { "props": {
"testid": "product-images", "testid": "product-images",
"aspectRatio": { "aspectRatio": {
"desktop": "auto", "desktop": "auto",
"phone": "auto" "phone": "auto"
}, },
@ -98,7 +98,6 @@
}, },
"children": [ "children": [
"flex-layout.row#product-name", "flex-layout.row#product-name",
"product-identifier.product",
"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",
@ -118,19 +117,24 @@
} }
}, },
"product-identifier.product": {
"props": {
"label": "hide" //'default' | 'custom' | 'hide'
}
},
"flex-layout.row#product-name": { "flex-layout.row#product-name": {
"props": { "props": {
"marginBottom": 3 "marginBottom": 3,
"blockClass": "title"
}, },
"children": ["vtex.store-components:product-name"] "children": [
"product-identifier.product",
"vtex.store-components:product-name"
]
}, },
"product-identifier.product": {
"props": {
"label": "hide", //'default' | 'custom' | 'hide'
"blockClass": "sku"
}
},
"sku-selector": { "sku-selector": {
"props": { "props": {
"variationsSpacing": 3, "variationsSpacing": 3,
@ -142,11 +146,17 @@
"props": { "props": {
"marginTop": 4, "marginTop": 4,
"marginBottom": 7, "marginBottom": 7,
"blockClass":"buy-button" "blockClass": "buy-button"
}, },
"children": ["product-quantity","add-to-cart-button"] "children": ["product-quantity", "add-to-cart-button"]
},
"product-quantity": {
"props": {
"width": "20%",
"showLabel": false,
"size": "regular"
}
}, },
"add-to-cart-button": { "add-to-cart-button": {
"props": { "props": {
"text": "ADICIONAR À SACOLA" "text": "ADICIONAR À SACOLA"

View File

@ -21,13 +21,12 @@
} }
.flexRowContent--buy-button .stretchChildrenWidth { .flexRowContent--buy-button .stretchChildrenWidth {
padding: 0; padding: 0;
width: max-content !important; justify-content: flex-start;
} }
.flexRowContent--buy-button .stretchChildrenWidth :global(.vtex-button) { .flexRowContent--buy-button .stretchChildrenWidth :global(.vtex-button) {
background: black; background: black;
height: 49px; height: 49px;
width: 100%; max-width: 526px;
min-width: 534px;
} }
@media screen and (min-width: 40em) { @media screen and (min-width: 40em) {
@ -137,3 +136,8 @@
:global(.vtex-shelf-1-x-slide) .flexRowContent--m3-shelf-price-selling-savings { :global(.vtex-shelf-1-x-slide) .flexRowContent--m3-shelf-price-selling-savings {
justify-content: center; justify-content: center;
} }
.flexRowContent--title {
align-items: end;
flex-direction: column-reverse;
}

View File

@ -1,3 +1,15 @@
/*
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 */
.product-identifier--productReference { .product-identifier--productReference {
margin-bottom: 1rem; display: block;
text-align: end;
margin-top: 8px;
padding-right: 8px;
} }

View File

@ -7,6 +7,31 @@
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Grid breakpoints */ /* Grid breakpoints */
.quantitySelectorTitle { .quantitySelectorStepper {
display: none; border: 1px solid #CCCCCC;
width: max-content;
min-width: 83.86%;
padding: 3.5px 0;
}
.quantitySelectorStepper :global(.vtex-numeric-stepper-wrapper) :global(.vtex-numeric-stepper-container) :global(.vtex-numeric-stepper__input) {
border: none;
max-width: 28px;
}
.quantitySelectorStepper :global(.vtex-numeric-stepper-wrapper) :global(.vtex-numeric-stepper-container) :global(.vtex-numeric-stepper__plus-button) {
border: none;
}
.quantitySelectorStepper :global(.vtex-numeric-stepper-wrapper) :global(.vtex-numeric-stepper-container) :global(.vtex-numeric-stepper__plus-button__text) {
color: #000;
}
.quantitySelectorStepper :global(.vtex-numeric-stepper-wrapper) :global(.vtex-numeric-stepper-container) :global(.vtex-numeric-stepper__minus-button__text) {
color: #000;
}
.quantitySelectorStepper :global(.vtex-numeric-stepper-wrapper) :global(.vtex-numeric-stepper-container) :global(.vtex-numeric-stepper__minus-button) {
border: none;
background: #fff;
}
.quantitySelectorContainer {
justify-content: center;
align-items: center;
} }

View File

@ -7,6 +7,10 @@
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Grid breakpoints */ /* Grid breakpoints */
.productNameContainer--quickview {
padding-right: 40px !important;
}
.skuSelectorContainer { .skuSelectorContainer {
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
@ -77,7 +81,6 @@
font-weight: 300; font-weight: 300;
font-size: 20px; font-size: 20px;
line-height: 34px; line-height: 34px;
padding-right: 20px;
color: #575757; color: #575757;
} }

View File

@ -9,12 +9,11 @@
gap: 10px; gap: 10px;
.stretchChildrenWidth{ .stretchChildrenWidth{
padding: 0; padding: 0;
width: max-content !important; justify-content: flex-start;
:global(.vtex-button){ :global(.vtex-button){
background: black; background: black;
height: 49px; height: 49px;
width: 100%; max-width: 526px;
min-width: 534px;
} }
} }
} }
@ -130,5 +129,9 @@
justify-content: center; justify-content: center;
} }
} }
.flexRowContent--title{
align-items: end;
flex-direction: column-reverse;
}

View File

@ -0,0 +1,8 @@
.product-identifier{
&--productReference{
display: block;
text-align: end;
margin-top: 8px;
padding-right: 8px;
}
}

View File

@ -1,3 +1,31 @@
.quantitySelectorTitle{ .quantitySelectorStepper{
display: none; border: 1px solid #CCCCCC;
width: max-content;
min-width: 83.86%;
padding: 3.5px 0;
:global(.vtex-numeric-stepper-wrapper){
:global(.vtex-numeric-stepper-container){
:global(.vtex-numeric-stepper__input){
border: none;
max-width: 28px;
}
:global(.vtex-numeric-stepper__plus-button){
border: none;
}
:global(.vtex-numeric-stepper__plus-button__text){
color: #000;
}
:global(.vtex-numeric-stepper__minus-button__text){
color: #000;
}
:global(.vtex-numeric-stepper__minus-button){
border: none;
background: #fff;
}
}
}
}
.quantitySelectorContainer{
justify-content: center;
align-items: center;
} }

View File

@ -1,6 +1,6 @@
.container{ .productNameContainer--quickview{
padding-right: 40px !important;
} }
.skuSelectorContainer{ .skuSelectorContainer{
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
@ -84,7 +84,6 @@
font-weight: 300; font-weight: 300;
font-size: 20px; font-size: 20px;
line-height: 34px; line-height: 34px;
padding-right: 20px;
color: #575757; color: #575757;
} }
.carouselContainer{ .carouselContainer{