challenge-vtex-io-gabriel-g.../styles/css/vtex.slider-layout.css

182 lines
6.2 KiB
CSS
Raw Permalink Normal View History

/*
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 */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");
/* Grid breakpoints */
.sliderLayoutContainer--carousel {
background-color: transparent;
height: 630px;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel {
height: 393px;
}
}
.sliderLayoutContainer--carousel .sliderTrackContainer {
margin: 32px 27px 32px 27px;
2023-02-08 03:55:02 +00:00
padding-bottom: 32px;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .sliderTrackContainer {
padding-bottom: 0;
}
}
2023-02-08 03:55:02 +00:00
.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack {
margin-bottom: 32px;
}
.sliderLayoutContainer--carousel .slide {
width: 100%;
max-width: 314px;
height: 448px;
margin-right: 16px;
}
@media screen and (max-width: 767px) {
.sliderLayoutContainer--carousel .slide {
margin-right: 8px;
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
.sliderLayoutContainer--carousel .slide {
margin-right: 12px;
}
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .slide {
height: unset;
}
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) {
max-width: unset !important;
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) {
padding: 0;
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) {
width: 100%;
max-width: 314px;
height: 314px;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) {
max-width: 124px;
height: 124px;
}
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) {
max-width: 291px;
height: 291px;
}
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) {
max-height: 314px !important;
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) {
justify-content: center;
text-align: center;
padding: 16px 0 8px 0;
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) {
font-family: "Open Sans", sans-serif;
font-size: 18px;
line-height: 25px;
color: #000000;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) {
font-size: 14px;
line-height: 19px;
}
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) {
display: block;
font-family: "Open Sans", sans-serif;
font-size: 14px;
line-height: 19px;
text-align: center;
text-decoration-line: line-through;
color: #bababa;
padding-bottom: 8px;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) {
font-size: 12px;
line-height: 16px;
}
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) :global(.vtex-product-price-1-x-listPriceValue)::before {
content: "de ";
font-size: 14px;
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) :global(.vtex-product-price-1-x-listPriceValue)::after {
content: " por";
}
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-sellingPrice) {
display: block;
text-align: center;
font-family: "Open Sans", sans-serif;
font-weight: 700;
font-size: 24px;
line-height: 33px;
color: #000000;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-sellingPrice) {
font-size: 18px;
line-height: 25px;
}
}
.sliderLayoutContainer--carousel .sliderRightArrow,
.sliderLayoutContainer--carousel .sliderLeftArrow {
margin: 0;
padding: 0;
}
.sliderLayoutContainer--carousel .sliderRightArrow .caretIcon,
.sliderLayoutContainer--carousel .sliderLeftArrow .caretIcon {
display: none;
}
.sliderLayoutContainer--carousel .sliderLeftArrow::after {
content: "";
display: block;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.000193945 15.2383L10.9291 30.1191L11.2002 27.7468L2.30458 15.2383L11.2002 2.89145L10.9291 0.519139L0.000193945 15.2383Z' fill='black'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-size: 100% 100%;
width: 11px;
height: 30px;
}
.sliderLayoutContainer--carousel .sliderRightArrow::after {
content: "";
display: block;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 15.4004L1.07091 0.519531L0.799804 2.89184L9.69542 15.4004L0.799802 27.7472L1.07091 30.1195L11.9998 15.4004Z' fill='black'/%3E%3C/svg%3E ");
background-repeat: no-repeat;
background-size: 100% 100%;
width: 11px;
height: 30px;
}
.sliderLayoutContainer--carousel .paginationDotsContainer {
display: flex;
align-items: center;
margin-bottom: 64px;
}
@media screen and (min-width: 375px) and (max-width: 768px) {
.sliderLayoutContainer--carousel .paginationDotsContainer {
margin-bottom: 32px;
}
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot {
width: 10px;
height: 10px;
background-color: black;
border: none;
}
.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot--isActive {
width: 17px !important;
height: 17px !important;
background-color: white;
border: 0.5px solid #000000;
}