feat: Cria área do produto mobile
This commit is contained in:
parent
45a071299f
commit
cf0a37e7c7
@ -5,12 +5,13 @@
|
|||||||
//"example-component",
|
//"example-component",
|
||||||
"condition-layout.product#availability",
|
"condition-layout.product#availability",
|
||||||
"tab-layout",
|
"tab-layout",
|
||||||
"flex-layout.row#specifications-title",
|
//"flex-layout.row#specifications-title",
|
||||||
"product-specification-group#table",
|
//"product-specification-group#table",
|
||||||
"shelf.relatedProducts",
|
"shelf.relatedProducts"
|
||||||
"product-questions-and-answers"
|
//"product-questions-and-answers"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"html#breadcrumb": {
|
"html#breadcrumb": {
|
||||||
"props": {
|
"props": {
|
||||||
"tag": "section",
|
"tag": "section",
|
||||||
@ -116,6 +117,9 @@
|
|||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
"flex-layout.row#product-name",
|
"flex-layout.row#product-name",
|
||||||
|
"product-identifier.product",
|
||||||
|
//"availability-subscriber",
|
||||||
|
//"product-assembly-options",
|
||||||
"product-rating-summary",
|
"product-rating-summary",
|
||||||
//"flex-layout.row#list-price-savings",
|
//"flex-layout.row#list-price-savings",
|
||||||
"flex-layout.row#selling-prices",
|
"flex-layout.row#selling-prices",
|
||||||
@ -123,12 +127,9 @@
|
|||||||
"pix-component",
|
"pix-component",
|
||||||
//"product-separator",
|
//"product-separator",
|
||||||
"sku-selector",
|
"sku-selector",
|
||||||
"product-identifier.product",
|
|
||||||
//"product-quantity",
|
//"product-quantity",
|
||||||
"product-assembly-options",
|
//"product-gifts",
|
||||||
"product-gifts",
|
|
||||||
"flex-layout.row#buy-button",
|
"flex-layout.row#buy-button",
|
||||||
"availability-subscriber",
|
|
||||||
"shipping-simulator",
|
"shipping-simulator",
|
||||||
"placeholder-component"
|
"placeholder-component"
|
||||||
//"share#default"
|
//"share#default"
|
||||||
@ -190,9 +191,9 @@
|
|||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
"flex-layout.row#product-name",
|
"flex-layout.row#product-name",
|
||||||
|
"product-identifier.product",
|
||||||
"flex-layout.row#availability",
|
"flex-layout.row#availability",
|
||||||
"sku-selector",
|
"sku-selector"
|
||||||
"product-identifier.product"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"flex-layout.row#availability": {
|
"flex-layout.row#availability": {
|
||||||
|
@ -15,6 +15,16 @@
|
|||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.flexRow .flexRowContent--productPanel {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.flexRow .flexRowContent--productPanel .stretchChildrenWidth {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
.flexRow .flexRowContent--productPanel .stretchChildrenWidth:first-child {
|
.flexRow .flexRowContent--productPanel .stretchChildrenWidth:first-child {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
justify-content: normal;
|
justify-content: normal;
|
||||||
@ -22,6 +32,12 @@
|
|||||||
.flexRow .flexRowContent--productPanel .flexCol--productShowcase {
|
.flexRow .flexRowContent--productPanel .flexCol--productShowcase {
|
||||||
padding: 0 32px 0 0;
|
padding: 0 32px 0 0;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.flexRow .flexRowContent--productPanel .flexCol--productShowcase {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.flexRow .flexRowContent--quantityAndBuy {
|
.flexRow .flexRowContent--quantityAndBuy {
|
||||||
margin: 0 0 16px;
|
margin: 0 0 16px;
|
||||||
}
|
}
|
||||||
|
@ -9,14 +9,20 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap");
|
||||||
/* Grid breakpoints */
|
/* Grid breakpoints */
|
||||||
.product-identifier--productReference {
|
.product-identifier--productReference {
|
||||||
position: absolute;
|
margin: 8px 0 0;
|
||||||
top: 42px;
|
display: flex;
|
||||||
right: 0;
|
justify-content: flex-end;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
color: rgba(146, 146, 146, 0.4784313725);
|
color: rgba(146, 146, 146, 0.4784313725);
|
||||||
}
|
}
|
||||||
.product-identifier--productReference__label, .product-identifier--productReference__separator {
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.product-identifier--productReference {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.product-identifier--productReference :global(.vtex-product-identifier-0-x-product-identifier__label),
|
||||||
|
.product-identifier--productReference :global(.vtex-product-identifier-0-x-product-identifier__separator) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
@ -9,7 +9,7 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap");
|
||||||
/* Grid breakpoints */
|
/* Grid breakpoints */
|
||||||
.sellingPrice--hasListPrice {
|
.sellingPrice--hasListPrice {
|
||||||
margin: 51px 0 0;
|
margin: 24px 0 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
|
@ -37,6 +37,11 @@
|
|||||||
.container .carouselContainer .carouselThumbBorder {
|
.container .carouselContainer .carouselThumbBorder {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.container .productImagesGallerySlide {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
.container .productImagesThumb {
|
.container .productImagesThumb {
|
||||||
max-height: 90px !important;
|
max-height: 90px !important;
|
||||||
margin: 0 16px 0 0;
|
margin: 0 16px 0 0;
|
||||||
@ -55,9 +60,20 @@
|
|||||||
max-width: 664px;
|
max-width: 664px;
|
||||||
min-height: 664px;
|
min-height: 664px;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.container .productImageTag--main {
|
||||||
|
min-height: 994px;
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
.container .productNameContainer {
|
.container .productNameContainer {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.container .productNameContainer {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
.container .productNameContainer .productBrand--quickview {
|
.container .productNameContainer .productBrand--quickview {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -103,6 +119,12 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid #989898;
|
border: 1px solid #989898;
|
||||||
}
|
}
|
||||||
|
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox .valueWrapper {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 19px;
|
||||||
|
color: rgba(185, 185, 185, 0.6);
|
||||||
|
}
|
||||||
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox .diagonalCross {
|
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox .diagonalCross {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-image: linear-gradient(to top left, transparent 44%, #d5d5d5, transparent 52%);
|
background-image: linear-gradient(to top left, transparent 44%, #d5d5d5, transparent 52%);
|
||||||
@ -110,6 +132,9 @@
|
|||||||
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox {
|
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox {
|
||||||
border: 2px solid #000;
|
border: 2px solid #000;
|
||||||
}
|
}
|
||||||
|
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox .valueWrapper {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorNameContainer {
|
.container .skuSelectorContainer .skuSelectorSubcontainer .skuSelectorNameContainer {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@ -127,7 +152,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.container .subscriberContainer {
|
.container .subscriberContainer {
|
||||||
margin: 43px 0 0;
|
margin: 24px 0 0;
|
||||||
}
|
}
|
||||||
.container .subscriberContainer :global(.vtex-store-components-3-x-title) {
|
.container .subscriberContainer :global(.vtex-store-components-3-x-title) {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
@ -159,6 +184,8 @@
|
|||||||
column-gap: 10px;
|
column-gap: 10px;
|
||||||
row-gap: 15px;
|
row-gap: 15px;
|
||||||
margin: 16px 0 0;
|
margin: 16px 0 0;
|
||||||
|
width: 100%;
|
||||||
|
max-width: initial;
|
||||||
}
|
}
|
||||||
.container .subscriberContainer :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-content) :global(.vtex-store-components-3-x-input) {
|
.container .subscriberContainer :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-content) :global(.vtex-store-components-3-x-input) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -10,13 +10,28 @@
|
|||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
|
|
||||||
.stretchChildrenWidth:first-child {
|
@include mq(lg, max) {
|
||||||
padding: 0;
|
flex-direction: column;
|
||||||
justify-content: normal;
|
}
|
||||||
|
|
||||||
|
.stretchChildrenWidth {
|
||||||
|
@include mq(lg, max) {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding: 0;
|
||||||
|
justify-content: normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexCol--productShowcase {
|
.flexCol--productShowcase {
|
||||||
padding: 0 32px 0 0;
|
padding: 0 32px 0 0;
|
||||||
|
|
||||||
|
@include mq(lg, max) {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 32px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
.product-identifier--productReference {
|
.product-identifier--productReference {
|
||||||
position: absolute;
|
margin: 8px 0 0;
|
||||||
top: 42px;
|
display: flex;
|
||||||
right: 0;
|
justify-content: flex-end;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
color: $color-gray8;
|
color: $color-gray8;
|
||||||
|
|
||||||
&__label,
|
@include mq(lg, max) {
|
||||||
&__separator {
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.vtex-product-identifier-0-x-product-identifier__label),
|
||||||
|
:global(.vtex-product-identifier-0-x-product-identifier__separator) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.sellingPrice--hasListPrice {
|
.sellingPrice--hasListPrice {
|
||||||
margin: 51px 0 0;
|
margin: 24px 0 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
|
@ -32,6 +32,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.productImagesGallerySlide {
|
||||||
|
@include mq(lg, max) {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.productImagesThumb {
|
.productImagesThumb {
|
||||||
max-height: 90px !important;
|
max-height: 90px !important;
|
||||||
margin: 0 16px 0 0;
|
margin: 0 16px 0 0;
|
||||||
@ -51,11 +57,20 @@
|
|||||||
object-fit: fill !important;
|
object-fit: fill !important;
|
||||||
max-width: 664px;
|
max-width: 664px;
|
||||||
min-height: 664px;
|
min-height: 664px;
|
||||||
|
|
||||||
|
@include mq(lg, max) {
|
||||||
|
min-height: 994px;
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.productNameContainer {
|
.productNameContainer {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
|
@include mq(lg, max) {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.productBrand--quickview {
|
.productBrand--quickview {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -105,6 +120,13 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid $color-gray9;
|
border: 1px solid $color-gray9;
|
||||||
|
|
||||||
|
.valueWrapper {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 19px;
|
||||||
|
color: $color-gray15;
|
||||||
|
}
|
||||||
|
|
||||||
.diagonalCross {
|
.diagonalCross {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
@ -118,6 +140,10 @@
|
|||||||
|
|
||||||
&--selected .skuSelectorInternalBox {
|
&--selected .skuSelectorInternalBox {
|
||||||
border: 2px solid $color-black2;
|
border: 2px solid $color-black2;
|
||||||
|
|
||||||
|
.valueWrapper {
|
||||||
|
color: $color-black2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,7 +174,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.subscriberContainer {
|
.subscriberContainer {
|
||||||
margin: 43px 0 0;
|
margin: 24px 0 0;
|
||||||
|
|
||||||
:global(.vtex-store-components-3-x-title) {
|
:global(.vtex-store-components-3-x-title) {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
@ -183,6 +209,8 @@
|
|||||||
column-gap: 10px;
|
column-gap: 10px;
|
||||||
row-gap: 15px;
|
row-gap: 15px;
|
||||||
margin: 16px 0 0;
|
margin: 16px 0 0;
|
||||||
|
width: 100%;
|
||||||
|
max-width: initial;
|
||||||
|
|
||||||
:global(.vtex-store-components-3-x-input) {
|
:global(.vtex-store-components-3-x-input) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -20,6 +20,7 @@ $color-gray11: #d5d5d5;
|
|||||||
$color-gray12: #868686;
|
$color-gray12: #868686;
|
||||||
$color-gray13: #b9b9b9;
|
$color-gray13: #b9b9b9;
|
||||||
$color-gray14: #bfbfbf;
|
$color-gray14: #bfbfbf;
|
||||||
|
$color-gray15: #b9b9b999;
|
||||||
|
|
||||||
$color-blue: #4267b2;
|
$color-blue: #4267b2;
|
||||||
|
|
||||||
@ -31,8 +32,8 @@ $grid-breakpoints: (
|
|||||||
cstm: 400,
|
cstm: 400,
|
||||||
sm: 576px,
|
sm: 576px,
|
||||||
md: 768px,
|
md: 768px,
|
||||||
lg: 992px,
|
lg: 1025px,
|
||||||
xl: 1200px,
|
xl: 2500px,
|
||||||
) !default;
|
) !default;
|
||||||
|
|
||||||
$z-index: (
|
$z-index: (
|
||||||
|
Loading…
Reference in New Issue
Block a user