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

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

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

  .@{yee-prefix}-modal-body {
    padding: 32px 32px 24px;
  }

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

  &-body {
    .@{yee-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: @yee-heading-color;
      font-weight: 500;
      font-size: @yee-font-size-lg;
      line-height: 1.4;
    }

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

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

      // `content` after `icon` should set marginLeft
      + .@{yee-confirm-prefix-cls}-title + .@{yee-confirm-prefix-cls}-content {
        margin-left: 38px;
      }
    }
  }

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

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

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

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

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

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