/** 全局弹窗统一调整 **/
.ant-modal-content {
  /** 弹窗确认和取消按钮位置调整 **/
  .ant-modal-footer{
    button:not(.ant-btn-primary){
      float:right;
    }
    .ant-btn{
      margin-right: 10px;
    }
    &:after {
      content: '';
      display: block;
      clear: both;
    }
  }
}

/** 创建类非全屏弹窗 **/
.riten-modal-middle {
  .ant-modal {
    width: 42.857rem !important; // 600px
    /** 弹窗全局增加logo **/
    .ant-modal-header {
      position: relative;
      &:before {
        content: '';
        position: absolute;
        left: 14px;
        width: 34px;
        height: 36px;
        background: url(../assets/riten_logo.png) no-repeat;
        background-size: cover;
        top: calc(50% - 2px);
        transform: translateY(-50%);
      }
      .ant-modal-title {
        position: relative;
        padding-left: 80px;
        font-size: @riten-font-size-14;
        &:before {
          content: '\4e91\76fe'; // '云盾';
          position: absolute;
          left: 28px;
          top: 50%;
          transform: translateY(-50%);
        }
        &:after {
          content: '';
          position: absolute;
          left: 68px;
          width: 4px;
          height: 4px;
          border-radius: 50%;
          background: @riten-text-color-default;
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }
    .ant-modal-body {
      max-height: 40.857rem; // 572px;
      overflow-y: auto;
    }
  }
}

/* modal 确认框 */
.ant-modal-confirm{
  .ant-modal-content{
    .ant-modal-confirm-btns{
      button:not(.ant-btn-primary){
        float:right;
      }
      button+button{
        margin-right: 8px;
      }
      &:after {
        content: '';
        display: block;
        clear: both;
      }
    }
  }
}
