@{yunzai-default-prefix}__aside {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: @zindex + 5;
  width: @yunzai-default-aside-wd;
  margin-top: @yunzai-default-header-hg;
  overflow: hidden;
  background-color: @yunzai-default-aside-bg;
  backface-visibility: hidden;
  transition: width 0.2s @yunzai-default-ease, translate 0.2s @yunzai-default-ease;
  -webkit-overflow-scrolling: touch;

  &::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border-right: 1px solid @yunzai-default-content-heading-border;
    content: '';
  }

  &-inner {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: proximity;
    scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
    // Firefox
    scrollbar-width: none;
    // Chrome
    &::-webkit-scrollbar {
      width: @yunzai-default-aside-scrollbar-height;
      height: @yunzai-default-aside-scrollbar-width;
    }

    &::-webkit-scrollbar-track {
      box-shadow: inset 0 0 @yunzai-default-aside-scrollbar-width @yunzai-default-aside-scrollbar-track-color;
    }

    &::-webkit-scrollbar-thumb {
      background-color: @yunzai-default-aside-scrollbar-thumb-color;
    }
  }
}

// Desktop
@media (min-width: @mobile-min) {
  @{yunzai-default-prefix}__collapsed {
    @{yunzai-default-prefix}__aside {
      width: @yunzai-default-aside-collapsed-wd;
    }
  }
}

// Under pad
@media (max-width: @mobile-max) {
  @{yunzai-default-prefix}__aside,
  @{yunzai-default-prefix}__content {
    transition: transform 0.3s ease;
  }
  @{yunzai-default-prefix}__content {
    transform: translate3d(@yunzai-default-aside-wd, 0, 0);
  }
  @{yunzai-default-prefix}__collapsed {
    @{yunzai-default-prefix}__aside {
      transform: translate3d(-100%, 0, 0);
    }
    @{yunzai-default-prefix}__content {
      transform: translateZ(0);
    }
  }
}

.layout-default-aside-rtl-mixin(@enabled) when(@enabled=true) {
  [dir='rtl'] {
    @{yunzai-default-prefix}__aside {
      &::after {
        right: inherit;
        left: 0;
      }
    }
    @media (max-width: @mobile-max) {
      @{yunzai-default-prefix}__content {
        transform: translate3d(-@yunzai-default-aside-wd, 0, 0);
      }
      @{yunzai-default-prefix}__collapsed {
        @{yunzai-default-prefix}__aside {
          transform: translate3d(100%, 0, 0);
        }
        @{yunzai-default-prefix}__content {
          transform: translateZ(0);
        }
      }
    }
  }
}

.layout-default-aside-rtl-mixin(@rtl-enabled);
