confirm.less 1.4 KB
Newer Older
A
afc163 已提交
1 2
@import "../../style/mixins/index";

3
@confirm-prefix-cls: ~"@{ant-prefix}-confirm";
A
afc163 已提交
4 5

.@{confirm-prefix-cls} {
6
  .@{ant-prefix}-modal-header {
A
afc163 已提交
7
    display: none;
8 9 10 11
  }

  .@{ant-prefix}-modal-close {
    display: none;
A
afc163 已提交
12 13
  }

14
  .@{ant-prefix}-modal-body {
偏右 已提交
15
    padding: 32px 32px 24px;
A
afc163 已提交
16 17
  }

A
afc163 已提交
18 19 20 21
  &-body-wrapper {
    .clearfix();
  }

A
afc163 已提交
22
  &-body {
A
afc163 已提交
23
    .@{confirm-prefix-cls}-title {
偏右 已提交
24 25
      color: @heading-color;
      font-weight: 500;
A
afc163 已提交
26
      font-size: @font-size-lg;
A
afc163 已提交
27
      line-height: 22px;
A
afc163 已提交
28 29 30 31
      display: block;
      // create BFC to avoid
      // https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
      overflow: auto;
A
afc163 已提交
32 33 34
    }

    .@{confirm-prefix-cls}-content {
偏右 已提交
35
      margin-left: 38px;
A
afc163 已提交
36 37 38 39 40
      font-size: @font-size-base;
      color: @text-color;
      margin-top: 8px;
    }

41
    > .@{iconfont-css-prefix} {
偏右 已提交
42
      font-size: 22px;
A
afc163 已提交
43 44
      margin-right: 16px;
      float: left;
A
afc163 已提交
45 46 47 48
    }
  }

  .@{confirm-prefix-cls}-btns {
偏右 已提交
49
    margin-top: 24px;
A
afc163 已提交
50 51 52
    float: right;

    button + button {
偏右 已提交
53
      margin-left: 8px;
A
afc163 已提交
54 55 56
      margin-bottom: 0;
    }
  }
A
afc163 已提交
57

58
  &-error &-body > .@{iconfont-css-prefix} {
A
afc163 已提交
59 60 61
    color: @error-color;
  }

62 63
  &-warning &-body > .@{iconfont-css-prefix},
  &-confirm &-body > .@{iconfont-css-prefix} {
A
afc163 已提交
64 65 66
    color: @warning-color;
  }

67
  &-info &-body > .@{iconfont-css-prefix} {
68
    color: @info-color;
A
afc163 已提交
69 70
  }

71
  &-success &-body > .@{iconfont-css-prefix} {
A
afc163 已提交
72 73
    color: @success-color;
  }
A
afc163 已提交
74
}