feat: adiciona layout mobile
This commit is contained in:
parent
fbe0abb61e
commit
c61e4da934
@ -30,12 +30,12 @@
|
|||||||
"testId": "vtex-product-summary"
|
"testId": "vtex-product-summary"
|
||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
"product-summary-name",
|
|
||||||
"product-summary-description",
|
|
||||||
"product-summary-image",
|
"product-summary-image",
|
||||||
"product-summary-price",
|
"product-summary-name",
|
||||||
"product-summary-sku-selector",
|
"product-list-price",
|
||||||
"product-summary-buy-button"
|
"product-selling-price",
|
||||||
|
"product-summary-description"
|
||||||
|
// "product-summary-price",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"product-summary-image": {
|
"product-summary-image": {
|
||||||
@ -482,4 +482,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -19,6 +19,12 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
color: rgba(146, 146, 146, 0.48);
|
color: rgba(146, 146, 146, 0.48);
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.product-identifier {
|
||||||
|
text-align: left;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
.product-identifier .product-identifier__label,
|
.product-identifier .product-identifier__label,
|
||||||
.product-identifier .product-identifier__separator {
|
.product-identifier .product-identifier__separator {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
}
|
}
|
||||||
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) {
|
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 1;
|
|
||||||
}
|
}
|
||||||
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-store-components-3-x-discountContainer) :global(.vtex-store-components-3-x-discountInsideContainer) {
|
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-store-components-3-x-discountContainer) :global(.vtex-store-components-3-x-discountInsideContainer) {
|
||||||
display: none;
|
display: none;
|
||||||
@ -47,7 +46,6 @@
|
|||||||
}
|
}
|
||||||
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-nameContainer) {
|
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-nameContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 2;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@ -56,7 +54,6 @@
|
|||||||
max-width: 282.4px;
|
max-width: 282.4px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
order: 4;
|
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -67,7 +64,6 @@
|
|||||||
}
|
}
|
||||||
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) {
|
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 3;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-listPrice) {
|
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-listPrice) {
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
.container {
|
.container {
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.container :global(.vtex-flex-layout-0-x-flexRowContent) {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.newsletter {
|
.newsletter {
|
||||||
background: black;
|
background: black;
|
||||||
@ -101,6 +107,11 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
justify-content: right;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.productNameContainer {
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
.productNameContainer .productBrand--quickview {
|
.productNameContainer .productBrand--quickview {
|
||||||
font-family: "Open Sans";
|
font-family: "Open Sans";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -110,11 +121,22 @@
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
color: #575757;
|
color: #575757;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.productNameContainer .productBrand--quickview {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.productDescriptionContainer {
|
.productDescriptionContainer {
|
||||||
max-width: 632px;
|
max-width: 632px;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.productDescriptionContainer {
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pointerEventsNone {
|
.pointerEventsNone {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -15,6 +15,13 @@
|
|||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.listContainer {
|
||||||
|
flex-direction: column;
|
||||||
|
border-top: #BFBFBF 1px solid;
|
||||||
|
border-spacing: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.listContainer::after {
|
.listContainer::after {
|
||||||
content: "";
|
content: "";
|
||||||
background-color: #BFBFBF;
|
background-color: #BFBFBF;
|
||||||
@ -48,4 +55,9 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
|
}
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.listItemActive :global(.vtex-button) {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
}
|
}
|
@ -2,13 +2,16 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-right: 40px;
|
margin-right: 40px;
|
||||||
|
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
text-align: left;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
||||||
color: rgba(146, 146, 146, 0.48);
|
color: rgba(146, 146, 146, 0.48);
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
:global(.vtex-product-summary-2-x-imageContainer) {
|
:global(.vtex-product-summary-2-x-imageContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 1;
|
|
||||||
|
|
||||||
:global(.vtex-store-components-3-x-discountContainer) {
|
:global(.vtex-store-components-3-x-discountContainer) {
|
||||||
:global(.vtex-store-components-3-x-discountInsideContainer) {
|
:global(.vtex-store-components-3-x-discountInsideContainer) {
|
||||||
@ -46,7 +45,6 @@
|
|||||||
}
|
}
|
||||||
:global(.vtex-product-summary-2-x-nameContainer) {
|
:global(.vtex-product-summary-2-x-nameContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 2;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
@ -55,7 +53,6 @@
|
|||||||
max-width: 282.4px;
|
max-width: 282.4px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
order: 4;
|
|
||||||
|
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -68,7 +65,6 @@
|
|||||||
}
|
}
|
||||||
:global(.vtex-product-summary-2-x-priceContainer) {
|
:global(.vtex-product-summary-2-x-priceContainer) {
|
||||||
display: flex;
|
display: flex;
|
||||||
order: 3;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
:global(.vtex-store-components-3-x-listPrice) {
|
:global(.vtex-store-components-3-x-listPrice) {
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
}
|
}
|
||||||
.container{
|
.container{
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
|
:global(.vtex-flex-layout-0-x-flexRowContent){
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.newsletter{
|
.newsletter{
|
||||||
background: black;
|
background: black;
|
||||||
@ -91,6 +97,9 @@
|
|||||||
.productNameContainer{
|
.productNameContainer{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
justify-content: right;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
||||||
.productBrand--quickview{
|
.productBrand--quickview{
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
@ -100,11 +109,18 @@
|
|||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
color: #575757;
|
color: #575757;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.productDescriptionContainer{
|
.productDescriptionContainer{
|
||||||
max-width: 632px;
|
max-width: 632px;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.pointerEventsNone{
|
.pointerEventsNone{
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
flex-direction: column;
|
||||||
|
border-top: #BFBFBF 1px solid;
|
||||||
|
border-spacing: 40px;
|
||||||
|
}
|
||||||
&::after{
|
&::after{
|
||||||
content: "";
|
content: "";
|
||||||
background-color: #BFBFBF;
|
background-color: #BFBFBF;
|
||||||
@ -38,4 +43,7 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
|
@media (max-width: 1024px){
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user