.uk-scroller-container {
  overflow: hidden;
  width: 100%;
}

.uk-scroller-wrapper {
  overflow: hidden;
  width: 100%;
  height: inherit;
  position: relative;
  z-index: 1;
  margin-right: -8px;
  float: left;
}

.uk-scroller-content {
  position: relative;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none; // IE10-11
  scrollbar-width: none; // firefox

  &::-webkit-scrollbar {
    -webkit-appearance: none;
    display: none;
    width: 0;
    height: 0;
  }

  &.rtl {
    right: auto;
  }

  &.y {
    overflow-y: scroll;
    height: 100%;
    width: 100%;
  }

  &.x {
    overflow-x: scroll;
    width: 100%;
  }
}

.uk-scroller-bar {
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  top: 0;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s linear;
  // See: https://stackoverflow.com/questions/12980153/image-moves-on-hover-chrome-opacity-issue
  -webkit-backface-visibility: hidden;

  &.y {
    width: 8px;
  }
  &.x {
    height: 8px;
  }

  .dark & {
    background-color: rgba(231, 231, 231, 0.1);
  }
}

.uk-scroller-container:hover .uk-scroller-bar,
.uk-scroller-container:active .uk-scroller-bar {
  opacity: 1;
}

.uk-scroller-grabbed {
  -o-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
