-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.js
55 lines (50 loc) · 1.02 KB
/
style.js
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
export default function(options) {
return `
#echo-core-message {
position: fixed;
top: 40px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
border-radius: 12px;
background: white;
box-shadow: 0px 0px 20px rgba(0, 0, 0, .12);
font-weight: 600;
display: none;
}
#echo-core-message.echo-error {
color: #FF4838;
}
#echo-core-message.echo-success {
color: #83BF1C;
}
#echo-loading {
display: none;
position: fixed;
top: 40px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
border-radius: 12px;
background: white;
box-shadow: 0px 0px 20px rgba(0, 0, 0, .12);
}
.echo-loading__loader {
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid #4E75F6;
clip-path: inset(0 0 50% 0);
transform: rotate(0);
animation: spin .6s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
`
}