confirm.less 1.2 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: 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 28 29
    }

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

36
    > .@{iconfont-css-prefix} {
A
afc163 已提交
37
      font-size: 24px;
A
afc163 已提交
38
      margin-right: 16px;
A
afc163 已提交
39
      padding: 0 1px;
A
afc163 已提交
40
      float: left;
A
afc163 已提交
41 42 43 44
    }
  }

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

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

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

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

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

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