-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoast.css
More file actions
84 lines (73 loc) · 1.47 KB
/
Copy pathtoast.css
File metadata and controls
84 lines (73 loc) · 1.47 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
83
84
/* Notification System */
.toast-container {
position: fixed;
bottom: 2rem;
right: 2rem;
z-index: 10000;
display: flex;
flex-direction: column;
gap: 0.75rem;
pointer-events: none;
}
.toast {
background: var(--glass-bg);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
padding: 1rem 1.5rem;
border-radius: var(--radius-lg);
color: var(--text-primary);
font-size: 0.9rem;
box-shadow: var(--shadow-xl);
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 300px;
max-width: 400px;
pointer-events: auto;
animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
position: relative;
overflow: hidden;
}
.toast::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
}
.toast.success::before {
background: var(--success);
}
.toast.error::before {
background: var(--error);
}
.toast.info::before {
background: var(--primary);
}
.toast.hiding {
animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast-icon {
font-size: 1.25rem;
}
@keyframes toastSlideIn {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes toastSlideOut {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(100%);
}
}