-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathtoast.css
43 lines (39 loc) · 933 Bytes
/
toast.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
.toast-notification {
position: fixed;
bottom: 80px; /* Espacio desde la parte inferior */
right: 20px; /* Espacio desde el lado derecho */
min-width: 250px; /* Ancho mínimo */
max-width: 350px; /* Ancho máximo */
padding: 15px 20px; /* Espacio interno */
margin-bottom: 10px; /* Espacio entre toasts si hay más de uno */
color: #fff;
border-radius: 8px;
font-size: 14px;
display: flex;
align-items: center;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
opacity: 0.9;
transition:
opacity 0.3s ease,
transform 0.3s ease;
transform: translateY(20px);
}
.toast-notification.show {
opacity: 1;
transform: translateY(0);
}
.toast-notification.hide {
opacity: 0;
transform: translateY(20px);
}
.close-notification {
margin-left: 15px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.close-notification i {
font-size: 16px;
color: #fff;
}