@pop-height: .5rem;
.component-dialog {
  &:extend(.fixed-position);
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  margin: -50%;
  z-index: 100;
  .animate(all 1s ease);
  .mask {
    &:extend(.absolute-position);
    background: @black-dark-d;
    opacity: @pop-mask-alpha;
    z-index: 2;
  }
  .dialog-wrap {
    .flex-center();
    &:extend(.absolute-position);
    .inner {
      .box-shadow(0 0 .15rem rgba(0, 0, 0, 0.5));
      .border-radius(@border-radious);
      position: relative;
      min-width: 50%;
      min-height: 1.5rem;
      max-width: 96%;
      max-height: 90%;
      overflow: hidden;
      z-index: 2;
      header {
        color: @white;
        font-size: @font-16;
        height: @pop-height;
        line-height: @pop-height;
        padding-left: .2rem;
        background-color: @blue;
        position: relative;
        .border-radius(@border-radious @border-radious 0 0);
        .btn-close {
          position: absolute;
          top: 50%;
          right: .1rem;
          font-size: @font-24;
          margin-top: -@font-24/2;
          color: @white;
          border: 0;
          background: transparent;
        }
      }
      .dialog-body {
        overflow: auto;
        background: @gray-light-3l;
        opacity: 0.96;
        &.body-no-foot {
          bottom: 0;
          .border-radius( 0 0 @border-radious @border-radious);
        }
      }
      img {
        width: 100%;
        height: .44rem;
        position: absolute;
        margin-top: -.44rem;
      }
      footer {
        // height: @pop-height; // line-height: @pop-height;
        .border-radius( 0 0 @border-radious @border-radious);
        background: @gray-light-3l;
        opacity: 0.96;
      }
    }
  }
  &.actived {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
  }
}
