-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotification.css
More file actions
111 lines (95 loc) · 1.91 KB
/
Copy pathNotification.css
File metadata and controls
111 lines (95 loc) · 1.91 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
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
.notification-container {
position: fixed;
top: 48px;
right: 16px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 8px;
max-width: 400px;
pointer-events: none;
}
.notification-toast {
pointer-events: auto;
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 18px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
animation: notification-slide-in 0.3s ease-out forwards;
font-size: 15px;
line-height: 1.5;
word-break: break-word;
}
.notification-toast__content {
flex: 1;
min-width: 0;
}
.notification-toast__title {
font-weight: 600;
margin-bottom: 3px;
font-size: 15px;
}
.notification-toast__message {
color: inherit;
opacity: 0.9;
}
.notification-toast__dismiss {
flex-shrink: 0;
background: none;
border: none;
cursor: pointer;
font-size: 20px;
line-height: 1;
padding: 0 2px;
opacity: 0.6;
color: inherit;
transition: opacity 0.15s;
}
.notification-toast__dismiss:hover {
opacity: 1;
}
/* Color variants */
.notification-toast--info {
background-color: #2196f3;
color: #ffffff;
}
.notification-toast--success {
background-color: #4caf50;
color: #ffffff;
}
.notification-toast--warning {
background-color: #ff9800;
color: #ffffff;
}
.notification-toast--error {
background-color: #f44336;
color: #ffffff;
}
@keyframes notification-slide-in {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Dark theme support */
[data-theme='dark'] .notification-toast {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-theme='dark'] .notification-toast--info {
background-color: #1565c0;
}
[data-theme='dark'] .notification-toast--success {
background-color: #2e7d32;
}
[data-theme='dark'] .notification-toast--warning {
background-color: #e65100;
}
[data-theme='dark'] .notification-toast--error {
background-color: #c62828;
}