blob: 930fc3f54b0286bd5a6613cf3f2e3ac86142d635 (
plain) (
blame)
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
|
.global-alert {
position: relative;
width: 100%;
background-color: #33A4E7;
.msg {
width: 100%;
display: block;
color: white;
font-size: 12px;
text-align: center;
}
}
.global-alert.hidden {
animation: alertHidden .5s ease forwards;
}
.global-alert.visible {
animation: alert .5s ease forwards;
}
/* Animation */
@keyframes alert {
0% {
opacity: 0;
top: -50px;
padding: 0px;
line-height: 12px;
}
50% {
opacity: 1;
}
100% {
top: 0;
padding: 8px;
line-height: 12px;
}
}
@keyframes alertHidden {
0% {
top: 0;
opacity: 1;
padding: 8px;
line-height: 12px;
}
100% {
opacity: 0;
top: -50px;
padding: 0px;
line-height: 0px;
}
}
|