feat: adiciona query mobile

This commit is contained in:
Patrick Reis Santos 2023-02-10 20:54:44 -03:00
parent 7157d1e7c2
commit 4ed3c142ee
12 changed files with 185 additions and 4 deletions

View File

@ -35,12 +35,23 @@
width: unset !important; width: unset !important;
flex: 1; flex: 1;
} }
@media (max-width: 768px) {
.flexRowContent--addToBag .stretchChildrenWidth:last-child {
padding: 0;
margin-top: 10px;
}
}
.flexRowContent--addToBag .stretchChildrenWidth:last-child :global(.vtex-button) { .flexRowContent--addToBag .stretchChildrenWidth:last-child :global(.vtex-button) {
background-color: #000000; background-color: #000000;
border: none; border: none;
height: 49px; height: 49px;
box-sizing: border-box; box-sizing: border-box;
} }
@media (max-width: 768px) {
.flexRowContent--addToBag .stretchChildrenWidth:last-child :global(.vtex-button) {
height: 74px;
}
}
:global(.vtex-add-to-cart-button-0-x-buttonText) { :global(.vtex-add-to-cart-button-0-x-buttonText) {
font-size: 0; font-size: 0;
@ -53,4 +64,10 @@
font-size: 18px; font-size: 18px;
line-height: 25px; line-height: 25px;
color: #ffffff; color: #ffffff;
}
@media (max-width: 768px) {
:global(.vtex-add-to-cart-button-0-x-buttonText)::after {
width: 116px;
display: block;
}
} }

View File

@ -28,4 +28,8 @@
.element { .element {
padding: 0; padding: 0;
}
.imageWrapper {
margin-bottom: 16px;
} }

View File

@ -13,6 +13,16 @@
margin-bottom: 32px; margin-bottom: 32px;
margin-top: 0; margin-top: 0;
} }
@media (max-width: 1024px) {
.heading {
margin-bottom: 24px;
}
}
@media (max-width: 768px) {
.heading {
margin-bottom: 16px;
}
}
.heading::after { .heading::after {
content: "Você também pode gostar:"; content: "Você também pode gostar:";
font-family: "Open Sans"; font-family: "Open Sans";
@ -22,6 +32,11 @@
line-height: 38px; line-height: 38px;
color: #575757; color: #575757;
} }
@media (max-width: 768px) {
.heading::after {
font-size: 20px;
}
}
.container { .container {
justify-content: center; justify-content: center;

View File

@ -43,7 +43,12 @@
} }
.sliderRightArrow--carousel { .sliderRightArrow--carousel {
right: 20px; right: 50px;
}
@media (max-width: 768px) {
.sliderRightArrow--carousel {
right: 10px;
}
} }
.sliderRightArrow--carousel::after { .sliderRightArrow--carousel::after {
content: url(assets/right-arrow.png); content: url(assets/right-arrow.png);
@ -56,7 +61,12 @@
} }
.sliderLeftArrow--carousel { .sliderLeftArrow--carousel {
left: 20px; left: 50px;
}
@media (max-width: 768px) {
.sliderLeftArrow--carousel {
left: 10px;
}
} }
.sliderLeftArrow--carousel::after { .sliderLeftArrow--carousel::after {
content: url(assets/left-arrow.png); content: url(assets/left-arrow.png);

View File

@ -20,6 +20,12 @@
text-align: left; text-align: left;
} }
} }
@media (max-width: 768px) {
.productNameContainer--quickview .productBrand {
width: 220px !important;
display: block;
}
}
.skuSelectorContainer--sku-selector { .skuSelectorContainer--sku-selector {
display: flex; display: flex;
@ -121,6 +127,11 @@
width: 231px; width: 231px;
height: 49px; height: 49px;
} }
@media (max-width: 768px) {
.shippingContainer :global(.vtex-input-prefix__group) {
width: 100%;
}
}
.shippingContainer :global(.vtex-button) { .shippingContainer :global(.vtex-button) {
position: absolute; position: absolute;
border: 0; border: 0;
@ -129,6 +140,12 @@
top: 27px; top: 27px;
left: 229px; left: 229px;
} }
@media (max-width: 768px) {
.shippingContainer :global(.vtex-button) {
right: 0;
left: unset;
}
}
.shippingContainer :global(.vtex-button__label) { .shippingContainer :global(.vtex-button__label) {
background-color: #000000; background-color: #000000;
width: 49px; width: 49px;
@ -148,6 +165,11 @@
padding: 0; padding: 0;
margin-top: 16px; margin-top: 16px;
} }
@media (max-width: 768px) {
.shippingContainer :global(.vtex-address-form__postalCode) {
display: block;
}
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) { .shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) {
width: 280px; width: 280px;
} }
@ -167,6 +189,12 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
@media (max-width: 768px) {
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) {
justify-content: right;
padding: 0;
}
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :first-child { .shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :first-child {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -178,6 +206,13 @@
top: 5px; top: 5px;
left: 37px; left: 37px;
} }
@media (max-width: 768px) {
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :first-child {
position: initial;
padding: 0;
padding-top: 8px;
}
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) { .shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) {
display: none; display: none;
} }
@ -196,6 +231,11 @@
margin-bottom: 32px; margin-bottom: 32px;
} }
} }
@media (max-width: 768px) {
.carouselGaleryThumbs {
display: block !important;
}
}
.carouselGaleryThumbs :global(.vtex-store-components-3-x-thumbImg) { .carouselGaleryThumbs :global(.vtex-store-components-3-x-thumbImg) {
width: 90px; width: 90px;
height: 90px; height: 90px;

View File

@ -15,6 +15,12 @@
padding: 16px 24px 0 24px; padding: 16px 24px 0 24px;
} }
} }
@media (max-width: 768px) {
.contentContainer {
padding-left: 0;
padding-right: 0;
}
}
.contentContainer .contentItem { .contentContainer .contentItem {
display: flex; display: flex;
} }
@ -149,4 +155,10 @@
line-height: 38px; line-height: 38px;
text-transform: capitalize; text-transform: capitalize;
color: #000000; color: #000000;
}
@media (max-width: 768px) {
.container--description {
padding: 0 40px;
}
} }

