forked from Creditra/Creditra-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotificationBell.css
More file actions
33 lines (26 loc) · 1.49 KB
/
Copy pathNotificationBell.css
File metadata and controls
33 lines (26 loc) · 1.49 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
/* ==========================================================================
NotificationBell — pulse animation (Issue #219)
One-shot 600 ms ring, high-priority arrivals only.
Reduced-motion: suppresses pulse, keeps a 150 ms border flash instead.
========================================================================== */
/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes bell-pulse {
0% { box-shadow: 0 0 0 0 rgba(var(--color-warning-rgb, 234 179 8) / 0.7); }
50% { box-shadow: 0 0 0 10px rgba(var(--color-warning-rgb, 234 179 8) / 0); }
100% { box-shadow: 0 0 0 0 rgba(var(--color-warning-rgb, 234 179 8) / 0); }
}
@keyframes bell-border-flash {
0%,100% { outline: 2px solid transparent; }
50% { outline: 2px solid rgb(var(--color-warning-rgb, 234 179 8)); }
}
/* ── Pulse class (applied once per high-priority arrival) ───────────────── */
.bell-pulse {
animation: bell-pulse 600ms ease-out 1 forwards;
border-radius: 9999px; /* keeps the ring circular on the button */
}
/* ── Reduced-motion override ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.bell-pulse {
animation: bell-border-flash 150ms ease-out 1 forwards;
}
}