-
Notifications
You must be signed in to change notification settings - Fork 7
/
notifications.css
199 lines (170 loc) · 3.51 KB
/
notifications.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
.notification-container {
top: 10px;
right: 0;
bottom: auto;
left: 0;
position: fixed;
z-index: 1060;
width: 80%;
max-width: 400px;
margin: auto;
}
.notification-error {
background-color: #e74c3c;
}
.notification-warning {
background-color: #ff7f48;
}
.notification-info {
background-color: #3ea2ff;
}
.notification-success {
background-color: #64ce83;
}
.notification-error .notification-icon {
background-color: #ba2c1d;
}
.notification-warning .notification-icon {
background-color: #f44e06;
}
.notification-info .notification-icon {
background-color: #067cea;
}
.notification-success .notification-icon {
background-color: #3da95c;
}
.notification-hidden {
animation: notification-hide 250ms cubic-bezier(.33859,-.42,1,-.22),notification-shrink 250ms 250ms cubic-bezier(.5,0,0,1);
-webkit-animation: notification-hide 250ms cubic-bezier(.33859,-.42,1,-.22),notification-shrink 250ms 250ms cubic-bezier(.5,0,0,1);
animation-fill-mode: forwards;
-webkit-animation-fill-mode: forwards;
}
.notification-show {
animation: notification-show 180ms cubic-bezier(.175,.885,.32,1.27499);
-webkit-animation: notification-show 180ms cubic-bezier(.175,.885,.32,1.27499);
}
.notification {
font: 14px Helvetica,sans-serif;
position: relative;
border-radius: 4px;
margin-bottom: 2px;
max-height: 800px;
color: #fff;
overflow: hidden;
}
.notification-icon {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 30px;
color: rgba(255,255,255,.74);
text-align: center;
}
.notification-icon span {
position: relative;
top: 5px;
}
.notification-message {
word-break: break-word;
padding: 10px 30px 10px 40px;
}
.notification-close {
position: absolute;
top: 10px;
right: 10px;
opacity: .3;
cursor: pointer;
}
.notification-countdown {
position: absolute;
bottom: 0;
width: 0;
height: 4px;
animation: notification-countdown linear 1;
-webkit-animation: notification-countdown linear 1;
}
.notification-btn {
position: relative;
color: #fff;
background-color: #ba2c1d;
display: inline-block;
padding: 6px 8px 7px;
margin-top: 5px;
margin-bottom: 0;
margin-right: 10px;
font-size: 12px;
font-weight: 400;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: top;
cursor: pointer;
border-radius: 3px;
text-decoration: none;
border: 0px;
}
@keyframes notification-show {
0% {
opacity: 0;
transform: perspective(450px) translate(0, -30px) rotateX(90deg);
}
100% {
opacity: 1;
transform: perspective(450px) translate(0, 0) rotateX(0deg);
}
}
@-webkit-keyframes notification-show {
0% {
opacity: 0;
-webkit-transform: perspective(450px) translate(0, -30px) rotateX(90deg);
}
100% {
opacity: 1;
-webkit-transform: perspective(450px) translate(0, 0) rotateX(0deg);
}
}
@keyframes notification-shrink {
0% {
opacity: 0;
transform: scale(.8);
}
100% {
opacity: 0;
max-height: 0;
margin-bottom: 0;
transform: scale(.8);
}
}
@-webkit-keyframes notification-shrink {
0% {
opacity: 0;
-webkit-transform: scale(.8);
}
100% {
opacity: 0;
max-height: 0;
margin-bottom: 0;
-webkit-transform: scale(.8);
}
}
@keyframes notification-hide {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(.8);
}
}
@-webkit-keyframes notification-hide {
0% {
opacity: 1;
-webkit-transform: scale(1);
}
100% {
opacity: 0;
-webkit-transform: scale(.8);
}
}