blob: 93ed5581fcbd921d2e3cec23951d6da99f5b0693 (
plain)
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
|
/*
* Notifications
*/
.notifications-container {
position: fixed;
top: 1em;
left: 50%;
z-index: 777;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
[class*="notification-"] {
border-radius: $global-border-radius;
overflow: hidden;
display: block;
}
.notification {
&-alert {
background: $pm-global-warning;
color: $pm-global-light;
}
&-success {
background: $pm-global-success;
color: $pm-global-light;
}
&-warning {
background: $pm-global-attention;
color: $pm-global-grey;
}
&-info {
background: $pm-primary;
color: $white;
}
}
.notificationIn {
animation-duration: 1s;
animation-fill-mode: forwards;
animation-timing-function: ease;
animation-name: notificationIn;
}
.notificationOut {
animation-duration: 1s;
animation-fill-mode: forwards;
animation-timing-function: ease;
animation-name: notificationOut;
}
@keyframes notificationIn {
0% {
opacity: 0;
-webkit-transform: translateY(-50px);
transform: translateY(-50px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes notificationOut {
0% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
100% {
opacity: 0;
-webkit-transform: scale(0);
transform: scale(0);
max-height: 0;
padding: 0;
margin-bottom: 0;
}
}
@include respond-to($breakpoint-small) {
.notifications-container {
left: 1em;
right: 1em;
-webkit-transform: none;
transform: none;
text-align: center;
}
}
|