View File

@ -27,11 +27,20 @@
width: unset !important; width: unset !important;
flex: 1; flex: 1;
@media (max-width: 768px) {
padding: 0;
margin-top: 10px;
}
:global(.vtex-button) { :global(.vtex-button) {
background-color: #000000; background-color: #000000;
border: none; border: none;
height: 49px; height: 49px;
box-sizing: border-box; box-sizing: border-box;
@media (max-width: 768px) {
height: 74px;
}
} }
} }
} }
@ -47,5 +56,10 @@
font-size: 18px; font-size: 18px;
line-height: 25px; line-height: 25px;
color: #ffffff; color: #ffffff;
@media (max-width: 768px) {
width: 116px;
display: block;
}
} }
} }

View File

@ -20,3 +20,7 @@
.element { .element {
padding: 0; padding: 0;
} }
.imageWrapper {
margin-bottom: 16px;
}

View File

@ -2,6 +2,13 @@
font-size: 0; font-size: 0;
margin-bottom: 32px; margin-bottom: 32px;
margin-top: 0; margin-top: 0;
@media (max-width: 1024px) {
margin-bottom: 24px;
}
@media (max-width: 768px) {
margin-bottom: 16px;
}
&::after { &::after {
content: "Você também pode gostar:"; content: "Você também pode gostar:";
@ -11,6 +18,10 @@
font-size: 24px; font-size: 24px;
line-height: 38px; line-height: 38px;
color: #575757; color: #575757;
@media (max-width: 768px) {
font-size: 20px;
}
} }
} }

View File

@ -33,7 +33,11 @@
} }
.sliderRightArrow--carousel { .sliderRightArrow--carousel {
right: 20px; right: 50px;
@media (max-width: 768px) {
right: 10px;
}
&::after { &::after {
content: url(assets/right-arrow.png); content: url(assets/right-arrow.png);
height: 30px; height: 30px;
@ -47,7 +51,10 @@
} }
.sliderLeftArrow--carousel { .sliderLeftArrow--carousel {
left: 20px; left: 50px;
@media (max-width: 768px) {
left: 10px;
}
&::after { &::after {
content: url(assets/left-arrow.png); content: url(assets/left-arrow.png);
height: 30px; height: 30px;

View File

@ -9,6 +9,13 @@
@media (max-width: 1024px) { @media (max-width: 1024px) {
text-align: left; text-align: left;
} }
.productBrand {
@media (max-width: 768px) {
width: 220px !important;
display: block;
}
}
} }
.skuSelectorContainer--sku-selector { .skuSelectorContainer--sku-selector {
@ -117,6 +124,10 @@
:global(.vtex-input-prefix__group) { :global(.vtex-input-prefix__group) {
width: 231px; width: 231px;
height: 49px; height: 49px;
@media (max-width: 768px) {
width: 100%;
}
} }
:global(.vtex-button) { :global(.vtex-button) {
position: absolute; position: absolute;
@ -125,6 +136,11 @@
height: 49px; height: 49px;
top: 27px; top: 27px;
left: 229px; left: 229px;
@media (max-width: 768px) {
right: 0;
left: unset;
}
} }
:global(.vtex-button__label) { :global(.vtex-button__label) {
background-color: #000000; background-color: #000000;
@ -144,6 +160,11 @@
display: flex; display: flex;
padding: 0; padding: 0;
margin-top: 16px; margin-top: 16px;
@media (max-width: 768px) {
display: block;
}
:global(.vtex-input) { :global(.vtex-input) {
width: 280px; width: 280px;
} }
@ -163,6 +184,12 @@
:global(.vtex-address-form__postalCode-forgottenURL) { :global(.vtex-address-form__postalCode-forgottenURL) {
display: flex; display: flex;
align-items: center; align-items: center;
@media (max-width: 768px) {
justify-content: right;
padding: 0;
}
:first-child { :first-child {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -173,6 +200,12 @@
position: relative; position: relative;
top: 5px; top: 5px;
left: 37px; left: 37px;
@media (max-width: 768px) {
position: initial;
padding: 0;
padding-top: 8px;
}
} }
:global(.vtex__icon-external-link) { :global(.vtex__icon-external-link) {
display: none; display: none;
@ -190,6 +223,10 @@
@media (max-width: 1024px) { @media (max-width: 1024px) {
margin-bottom: 32px; margin-bottom: 32px;
} }
@media (max-width: 768px) {
display: block !important;
}
:global(.vtex-store-components-3-x-thumbImg) { :global(.vtex-store-components-3-x-thumbImg) {
width: 90px; width: 90px;
height: 90px; height: 90px;

View File

@ -3,6 +3,10 @@
@media (max-width: 1024px) { @media (max-width: 1024px) {
padding: 16px 24px 0 24px; padding: 16px 24px 0 24px;
} }
@media (max-width: 768px) {
padding-left: 0;
padding-right: 0;
}
.contentItem { .contentItem {
display: flex; display: flex;
@ -135,3 +139,9 @@
color: #000000; color: #000000;
} }
} }
.container--description {
@media (max-width: 768px) {
padding: 0 40px;
}
}