feat: adiciona css responsivo mobile

This commit is contained in:
SamuelCondack 2023-02-10 11:07:40 -03:00
parent 4f1f29cd85
commit 4751a56682
2 changed files with 62 additions and 2 deletions

View File

@ -40,7 +40,17 @@
width: 94%;
}
.sliderLayoutContainer .sliderTrackContainer .sliderTrack {
gap: 16px;
gap: 2px;
}
@media (min-width: 300px) {
.sliderLayoutContainer .sliderTrackContainer .sliderTrack {
gap: 8px;
}
}
@media (min-width: 500px) {
.sliderLayoutContainer .sliderTrackContainer .sliderTrack {
gap: 16px;
}
}
.sliderLayoutContainer .sliderTrackContainer .sliderTrack .slide .slideChildrenContainer :global(.vtex-product-summary-2-x-container) {
margin: 0;
@ -57,12 +67,36 @@
.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-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) {
width: 100%;
height: 100%;
min-height: 94px;
}
.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;
padding: 0;
justify-content: center;
}
.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) :global(.vtex-product-summary-2-x-productBrand) {
display: flex;
max-width: 282.4px;
height: 132px;
align-items: center;
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000;
}
@media (min-width: 500px) {
.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) :global(.vtex-product-summary-2-x-productBrand) {
height: 50px;
}
}
@media (max-width: 300px) {
.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) :global(.vtex-product-summary-2-x-productBrand) {
font-size: 16px;
}
}
.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) :global(.vtex-product-summary-2-x-productBrand) {
display: flex;
max-width: 282.4px;

View File

@ -29,7 +29,13 @@
width: 94%;
.sliderTrack {
gap: 16px;
gap: 2px;
@media (min-width: 300px){
gap: 8px;
}
@media (min-width: 500px){
gap: 16px;
}
.slide {
.slideChildrenContainer {
@ -47,6 +53,7 @@
:global(.vtex-product-summary-2-x-imageNormal) {
width: 100%;
height: 100%;
min-height: 94px;
}
}
}
@ -55,6 +62,25 @@
display: flex;
padding: 0;
justify-content: center;
:global(.vtex-product-summary-2-x-productBrand) {
display: flex;
max-width: 282.4px;
height: 132px;
align-items: center;
font-family: 'Open Sans', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000;
@media (min-width: 500px) {
height: 50px;
}
@media (max-width: 300px) {
font-size: 16px;
}
}
:global(.vtex-product-summary-2-x-productBrand) {
display: flex;