@charset "UTF-8";
@import "./common/var.css";
@import "./common/popup.css";

@component-namespace el {

  @b dialog {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--dialog-box-shadow);
    box-sizing: border-box;
    margin-bottom: 50px;
    border:1px solid var(--color-gray-20);

    @modifier tiny {
      min-width: 320px;
    }

    @modifier small {
      min-width: 440px;
    }

    @modifier middle {
      min-width: 620px;
    }

    @modifier large {
      width: var(--dialog-large-width);
    }

    @modifier full {
      width: 100%;
      top: 0;
      margin-bottom: 0;
      height: 100%;
      overflow: auto;
    }

    @e wrapper {
      position: fixed 0 0 0 0;
      overflow: auto;
      margin: 0;
    }

    @e header {
      padding: 20px 20px 0;
        h2{
          font-size:16px!important;
          display: inline-block;
          padding-right: 16px;
        }
    }
    @e textarea{
      /*border:1px solid transparent;*/
      /*border-bottom: none;*/
    }
    @e headerbtn {
      position: absolute;
      right: 20px;
      top: 20px;
      background: transparent;
      border: none;
      padding: 0;
      cursor: pointer;
      font-size:16px;
      z-index: 999;

      .el-dialog__close {
        color: var(--dialog-close-color);
      }

      &:focus, &:hover {
        .el-dialog__close {
          color: var(--dialog-close-hover-color);
        }
      }
    }

    @e title {
      line-height: 1;
      font-size: var(--dialog-title-font-size);
      font-weight: bold;
      margin: 0;
    }

    @e body {
      padding: 20px;
      font-size: var(--dialog-font-size);
    }

    @e footer {
      padding: 0px;
      text-align: right;
      box-sizing: border-box;
    }
  }

  .dialog-fade-enter-active {
    animation: dialog-fade-in .3s;
  }

  .dialog-fade-leave-active {
    animation: dialog-fade-out .3s;
  }

  @keyframes dialog-fade-in {
    0% {
      transform: translate3d(0, -20px, 0);
      opacity: 0;
    }
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }

  @keyframes dialog-fade-out {
    0% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
    100% {
      transform: translate3d(0, -20px, 0);
      opacity: 0;
    }
  }
}

/*high contract*/
@media screen and (-ms-high-contrast: active) {
  .el-dialog__headerbtn:focus{
     outline: 1px dotted;
   }
}
