-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.css
113 lines (100 loc) · 1.72 KB
/
popup.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
113
.popup{
position: absolute;
top: 130px;
right: 75px;
animation: show_toast 1s ease forwards;
}
@keyframes show_toast {
0%{
opacity:0.2;
}
40%{
opacity:0.6;
}
80%, 100%{
opacity:1;
}
}
.popup.hide{
animation: hide_toast 1s ease forwards;
}
@keyframes hide_toast {
0%{
opacity:0.8;
}
40%{
opacity:0.5;
}
80%, 100%{
opacity:0;
pointer_events: none;
}
}
.popup .toast{
background: #fff;
padding: 20px 15px 20px 20px;
border-radius: 10px;
border-left: 5px solid #2ecc71;
box-shadow: 1px 7px 14px -5px rgba(0,0,0,0.15);
width: 220px;
display:flex;
align-items:center;
justify-content: space-between;
}
.toast .content{
display:flex;
align-items: center;
}
.content .icon{
font-size: 25px;
color: #fff;
height:50px;
width: 50px;
text-align:center;
line-height:50px;
border-radius:50%;
background-color: #2ecc71;
display: none;
}
.details span{
font-size: 15px;
font-weight: 500;
}
.details p{
color:#878787
}
.toast .close-icon{
font-size:23px;
color:#878787;
height: 40px;
width:40px;
cursor:pointer;
text-align:center;
line-height:40px;
border-radius:50%;
background:#f2f2f2;
transition: all 0.3 ease;
display: none;
}
.close-icon:hover{
background:#efefef;
}
@media screen and (min-width: 600px) {
.content .icon{
display: block;
}
.content .details{
margin-left: 15px;
}
.popup .toast{
width: 440px;
}
.popup{
position: absolute;
top: 20px;
right: 70px;
}
.toast .close-icon{
display: block;
}
}