@use "../base" as *; @use "../abstracts" as *; .paragraph--type--bestsellers, .paragraph--type--product-slider { position: relative; display: flex; flex-direction: column; margin-bottom: 24px; justify-content: space-between; gap: 8px; align-items: normal; .product-slider__top { display: flex; justify-content: space-between; align-items: center; .field--name-field-title { color: $dark-gray; font-family: $font-primary; font-size: 2rem; font-weight: 700; line-height: 2.375rem; @include breakpoint(medium) { font-size: 2.5rem; line-height: 3rem; } } .field--name-field-link { margin-left: auto; } a { color: $dark-gray; text-align: center; font-family: $font-primary; font-size: 0.75rem; font-weight: 500; line-height: 1rem; letter-spacing: 0.008rem; text-transform: uppercase; display: flex; gap: 8px; padding: 10px 16px; &::after { content: ""; display: flex; background: url("../../assets/icons/arrow-right-products.svg") no-repeat; width: 16px; height: 16px; position: relative; } } } .product-slider__slider--1 { margin-bottom: 16px; } // Fix for pagespeed. .splide { visibility: visible; &:not(.is-initialized) .splide__slide { flex: 0 0 100%; @include breakpoint(medium) { flex: 0 0 calc(100% / 3); } @media (min-width: 1640px) { flex: 0 0 25%; } } } .splide__track { .splide__list { align-items: stretch; } article { display: flex !important; justify-content: center; height: 100% !important; @include breakpoint(medium) { display: flex; justify-content: unset; } .product-teaser { display: flex !important; flex-direction: column; height: 100% !important; width: 100%; } } .splide__slide { display: flex; height: auto; } } .splide__pagination { display: none; } .splide__arrow { position: absolute; top: 211px; &--next, &--prev { display: none; @include breakpoint(medium) { display: flex; } justify-content: center; align-items: center; width: 48px; height: 48px; background-color: rgba(240, 240, 240, 0.8); border-radius: 50%; box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16); cursor: pointer; &:hover { background-color: rgba(230, 230, 230, 0.8); } &::before { content: ""; width: 24px; height: 24px; background-repeat: no-repeat; background-size: cover; } } &--next { right: -6px; @include breakpoint(large) { right: -8px; } @include breakpoint(extra_large) { right: -36px; } &::before { background-image: url("/themes/custom/gto/assets/icons/arrow-right-s-line.svg"); } } &--prev { left: -16px; @include breakpoint(large) { left: -8px; } @include breakpoint(extra_large) { left: -32px; } &::before { background-image: url("/themes/custom/gto/assets/icons/arrow-left-s-line.svg"); } } } .views-element-container { width: 100%; } } .paragraph--type--bestsellers { gap: 20px; .product-slider__top { flex-direction: column; gap: 16px; align-items: flex-start; min-height: 92px; padding: 20px; background: $gray3; border: 1px solid $light-gray2; border-radius: 4px; @include breakpoint(medium) { flex-direction: row; align-items: center; padding: 18px 24px; } .field--name-field-title { font-size: 1.75rem; line-height: 2.25rem; } .field--name-field-link { width: 100%; @include breakpoint(medium) { width: auto; } } a { align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 20px; width: 100%; border-radius: 4px; background-color: $dark-gray; color: white; font-size: 0.875rem; line-height: 1.125rem; box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.45); @include breakpoint(medium) { justify-content: center; width: auto; min-width: 190px; } @include breakpoint(large) { min-width: 220px; } &::after { background-image: url("/themes/custom/gto/assets/icons/arrow-right-long.svg"); background-size: cover; width: 24px; height: 24px; } } } }