$react-slidy-c-background: transparent !default; $react-slidy-c-nav-background: rgba(255, 255, 255, 0.8) !default; $react-slidy-c-nav-color: #aaaaaa !default; $react-slidy-c-transparent: rgba(0, 0, 0, 0) !default; $react-slidy-h-image: auto !default; $react-slidy-mh: 50px !default; @mixin arrow($direction) { @if $direction == 'right' { margin-right: 6px; transform: rotate(45deg); } @else if $direction == 'left' { margin-left: 6px; transform: rotate(-135deg); } border-right: 3px solid $react-slidy-c-nav-color; border-top: 3px solid $react-slidy-c-nav-color; content: ''; display: inline-block; height: 24px; width: 24px; } .react-Slidy { -webkit-tap-highlight-color: $react-slidy-c-transparent; backface-visibility: hidden; background: $react-slidy-c-background; min-height: $react-slidy-mh; position: relative; user-select: none; &-arrow { align-items: center; bottom: 0; display: flex; margin: auto 0; opacity: 0; position: absolute; top: 0; transition: opacity 0.3s ease; width: auto; z-index: 1; &Left { left: 0; } &Right { right: 0; } @media screen and (max-width: 850px) { display: none; } } &-prev, &-next { background: $react-slidy-c-nav-background; cursor: pointer; height: 20%; justify-content: center; min-height: 56px; width: 40px; } &-next { border-radius: 10px 0 0 10px; &::after { @include arrow('right'); } } &-prev { border-radius: 0 10px 10px 0; &::after { @include arrow('left'); } } &--fullHeight { height: 100%; & > div li img { height: 100%; } } &--fullWidth > div li img { width: 100%; } &--contain li img { object-fit: contain; } &--cover li img { object-fit: cover; } &:hover > &-arrow { opacity: 1; } &:hover > &-arrow[disabled] { opacity: 0.2; } > div { font-size: 0; max-height: 100%; overflow: hidden; position: relative; white-space: nowrap; width: 100%; > ul { display: block; list-style: none; padding: 0; transition-property: transform; width: 100%; will-change: transform, transition-timing, transition-duration; & > li { display: inline-block; position: relative; user-select: none; vertical-align: middle; width: 100%; } } img { -webkit-backface-visibility: hidden; -webkit-perspective: 1000; display: block; height: $react-slidy-h-image; margin: 0 auto; max-width: 100%; pointer-events: none; touch-action: none; user-select: none; } } }