@drawer-prefix-cls: ~"@{css-prefix}drawer";
@icon-prefix-cls: ~"@{css-prefix-iconfont}";
.@{drawer-prefix-cls} {
  width: auto;
  height: 100%;
  position: fixed;
  top: 0;
  &-inner{
    position: absolute;
  }
    
  &-left{
    left: 0;
  }
  &-right{
    right: 0;
  }
  &-top, &-bottom{
    width: 100%;
    height: auto;
    top: auto;
  }
  &-bottom{
    bottom: 0;
  }
  &-mask{
    .mask;
    &-inner{
      position: absolute;
  }
  }

  &-wrap{
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: @zindex-drawer;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    &-inner{
      position: absolute;
      overflow: hidden;
    }

    &-dragging{
      user-select: none;
    }
  }
  &-wrap * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  &-hidden {
    display: none !important;
  }
  &-no-mask{
    pointer-events: none;

    .@{drawer-prefix-cls}-drag{
      pointer-events: auto;
    }
  }
  &-content{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    // background-color: @color-functional-white;
    background-color: @color-bg-drawer;
    border: 0;
    background-clip: padding-box;
    // box-shadow: 0 4px 12px @color-shadow1;
    &-no-mask{
      pointer-events: auto;
    }
  }
  &-close {
    z-index: 1;
    .content-close(1px);
    top: 14px;
    .@{icon-prefix-cls}-cross{
        font-size: 16px;
        color: @color-complementary-5;
        transition: color 0.2s ease;
        position: relative;
        top: 1px;
    }
}
  &-header {
    .content-header;
  } 
  &-body{
    width: 100%;
    height: calc(~'100% - 51px');
    padding: 16px;
    font-size: @font-size-base;
    line-height: 1.5;
    word-wrap: break-word;
    position: absolute;
    overflow: auto;
    color: @color-complementary-1;
  }
  &-no-header &-body{
    height: 100%;
  }
  &-drag{
    top: 0;
    height: 100%;
    width: 0;
    position: absolute;
    &-left{
        right: 0;
    }
    &-top, &-bottom{
        top: auto;
        width: 100%;
        height: 0;
    }
    &-top{
        bottom: 0;
    }
    &-bottom{
        top: 0;
    }
    &-move-trigger{
      width: 8px;
      height: 100px;
      line-height: 100px;
      position: absolute;
      top: 50%;
      background: rgb(243, 243, 243); // ★待定
      transform: translate(-50%, -50%);
      border-radius: 4px;
      box-shadow: 0 0 1px 1px rgba(0, 0, 0, .2); // ★待定
      cursor: col-resize;
      &-point{
          display: inline-block;
          width: 50%;
          transform: translateX(50%);
          i{
              display: block;
              border-bottom: 1px solid rgb(192, 192, 192); // ★待定
              padding-bottom: 2px;
          }
      }
    }
    &-top &-move-trigger, &-bottom &-move-trigger{
      width: 100px;
      height: 8px;
      line-height: 8px;
      top: auto;
      left: 50%;
      cursor: row-resize;
      &-point{
          width: 100%;
          height: 50%;
          transform: translateY(-75%);
          text-align: center;
          i{
              display: inline-block;
              border-bottom: inherit;
              width: 1px;
              height: 100%;
              border-left: 1px solid rgb(192, 192, 192); // ★待定
              padding-bottom: inherit;
              margin-left: 2px;
          }
      }
  }
  }
  &-enter-active{
    animation: fadeIn @animation-time  @ease-in-out ;
  }
  &-leave-active{
    animation: fadeOut @animation-time  @ease-in-out ;
  }
  &-left-enter-active{
    animation: leftIn @animation-time  @ease-in-out ;
  }
  &-left-leave-active{
    animation: leftOut @animation-time  @ease-in-out ;
  }
  &-right-enter-active{
    animation: rightIn @animation-time  @ease-in-out ;
  }
  &-right-leave-active{
    animation: rightOut @animation-time  @ease-in-out ;
  }
  &-top-enter-active{
    animation: topIn @animation-time  @ease-in-out ;
  }
  &-top-leave-active{
    animation: topOut @animation-time  @ease-in-out ;
  }
  &-bottom-enter-active{
    animation: bottomIn @animation-time  @ease-in-out ;
  }
  &-bottom-leave-active{
    animation: bottomOut @animation-time  @ease-in-out ;
  }
}
@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}
@keyframes leftIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}
@keyframes leftOut {
  0% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}
@keyframes rightIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}
@keyframes rightOut {
  0% {
    transform: translateX(0%);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes topIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
@keyframes topOut {
  0% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}
@keyframes bottomIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
@keyframes bottomOut {
  0% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
