Blame view

src/styles/components/message.less 1.72 KB
7c15ac9e   梁灏   add Message compo...
1
2
3
4
  @message-prefix-cls: ~"@{css-prefix}message";
  @icon-prefix-cls: ~"@{css-prefix}icon";
  
  .@{message-prefix-cls} {
0069c7b1   梁灏   update Message style
5
      font-size: @font-size-base;
7c15ac9e   梁灏   add Message compo...
6
7
8
9
10
      position: fixed;
      z-index: @zindex-message;
      width: 100%;
      top: 16px;
      left: 0;
a77eaa5c   梁灏   update
11
      pointer-events: none;
7c15ac9e   梁灏   add Message compo...
12
13
  
      &-notice {
f0af86ea   lan   Fix multiple mess...
14
15
          padding: 8px;
          text-align: center;
36a91579   梁灏   fixed #1881
16
17
          transition: height @animation-time @ease-in-out, padding @animation-time @ease-in-out;
  
f0af86ea   lan   Fix multiple mess...
18
19
20
          &:first-child {
            margin-top: -8px;
          }
e0bd31a6   Aresn   update Message
21
22
23
24
25
26
27
28
29
30
31
32
  
          &-close {
              position: absolute;
              right: 4px;
              top: 9px;
              color: #999;
              outline: none;
  
              i.@{icon-prefix-cls}{
                  .close-base(-3px);
              }
          }
7c15ac9e   梁灏   add Message compo...
33
34
35
      }
  
      &-notice-content {
f0af86ea   lan   Fix multiple mess...
36
37
          display: inline-block;
          pointer-events: all;
7c15ac9e   梁灏   add Message compo...
38
          padding: 8px 16px;
3a2c6fc7   梁灏   optimize Select a...
39
          //border: 1px solid @border-color-split;
4901af54   梁灏   optimize Message ...
40
          border-radius: @border-radius-small;
7c15ac9e   梁灏   add Message compo...
41
42
          box-shadow: @shadow-base;
          background: #fff;
a77eaa5c   梁灏   update
43
          position: relative;
e0bd31a6   Aresn   update Message
44
45
46
47
48
49
50
51
52
          &-text{
              display: inline-block;
          }
      }
  
      &-notice-closable{
          .@{message-prefix-cls}-notice-content-text{
              padding-right: 32px;
          }
7c15ac9e   梁灏   add Message compo...
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
      }
  
      &-success .@{icon-prefix-cls} {
          color: @success-color;
      }
  
      &-error .@{icon-prefix-cls} {
          color: @error-color;
      }
  
      &-warning .@{icon-prefix-cls} {
          color: @warning-color;
      }
  
      &-info .@{icon-prefix-cls},
      &-loading .@{icon-prefix-cls} {
          color: @primary-color;
      }
  
      .@{icon-prefix-cls} {
0069c7b1   梁灏   update Message style
73
74
75
76
77
78
79
80
          margin-right: 4px;
          font-size: @font-size-large;
          vertical-align: middle;
      }
      &-custom-content{
          span{
              vertical-align: middle;
          }
7c15ac9e   梁灏   add Message compo...
81
82
      }
  }