feat: adiciona estilos iniciais sku

This commit is contained in:
Rafael Sampaio de Oliveira 2023-01-25 18:01:47 -03:00
parent d8837ed7bd
commit d25e7b790d
11 changed files with 260 additions and 13 deletions

View File

@ -3,7 +3,9 @@
"props": { "props": {
"blockClass": "addToCart", "blockClass": "addToCart",
"addToCartFeedback": "customEvent", "addToCartFeedback": "customEvent",
"customPixelEventId": "add-to-cart-button" "customPixelEventId": "add-to-cart-button",
"width": "73%",
"text": "ADICIONAR À SACOLA"
} }
}, },

View File

@ -100,6 +100,7 @@
}, },
"flex-layout.col#right-col": { "flex-layout.col#right-col": {
"props": { "props": {
"blockClass": "right-col",
"preventVerticalStretch": true, "preventVerticalStretch": true,
"rowGap": 0 "rowGap": 0
}, },
@ -110,7 +111,6 @@
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments", "product-installments",
"sku-selector", "sku-selector",
"product-assembly-options",
"product-gifts", "product-gifts",
"flex-layout.row#buy-button", "flex-layout.row#buy-button",
"availability-subscriber", "availability-subscriber",
@ -141,8 +141,7 @@
"sku-selector": { "sku-selector": {
"props": { "props": {
"variationsSpacing": 3, "variationsSpacing": 3
"showValueNameForImageVariation": true
} }
}, },
@ -152,7 +151,16 @@
"marginTop": 4, "marginTop": 4,
"marginBottom": 7 "marginBottom": 7
}, },
"children": ["product-quantity", "add-to-cart-button#addToCart"] "children": ["product-quantity#addToCart", "add-to-cart-button#addToCart"]
},
"product-quantity#addToCart": {
"props": {
"blockClass": "addToCartQuantity",
"showLabel": false,
"size": "large",
"width": "24%"
}
}, },
"flex-layout.row#product-availability": { "flex-layout.row#product-availability": {

View File

@ -0,0 +1,9 @@
/*
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 */

View File

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 */
.flexRowContent--buy-button .pr7 {
width: 22%;
}

View File

@ -1,3 +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 */
.flexRowContent--menu-link, .flexRowContent--menu-link,
.flexRowContent--main-header { .flexRowContent--main-header {
padding: 0 0.5rem; padding: 0 0.5rem;
@ -9,14 +18,12 @@
padding: 0 1rem; padding: 0 1rem;
} }
} }
@media screen and (min-width: 80rem) { @media screen and (min-width: 80rem) {
.flexRowContent--menu-link, .flexRowContent--menu-link,
.flexRowContent--main-header { .flexRowContent--main-header {
padding: 0 0.25rem; padding: 0 0.25rem;
} }
} }
.flexRowContent--menu-link { .flexRowContent--menu-link {
background-color: #03044e; background-color: #03044e;
color: #fff; color: #fff;
@ -99,4 +106,4 @@
.flexRow--addToCartRow { .flexRow--addToCartRow {
padding-bottom: 1rem; padding-bottom: 1rem;
} }

View File

@ -0,0 +1,3 @@
/* .quantitySelectorSteper--addToCart {
border-radius: 0;
} */

View File

@ -28,6 +28,44 @@
display: none; display: none;
} }
.thumbImg { .shareLabel {
width: 90px; display: none;
} }
.skuSelectorContainer {
display: flex;
flex-direction: column;
}
.skuSelectorItem {
height: 40px !important;
width: 40px;
}
.frameAround {
border-radius: 50%;
}
.diagonalCross {
transform: rotate(90deg);
}
.skuSelectorInternalBox {
border-radius: 50%;
display: flex;
justify-content: center;
}
.skuSelectorSubcontainer--cor {
order: 2;
}
.skuSelectorSubcontainer--tamanho {
order: 1;
}
.productImagesThumb .figure .thumbImg {
width: 90px;
height: 90px;
border-radius: 8px;
}

View File

@ -0,0 +1,4 @@
.hideDecorators {
border-left: 0;
border-right: 0;
}

View File

@ -0,0 +1,102 @@
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.5rem;
}
@media screen and (min-width: 40em) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 1rem;
}
}
@media screen and (min-width: 80rem) {
.flexRowContent--menu-link,
.flexRowContent--main-header {
padding: 0 0.25rem;
}
}
.flexRowContent--menu-link {
background-color: #03044e;
color: #fff;
}
.flexRowContent--main-header {
background-color: #f0f0f0;
}
.flexRowContent--main-header-mobile {
align-items: center;
padding: 0.625rem 0.5rem;
background-color: #f0f0f0;
}
.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) {
color: #ffffff;
font-size: 14px;
}
.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) {
color: #727273;
font-size: 14px;
}
.flexRowContent--buy-button {
height: 49px;
}
.flexRow--deals {
background-color: #0f3e99;
padding: 14px 0px;
}
.flexRow--deals .stretchChildrenWidth {
align-items: center;
}
.flexRow--deals .flexCol {
align-items: center;
margin-bottom: 5px;
padding-top: 5px;
}
.flexCol--filterCol {
max-width: 500px;
min-width: 230px;
}
.flexCol--productCountCol {
align-items: flex-start;
}
.flexCol--orderByCol {
align-items: flex-end;
}
.flexCol--orderByMobileCol {
width: 42%;
}
.flexCol--filterMobileCol {
width: 38%;
}
.flexRow--quickviewMainRow {
display: flex;
max-height: 100%;
}
.flexColChild--quickviewDetails:first-child {
overflow-y: auto;
height: 66% !important;
overflow-x: hidden;
}
.flexColChild--quickviewDetails:last-child {
height: 34% !important;
}
.flexRow--addToCartRow {
padding-bottom: 1rem;
}

View File

@ -1,3 +1,65 @@
.newsletter{ .newsletter {
background: red; background: red;
} }
.productBrand--quickview {
display: flex;
justify-content: end;
}
.carouselGaleryThumbs {
max-height: 90px;
}
.productImageTag--main {
max-width: 664px;
}
.carouselThumbBorder {
display: none;
}
.shareLabel {
display: none;
}
.skuSelectorContainer {
display: flex;
flex-direction: column;
}
.skuSelectorItem {
height: 40px !important;
width: 40px;
}
.frameAround {
border-radius: 50%;
}
.diagonalCross {
transform: rotate(90deg);
}
.skuSelectorInternalBox {
border-radius: 50%;
display: flex;
justify-content: center;
}
.skuSelectorSubcontainer--cor {
order: 2;
}
.skuSelectorSubcontainer--tamanho {
order: 1;
}
.productImagesThumb {
.figure {
.thumbImg {
width: 90px;
height: 90px;
border-radius: 8px;
}
}
}