feat(slider-layout): Implementa SASS do block slider-layout

This commit is contained in:
danielmoliaribarbosa 2023-02-10 16:04:43 -03:00
parent 6b7ee262e7
commit e7e2911766

View File

@ -0,0 +1,243 @@
.sliderLayoutContainer {
padding: 16px 360px 113px;
margin-bottom: -49px;
.sliderTrackContainer {
padding: 0 24px 36px;
.sliderTrack {
gap: 16px;
.slide {
.slideChildrenContainer {
:global(.vtex-product-summary-2-x-container) {
margin: 0;
width: 100%;
@media (min-width: 2560px) {
align-items: center;
max-width: 434.4px !important;
min-height: 543.4px !important;
}
:global(.vtex-product-summary-2-x-element) {
:global(.vtex-product-summary-2-x-imageContainer) {
display: flex;
width: 100%;
:global(.vtex-product-summary-2-x-imageNormal) {
height: 314px;
background-color: #ededed;
@media (min-width: 2560px) {
min-width: 434.4px;
min-height: 434.4px;
}
}
}
:global(.vtex-product-summary-2-x-nameContainer) {
display: flex;
padding: 0;
justify-content: center;
:global(.vtex-product-summary-2-x-productBrand) {
display: flex;
max-width: 282.4px;
height: auto;
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;
}
}
:global(.vtex-product-summary-2-x-priceContainer) {
display: flex;
order: 3;
padding: 0;
:global(.vtex-store-components-3-x-listPrice) {
display: flex;
justify-content: center;
align-items: center;
text-decoration-line: line-through;
gap: 1px;
:global(.vtex-store-components-3-x-listPriceLabel) {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
color: #bababa;
text-transform: lowercase;
text-decoration: none;
padding: 0;
}
:global(.vtex-store-components-3-x-listPriceValue) {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
color: #bababa;
text-decoration: none;
padding: 0;
}
}
:global(.vtex-store-components-3-x-listPrice)::after {
content: "por";
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
color: #bababa;
}
:global(.vtex-store-components-3-x-sellingPrice) {
padding: 0;
:global(.vtex-product-summary-2-x-currencyContainer) {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000;
:nth-child(n) {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000;
}
}
:global(.vtex-store-components-3-x-sellingPriceLabel) {
display: none;
}
}
:global(.vtex-store-components-3-x-installmentsPrice) {
display: none;
}
}
:global(.vtex-product-summary-2-x-buyButtonContainer) {
display: none;
}
:global(.vtex-product-summary-2-x-description) {
display: none;
}
:global(.vtex-product-summary-2-x-SKUSelectorContainer) {
display: none;
}
}
}
}
}
}
}
.paginationDotsContainer {
bottom: 113px;
align-items: center;
.paginationDot {
width: 10px;
height: 10px;
background-color: #000;
border: 0.5px solid #000;
}
.paginationDot--isActive {
background-color: #fff;
height: 17px !important;
width: 17px !important;
}
}
}
.slide {
.slideChildrenContainer {
:global(.vtex-product-summary-2-x-clearLink) {
:global(.vtex-product-summary-2-x-container) {
:global(.vtex-product-summary-2-x-element) {
.html--prateleira-flexcol {
display: flex;
}
}
}
}
}
}
@media screen and (max-width:1024px) {
:global(.vtex-product-summary-2-x-productBrand) {
font-size: 14px !important;
line-height: 19px !important;
height: auto !important;
}
:global(.vtex-product-summary-2-x-imageContainer) {
margin-bottom: 4px;
}
.sliderTrackContainer {
padding: 0 24px 24px !important;
}
.sliderTrack {
gap: 12px !important;
}
.sliderLayoutContainer {
margin-bottom: -49px;
}
}
@media screen and (max-width:376px) {
.sliderLayoutContainer {
margin-bottom: -81px;
}
.sliderTrack {
gap: 8px !important;
}
:global(.vtex-product-summary-2-x-imageContainer) {
:global(.vtex-product-summary-2-x-imageNormal) {
height: 124.8px !important;
}
}
.sliderTrackContainer {
padding-bottom: 16px !important;
}
}
@media screen and (min-width: 2560px){
:global(.vtex-slider-layout-0-x-sliderLeftArrow){
left: 344px;
}
:global(.vtex-slider-layout-0-x-sliderRightArrow){
right: 344px;
}
}