保誠-保戶業務員媒合平台
tomasysh
2025-01-02 4efb98f2b554b76270b12837db7a7f724e2ede89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
@import "mixins/mixins";
@import "common/var";
 
@include b(message) {
  min-width: $--message-min-width;
  box-sizing: border-box;
  border-radius: $--border-radius-base;
  border-width: $--border-width-base;
  border-style: $--border-style-base;
  border-color: $--border-color-lighter;
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background-color: $--message-background-color;
  transition: opacity 0.3s, transform .4s, top 0.4s;
  overflow: hidden;
  padding: $--message-padding;
  display: flex;
  align-items: center;
 
  @include when(center) {
    justify-content: center;
  }
 
  @include when(closable) {
    .el-message__content {
      padding-right: 16px;
    }
  }
 
  p {
    margin: 0;
  }
 
  @include m(info) {
    .el-message__content {
      color: $--message-info-font-color;
    }
  }
 
  @include m(success) {
    background-color: $--color-success-lighter;
    border-color: $--color-success-light;
 
    .el-message__content {
      color: $--message-success-font-color;
    }
  }
 
  @include m(warning) {
    background-color: $--color-warning-lighter;
    border-color: $--color-warning-light;
 
    .el-message__content {
      color: $--message-warning-font-color;
    }
  }
 
  @include m(error) {
    background-color: $--color-danger-lighter;
    border-color: $--color-danger-light;
 
    .el-message__content {
      color: $--message-danger-font-color;
    }
  }
 
  @include e(icon) {
    margin-right: 10px;
  }
 
  @include e(content) {
    padding: 0;
    font-size: 14px;
    line-height: 1;
    &:focus {
      outline-width: 0;
    }
  }
 
  @include e(closeBtn) {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: $--message-close-icon-color;
    font-size: $--message-close-size;
 
    &:focus {
      outline-width: 0;
    }
    &:hover {
      color: $--message-close-hover-color;
    }
  }
 
  & .el-icon-success {
    color: $--message-success-font-color;
  }
 
  & .el-icon-error {
    color: $--message-danger-font-color;
  }
 
  & .el-icon-info {
    color: $--message-info-font-color;
  }
 
  & .el-icon-warning {
    color: $--message-warning-font-color;
  }
}
 
.el-message-fade-enter,
.el-message-fade-leave-active {
  opacity: 0;
  transform: translate(-50%, -100%);
}