-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
112 lines (103 loc) · 2.1 KB
/
style.css
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root{
--dark : #33395E;
--light:#ffffff;
--success: #0ABF30;
--error:#E24D4C;
--warning:#E9BD0C;
--info:#3498DB;
}
body{
background: #f2f2f2;
}
.wrapper{
position: absolute;
top: 20px;
left: 20px;
animation: show_toast 1s ease forwards;
}
@keyframes show_toast {
0%{
transform: translateX(20px);
}
40%{
transform: translateX(10%);
}
80%,100%{
transform: translateX(20px);
}
}
.wrapper.hide{
animation: hide_toast 1s ease forwards;
}
@keyframes hide_toast {
0%{
transform: translateX(20px);
}
40%{
transform: translateX(10%);
}
80%,100%{
opacity: 0;
pointer-events: none;
transform: translateX(-100%);
}
}
.wrapper .toast{
background: #fff;
padding: 20px 15px 20px 20px;
border-radius: 10px;
width: 430px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 1px 7px 14px -5px rgba(0,0,0,0.15);
border-left: 5px solid #2ecc71;
}
.wrapper .toast .offline{
border-bottom: #ccc;
}
.toast .content{
display: flex;
align-items: center;
}
.toast .content .icon{
font-size: 25px;
background: #2ecc71;
height: 50px;
width: 50px;
line-height: 44px;
text-align: center;
border-radius: 50%;
color: #fff;
}
.toast.offline .content .icon{
background: #ccc;
}
.toast .content .details{
margin-left: 15px;
}
.content .details span{
font-size: 20px;
font-weight: 500;
}
.content .details p {
color: #878787;
}
.toast .close-icon{
background: #f2f2f2;
height: 40px;
width: 40px;
text-align: center;
line-height: 36.5px;
font-size: 23px;
cursor: pointer;
color: #878787;
border-radius: 50%;
transform: translateX(35px);
}