@use "../base" as *; @use "../abstracts" as *; .block-views-blockparagraphs-sliders-recently-viewed { width: 100%; h2 { font-size: 1.5rem; @include breakpoint(medium) { font-size: 1.75rem; } } } .paragraph--type--recently-viewed-products, .view-display-id-recently_viewed { padding-top: 32px; margin-bottom: 40px; @include breakpoint(medium) { margin-bottom: 48px; } .splide { position: relative; } .splide__track { article { display: flex; justify-content: center; @include breakpoint(medium) { display: block; justify-content: unset; } } } .splide__navigation { position: static; min-height: 20px; margin-top: 14px; } .splide__pagination { position: static; transform: none; gap: 8px; padding: 0; .splide__pagination__page { width: 9px; height: 9px; } } .splide__arrow { position: absolute; top: 50%; transform: translateY(-50%); &--next, &--prev { display: flex; @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-slim.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-slim.svg"); } } } .field--name-field-title { color: $dark-gray; font-family: $font-primary; font-size: 1.75rem; font-weight: 500; line-height: 2.25rem; margin-bottom: 16px; } .product-teaser { &:hover { margin-bottom: 0; } } }