// 基础设置
.zhny-slide-drawer {
  .ant-drawer-content-wrapper {
    transition-property: transform;
  }
  .zhny-drawer-loading {
    height: 100%;
    & > .ant-spin-container {
      height: 100%;
    }
  }
  .ant-drawer-wrapper-body {
    display: block;
  }
  .ant-drawer-header {
    position: relative;
    height: 40px;
    padding: 10px !important;
    color: rgb(255, 255, 255);
    font-size: 16px;
    background: @blue-primary;
    border: 0;
    border-radius: 0px;
    border-bottom: 0 !important;
    .ant-drawer-header-title {
      height: auto;
    }
    .skin-red & {
      background: @red-primary;
    }
    .skin-green & {
      background: @green-primary;
    }
    .skin-gray & {
      background: @gray-primary;
    }
    .skin-yellow & {
      background: @yellow-primary;
    }
    .skin-dark & {
      background: #2a3253;
    }
    .fontSize-fontlarge & {
      font-size: 18px;
    }
    .ant-drawer-close {
      position: absolute;
      top: 50%;
      right: 6px;
      margin-right: 0;
      transform: translateY(-50%);
      .anticon {
        &:not(.skin-dark &) {
          color: #fff;
        }
        .skin-dark & :hover {
          color: #fff;
        }
      }
    }
    .ant-drawer-title {
      color: #fff;
      font-weight: normal;
      flex: none;
      height: auto;
      width: calc(100% - 18px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      &::selection,
      & > span::selection {
        color: #333;
        background-color: #fff;
      }
    }
  }
  .ant-drawer-body {
    height: calc(100% - 40px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: @drawer-total-light-bg!important;
    .skin-dark & {
      background: @drawer-total-dark-bg!important;
    }
    .drawer-resize {
      > .zhny-drawer-content + .react-resizable-handle {
        display: block;
        position: absolute;
        width: 10px;
        top: 0;
        left: 0;
        bottom: 0;
        margin: 0;
        height: auto;
        transform: none;
        background: none;
        cursor: ew-resize !important;
      }
    }
    .header-padding {
      position: relative;
      height: 100%;
      padding-bottom: 10px;
      overflow: visible;
      &::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 30px;
        background: @blue-primary;
        content: '';
        .skin-red & {
          background: @red-primary;
        }
        .skin-green & {
          background: @green-primary;
        }
        .skin-gray & {
          background: @gray-primary;
        }
        .skin-yellow & {
          background: @yellow-primary;
        }
        .skin-dark & {
          background: @drawer-total-dark-bg;
        }
      }
      .zhny-drawer-content {
        position: relative;
        z-index: 1;
        height: 100%;
        margin: 0 10px;
        padding: 10px;
        background-color: @drawer-content-light-bg;
        border-radius: 4px;
        .skin-dark & {
          background: @drawer-content-dark-bg;
        }
        &.zhny-drawer-content-withfooter {
          padding-bottom: 70px;
          .fontSize-fontlarge & {
            padding-bottom: 80px;
          }
        }
        .zhny-drawer-content-box {
          height: 100%;
          overflow: auto;
          border-radius: 4px;
          .skin-dark & {
            .scroll-style-dark();
          }
          // 优化resize时iframe的性能
          &.is-resizing {
            iframe {
              pointer-events: none;
            }
          }
        }
        .drawer-footer {
          position: absolute;
          right: 10px;
          bottom: 10px;
          left: 10px;
        }
      }
    }
  }
  .zhny-lookup {
    padding: 10px;
    background: #edeff5;
  }
}
