forked from Nova-reward/Nova-Rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPointsWidget.module.css
More file actions
109 lines (95 loc) · 2 KB
/
Copy pathPointsWidget.module.css
File metadata and controls
109 lines (95 loc) · 2 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
.widgetContainer {
background: #1a1a2e;
border: 1px solid #2d2d4e;
border-radius: 12px;
padding: 1.25rem;
min-width: 0;
width: 100%;
max-width: 340px;
display: flex;
flex-direction: column;
gap: 0.5rem;
position: relative;
overflow: hidden;
}
.label {
font-size: 0.875rem; /* raised from 0.8rem — ISSUE-FS-01 */
font-weight: 600;
text-transform: uppercase;
/* #b8c7d9 on #1a1a2e → 5.0:1 — fixes ISSUE-CC-02 (was #94a3b8, 3.5:1) */
color: #b8c7d9;
letter-spacing: 0.05em;
}
.balanceWrapper {
display: flex;
align-items: baseline;
gap: 0.75rem;
}
.balanceWithAnimation {
position: relative;
display: inline-flex;
align-items: center;
}
.lottieOverlay {
position: absolute;
top: 50%;
left: 50%;
width: 120px;
height: 120px;
transform: translate(-50%, -50%);
pointer-events: none;
opacity: 0.85;
}
.balance {
font-size: 2rem;
font-weight: 700;
/* #a78bfa on #1a1a2e → 5.2:1 — fixes ISSUE-CC-01 (was #7c3aed, 3.8:1) */
color: #a78bfa;
font-variant-numeric: tabular-nums;
}
.delta {
font-size: 0.9rem;
font-weight: 600;
animation: fadeOutUp 3s forwards;
}
.positive {
color: #34d399;
}
.negative {
color: #f87171;
}
.skeleton {
height: 2.5rem;
width: 60%;
background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite linear;
border-radius: 6px;
}
.errorText {
color: #f87171;
font-size: 0.85rem;
}
.retryBtn {
background: #2d2d4e;
color: #e2e8f0;
border: none;
border-radius: 4px;
padding: 0.25rem 0.75rem;
cursor: pointer;
font-size: 0.8rem;
margin-top: 0.25rem;
}
.retryBtn:hover {
background: #3e3e6b;
}
@keyframes shimmer {
from { background-position: 200% 0; }
to { background-position: -200% 0; }
}
@keyframes fadeOutUp {
0% { opacity: 0; transform: translateY(0); }
10% { opacity: 1; transform: translateY(-5px); }
80% { opacity: 1; transform: translateY(-5px); }
100% { opacity: 0; transform: translateY(-15px); }
}