@import '../../style/mixins/index';

@confirm-prefix-cls: ~'@{yg-prefix}-modal-confirm';

.@{confirm-prefix-cls} {
  .@{yg-prefix}-modal-header {
    // display: none;
  }

  .@{yg-prefix}-modal-close {
    display: none;
  }
  &-content {
    display: none;
  }
  .@{yg-prefix}-modal-body {
    padding: 16px;
  }

  &-body-wrapper {
    .clearfix();
  }

  &-body {
    max-width: 260px;
    margin: 0 auto;
    .@{confirm-prefix-cls}-title {
      display: block;
      // create BFC to avoid
      // https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
      overflow: hidden;
      color: @font-6;
      font-weight: normal;
      font-size: @font-size-md;
      line-height: 1.4;
    }

    .@{confirm-prefix-cls}-content {
      margin-top: 8px;
      margin-left: 38px;
      color: @text-color;
      font-size: @font-size-base;
    }

    > .@{iconfont-css-prefix} {
      float: left;
      margin-right: 16px;
      font-size: 22px;
    }
  }

  .@{confirm-prefix-cls}-btns {
    float: right;
    margin-top: 24px;

    button + button {
      margin-bottom: 0;
      margin-left: 12px;
    }
  }

  &-error &-body > .@{iconfont-css-prefix} {
    color: @error-color;
  }

  &-warning &-body > .@{iconfont-css-prefix},
  &-confirm &-body > .@{iconfont-css-prefix} {
    color: @warning-color;
  }

  &-info &-body > .@{iconfont-css-prefix} {
    color: @info-color;
  }

  &-success &-body > .@{iconfont-css-prefix} {
    color: @success-color;
  }
}
