-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotification.css
More file actions
82 lines (75 loc) · 1.27 KB
/
Copy pathnotification.css
File metadata and controls
82 lines (75 loc) · 1.27 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
section{
float: top;
width: 100vw;
overflow: hidden;
height: 25vh;
background: #ecf0f1;
border-bottom: 1px solid #95a5a6;
}
.notification{
width: 60vw;
height: 40px;
border-radius: 0px 0px 5px 5px;
margin: 0 auto;
box-shadow: #95a5a6 0px 0px 6px 2px;
color: white;
line-height: 40px;
overflow: hidden;
animation: reveal 1 2s;
}
.notification .title{
margin-right: 15px;
padding: 0px 15px;
line-height: 40px;
display: inline-block;
}
.notification .close{
background: rgba(255,255,255,0.2);
padding: 0px 15px;
float: right;
line-height: 40px;
display: inline-block;
color: white;
}
.notification .close:hover{
cursor: pointer;
}
.notification.closed{
transform: translate(0px, -50px);
transition: 0.7s;
}
@keyframes reveal{
0%{
transform: translate(0px, -50px);
}
50%{
transform: translate(0px, -50px);
}
100%{
transform: translate(0px, 0px);
}
}
.notification.success{
background: #2ecc71;
}
.notification.success .title{
background: #27ae60;
}
.notification.error{
background: #e74c3c;
}
.notification.error .title{
background: #c0392b;
}
.notification.warning{
background: #f1c40f;
}
.notification.warning .title{
background: #f39c12;
}
.notification.normal{
background: #3498db;
}
.notification.normal .title{
background: #2980b9;
}