confirm.less 1.3 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
    }

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

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

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

    button + button {
偏右 已提交
50
      margin-left: 8px;
A
afc163 已提交
51 52 53
      margin-bottom: 0;
    }
  }
A
afc163 已提交
54

55
  &-error &-body > .@{iconfont-css-prefix} {
A
afc163 已提交
56 57 58
    color: @error-color;
  }

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

64
  &-info &-body > .@{iconfont-css-prefix} {
65
    color: @info-color;
A
afc163 已提交
66 67
  }

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