@use "../base" as *; @use "../abstracts" as *; .paragraph--type--brand-product-slider { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; gap: 16px; justify-content: flex-start; @include breakpoint(large) { gap: 20px; } // 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, .contextual-region { 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__navigation { margin-top: 18px; margin-bottom: 22px; } .splide__pagination { gap: 8px; position: static; transform: none; .splide__pagination__page { width: 10px; height: 10px; } } .splide__arrow { position: absolute; top: 50%; &--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; top: 39.5%; @include breakpoint(medium) { right: 5px; } @include breakpoint(large) { right: -10px; } @include breakpoint(extra_large) { right: -34px; } &::before { background-image: url("/themes/custom/gto/assets/icons/arrow-right-s-line.svg"); } } &--prev { left: 0px; top: 39.5%; @include breakpoint(medium) { left: -36px; } &::before { background-image: url("/themes/custom/gto/assets/icons/arrow-left-s-line.svg"); } } } .brand-container { min-width: 280px; width: 100%; position: relative; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 20px; background: $gray3; border: 1px solid $light-gray2; border-radius: 4px; @include breakpoint(medium) { min-height: 92px; flex-direction: row; align-items: center; max-width: none; padding: 18px 24px; } .button { width: 100%; margin: 0; z-index: 2; @include breakpoint(medium) { position: static; transform: none; width: fit-content; min-width: 190px; border-radius: 4px; box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.45); } @include breakpoint(large) { min-width: 220px; } &.blue { background-color: $brand-blue; } &.green { background-color: $brand-green; } &.red { background-color: $brand-red; } border-radius: 4px; height: 72px; @include breakpoint(medium) { height: 56px; } a { display: flex; align-items: center; justify-content: space-between; color: white; font-family: $font-primary; font-size: 1.125rem; font-weight: 700; line-height: 1.375rem; padding: 12px 16px; height: 72px; @include breakpoint(medium) { gap: 20px; height: 56px; justify-content: center; padding: 12px 20px; } &::after { content: ""; width: 24px; height: 24px; background-repeat: no-repeat; background-size: cover; background-image: url("/themes/custom/gto/assets/icons/arrow-right-long.svg"); } } } } .views-element-container { width: 100%; article { display: flex; justify-content: center; @include breakpoint(large) { display: block; justify-content: unset; } } } .field--name-field-media { display: none; } .field--name-field-logo { display: flex; align-items: center; img { position: static; display: block; width: auto; max-width: 100%; max-height: 54px; @include breakpoint(medium) { max-width: min(420px, 42vw); max-height: 58px; } @include breakpoint(large) { max-width: 470px; } @include breakpoint(extra_large) { min-width: 0; } } } }