notification.scss
1.82 KB
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
@import "mixins/mixins";
@import "common/var";
@include b(notification) {
display: flex;
width: $--notification-width;
padding: $--notification-padding;
border-radius: $--notification-radius;
box-sizing: border-box;
border: 1px solid $--notification-border-color;
position: fixed;
background-color: $--color-white;
box-shadow: $--notification-shadow;
transition: opacity .3s, transform .3s, left .3s, right .3s, top 0.4s, bottom .3s;
overflow: hidden;
&.right {
right: 16px;
}
&.left {
left: 16px;
}
@include e(group) {
margin-left: $--notification-group-margin;
}
@include e(title) {
font-weight: bold;
font-size: $--notification-title-font-size;
color: $--notification-title-color;
margin: 0;
}
@include e(content) {
font-size: $--notification-font-size;
line-height: 21px;
margin: 6px 0 0 0;
color: $--notification-color;
text-align: justify;
p {
margin: 0;
}
}
@include e(icon) {
height: $--notification-icon-size;
width: $--notification-icon-size;
font-size: $--notification-icon-size;
}
@include e(closeBtn) {
position: absolute;
top: 18px;
right: 15px;
cursor: pointer;
color: $--notification-close-color;
font-size: $--notification-close-font-size;
&:hover {
color: $--notification-close-hover-color;
}
}
.el-icon-success {
color: $--notification-success-color;
}
.el-icon-error {
color: $--notification-danger-color;
}
.el-icon-info {
color: $--notification-info-color;
}
.el-icon-warning {
color: $--notification-warning-color;
}
}
.el-notification-fade-enter {
&.right {
right: 0;
transform: translateX(100%);
}
&.left {
left: 0;
transform: translateX(-100%);
}
}
.el-notification-fade-leave-active {
opacity: 0;
}