Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 93 commits from feature/challenge-vtex-io into develop 2023-02-03 17:14:03 +00:00
2 changed files with 196 additions and 24 deletions
Showing only changes of commit 600bd52d4c - Show all commits

View File

@ -1,31 +1,99 @@
.sliderLayoutContainer { /*
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 */
.sliderLayoutContainer--carousel {
background: unset;
min-height: 448.4px;
margin-bottom: 64px;
}
.sliderLayoutContainer--carousel .sliderTrackContainer {
margin-bottom: 32px;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) {
max-width: 314.4px !important;
border-radius: 0;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) {
min-height: 448.4px;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) {
padding: 0;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-nameContainer) {
padding: 16px 0 8px;
display: flex;
justify-content: center; justify-content: center;
} }
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productNameContainer) :global(.vtex-product-summary-2-x-productBrand) {
.sliderLayoutContainer--carousel { font-weight: 400;
background-color: #F0F0F0; font-size: 18px;
min-height: 450px; line-height: 25px;
text-align: center;
color: #000000;
display: inline-block;
vertical-align: text-top;
min-height: 50px;
} }
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) {
.sliderTrackContainer { width: 314.4px;
max-width: 100%; height: 314.4px;
} }
@media (max-width: 1920px) and (min-width: 1024px) {
.paginationDotsContainer { .sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) {
margin-top: .5rem; min-width: 100%;
margin-bottom: .5rem; }
} }
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) {
.layoutContainer--shelf { padding: 0;
margin-top: 20px;
margin-bottom: 20px;
max-width: 96rem;
min-height: 550px;
} }
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) {
.slide--shelf { row-gap: 8px;
margin-bottom: 25px;
padding-left: .5rem;
padding-right: .5rem;
min-height: 550px;
} }
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) :global(.vtex-store-components-3-x-listPrice) {
padding: 0;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
text-decoration-line: line-through;
color: #bababa;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) :global(.vtex-store-components-3-x-listPrice) :global(.vtex-store-components-3-x-listPriceLabel) {
text-transform: lowercase;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) :global(.vtex-store-components-3-x-sellingPrice) {
padding: 0;
display: flex;
justify-content: center;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) :global(.vtex-store-components-3-x-sellingPrice) :global(.vtex-store-components-3-x-sellingPriceLabel) {
display: none;
}
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack .slide--carousel .slideChildrenContainer--carousel :global(.vtex-product-summary-2-x-containerNormal) :global(.vtex-product-summary-2-x-clearLink) :global(.vtex-product-summary-2-x-element) :global(.vtex-product-summary-2-x-priceContainer) :global(.vtex-store-components-3-x-priceContainer) :global(.vtex-store-components-3-x-sellingPrice) :global(.vtex-store-components-3-x-sellingPrice) {
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000000;
}
.sliderLayoutContainer--carousel .paginationDotsContainer {
display: flex;
align-items: center;
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot {
background-color: #000000;
width: 10px !important;
height: 10px !important;
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot--isActive {
background-color: #ffffff;
border: 0.5px solid #000000;
width: 17px !important;
height: 17px !important;
}

View File

@ -0,0 +1,104 @@
//Slider
.sliderLayoutContainer--carousel {
background: unset;
min-height: 448.4px;
margin-bottom: 64px;
.sliderTrackContainer {
margin-bottom: 32px;
.sliderTrack {
.slide--carousel {
.slideChildrenContainer--carousel {
:global(.vtex-product-summary-2-x-containerNormal) {
max-width: 314.4px !important;
border-radius: 0;
:global(.vtex-product-summary-2-x-clearLink) {
min-height: 448.4px;
:global(.vtex-product-summary-2-x-element) {
padding: 0;
:global(.vtex-product-summary-2-x-nameContainer) {
padding: 16px 0 8px;
display: flex;
justify-content: center;
:global(.vtex-product-summary-2-x-productNameContainer) {
:global(.vtex-product-summary-2-x-productBrand) {
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000000;
display: inline-block;
vertical-align: text-top;
min-height: 50px;
}
}
}
:global(.vtex-product-summary-2-x-imageContainer) {
width: 314.4px;
height: 314.4px;
:global(.vtex-product-summary-2-x-imageContainer) {
:global(.vtex-product-summary-2-x-imageNormal) {
@media (max-width: 1920px) and (min-width: 1024px) {
// min-width: 314.4px;
min-width: 100%;
}
}
}
}
:global(.vtex-product-summary-2-x-priceContainer) {
padding: 0;
:global(.vtex-store-components-3-x-priceContainer) {
row-gap: 8px;
:global(.vtex-store-components-3-x-listPrice) {
padding: 0;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
text-decoration-line: line-through;
color: #bababa;
:global(.vtex-store-components-3-x-listPriceLabel) {
text-transform: lowercase;
}
}
:global(.vtex-store-components-3-x-sellingPrice) {
padding: 0;
display: flex;
justify-content: center;
// flex-direction: column;
:global(.vtex-store-components-3-x-sellingPriceLabel) {
display: none;
}
:global(.vtex-store-components-3-x-sellingPrice) {
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000000;
}
}
}
}
}
}
}
}
}
}
}
.paginationDotsContainer {
display: flex;
align-items: center;
.paginationDot {
background-color: #000000;
width: 10px !important;
height: 10px !important;
}
.paginationDot--isActive {
background-color: #ffffff;
border: 0.5px solid #000000;
width: 17px !important;
height: 17px !important;
}
}
}