Blame view

src/styles/components/alert.less 2.53 KB
9d69bab6   梁灏   add Alert component
1
  @alert-prefix-cls: ~"@{css-prefix}alert";
7c15ac9e   梁灏   add Message compo...
2
  @icon-prefix-cls: ~"@{css-prefix}icon";
9d69bab6   梁灏   add Alert component
3
4
5
6
  
  .@{alert-prefix-cls}{
      position: relative;
      padding: 8px 48px 8px 16px;
27b03d14   梁灏   update Alert style
7
      border-radius: @border-radius-small;
9d69bab6   梁灏   add Alert component
8
      color: @text-color;
3c01d81a   梁灏   fixed Modal bug,w...
9
      font-size: @font-size-small;
9d69bab6   梁灏   add Alert component
10
11
12
13
14
15
16
17
      line-height: 16px;
      margin-bottom: 10px;
  
      &&-with-icon{
          padding: 8px 48px 8px 38px;
      }
  
      &-icon {
27b03d14   梁灏   update Alert style
18
          font-size: @font-size-large;
9d69bab6   梁灏   add Alert component
19
          top: 8px;
16706b2e   梁灏   update Alert icon
20
          left: 12px;
9d69bab6   梁灏   add Alert component
21
22
23
24
          position: absolute;
      }
  
      &-desc {
3c01d81a   梁灏   fixed Modal bug,w...
25
          font-size: @font-size-small;
a901da64   梁灏   optimize Alert style
26
          color: @text-color;
9d69bab6   梁灏   add Alert component
27
28
          line-height: 21px;
          display: none;
40f8606f   梁灏   add Notice component
29
          text-align: justify;
9d69bab6   梁灏   add Alert component
30
31
32
      }
  
      &-success {
27b03d14   梁灏   update Alert style
33
34
35
          border: @border-width-base @border-style-base ~`colorPalette("@{success-color}", 3)`;
          //background-color: tint(@success-color, 90%);
          background-color: ~`colorPalette("@{success-color}", 1)`;
9d69bab6   梁灏   add Alert component
36
37
38
39
40
41
          .@{alert-prefix-cls}-icon {
              color: @success-color;
          }
      }
  
      &-info {
27b03d14   梁灏   update Alert style
42
43
44
          border: @border-width-base @border-style-base ~`colorPalette("@{primary-color}", 3)`;
          //background-color: tint(@primary-color, 90%);
          background-color: ~`colorPalette("@{primary-color}", 1)`;
9d69bab6   梁灏   add Alert component
45
46
47
48
49
50
          .@{alert-prefix-cls}-icon {
              color: @primary-color;
          }
      }
  
      &-warning {
27b03d14   梁灏   update Alert style
51
52
53
          border: @border-width-base @border-style-base ~`colorPalette("@{warning-color}", 3)`;
          //background-color: tint(@warning-color, 90%);
          background-color: ~`colorPalette("@{warning-color}", 1)`;
9d69bab6   梁灏   add Alert component
54
55
56
57
58
59
          .@{alert-prefix-cls}-icon {
              color: @warning-color;
          }
      }
  
      &-error {
27b03d14   梁灏   update Alert style
60
61
62
          border: @border-width-base @border-style-base ~`colorPalette("@{error-color}", 3)`;
          //background-color: tint(@error-color, 90%);
          background-color: ~`colorPalette("@{error-color}", 1)`;
9d69bab6   梁灏   add Alert component
63
64
65
66
67
68
          .@{alert-prefix-cls}-icon {
              color: @error-color;
          }
      }
  
      &-close {
be966e9f   梁灏   add Modal component
69
          .content-close(-3px);
9d69bab6   梁灏   add Alert component
70
71
72
73
74
      }
  
      &-with-desc {
          padding: 16px;
          position: relative;
27b03d14   梁灏   update Alert style
75
          border-radius: @border-radius-small;
9d69bab6   梁灏   add Alert component
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
          margin-bottom: 10px;
          color: @text-color;
          line-height: 1.5;
      }
  
      &-with-desc&-with-icon{
          padding: 16px 16px 16px 69px;
      }
  
      &-with-desc &-desc{
          display: block;
      }
  
      &-with-desc &-message {
          font-size: 14px;
a901da64   梁灏   optimize Alert style
91
          color: @title-color;
9d69bab6   梁灏   add Alert component
92
93
94
95
96
97
98
99
100
          display: block;
      }
  
      &-with-desc &-icon {
          top: 50%;
          left: 24px;
          margin-top: -21px;
          font-size: 28px;
      }
e49f7963   梁灏   Alert add banner ...
101
102
103
104
  
      &-with-banner{
          border-radius: 0;
      }
9d69bab6   梁灏   add Alert component
105
  }