-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Expand file tree
/
Copy pathAmrBalanceDialog.module.css
More file actions
239 lines (212 loc) · 5.91 KB
/
Copy pathAmrBalanceDialog.module.css
File metadata and controls
239 lines (212 loc) · 5.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/* Subscription-invitation styling for the pre-run balance gate. Centered
* card, warm accent halo, benefit stagger — an unlock moment, not an error.
* The shared Dialog chrome supplies the backdrop, elevation, and the
* 220ms pop-in (scale 0.97 + opacity, custom cubic-bezier). */
.panel {
position: relative;
width: min(400px, calc(100vw - 32px));
align-items: center;
text-align: center;
padding: 36px 32px 24px;
gap: 0;
overflow: hidden;
}
/* Bleeds to the panel's edges (negative margin cancels .panel's own padding)
* so the artwork reaches the dialog's rounded corners; .panel's overflow:
* hidden clips it to match instead of duplicating the radius here. */
.banner {
margin: -36px -32px 24px;
}
/* No object-fit crop — width:100% + height:auto keeps the source's native
* aspect ratio intact rather than cropping it to fit a fixed box. */
.bannerImage {
display: block;
width: 100%;
height: auto;
}
.closeButton {
position: absolute;
top: 10px;
right: 10px;
display: grid;
place-items: center;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: var(--radius-sm);
color: var(--text-muted);
background: transparent;
cursor: pointer;
transition: background 120ms ease, color 120ms ease;
}
.closeButton:hover {
color: var(--text);
background: var(--bg-subtle);
}
.closeButton:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.title {
margin: 0 0 10px;
font-size: 18px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text-strong);
}
.message {
margin: 0 0 24px;
font-size: 13.5px;
line-height: 1.6;
color: var(--text-muted);
text-wrap: balance;
font-variant-numeric: tabular-nums;
}
.benefitsCard {
width: 100%;
margin: 0 0 22px;
padding: 16px 18px;
text-align: start;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--bg-panel);
}
/* Eyebrow label naming whose advantages the list below sells. Accent, not
* gray: the brand attribution is the label's whole job, and it ties the card
* to the check icons and CTA without competing with the main title. */
.benefitsTitle {
display: block;
margin-bottom: 12px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--accent);
}
.benefits {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.benefit {
display: grid;
/* Fixed icon column so wrapped labels stay aligned to the text, not the
* icon — matches the row rhythm of the artifact-upgrade gate's benefit list. */
grid-template-columns: 22px minmax(0, 1fr);
align-items: center;
gap: 10px;
font-size: 13.5px;
line-height: 1.45;
color: var(--text);
/* Rare dialog → a light cascade adds delight without slowing anyone down. */
opacity: 0;
transform: translateY(4px);
animation: amr-gate-benefit-in 240ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.benefit:nth-child(1) { animation-delay: 60ms; }
.benefit:nth-child(2) { animation-delay: 100ms; }
.benefit:nth-child(3) { animation-delay: 140ms; }
.benefit:nth-child(4) { animation-delay: 180ms; }
@keyframes amr-gate-benefit-in {
to {
opacity: 1;
transform: translateY(0);
}
}
.benefitIcon {
display: grid;
place-items: center;
width: 22px;
height: 22px;
flex: none;
border-radius: var(--radius-sm);
color: var(--accent);
background: var(--accent-tint);
}
.actions {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.cta {
width: 100%;
height: 40px;
font-size: 13.5px;
box-shadow:
inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent),
0 8px 20px color-mix(in srgb, var(--accent) 20%, transparent);
transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cta:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow:
inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent),
0 10px 24px color-mix(in srgb, var(--accent) 26%, transparent);
}
.cta:active {
transform: scale(0.98);
}
/* Signed-out variant: the AmrLoginPill's sign-in action dressed as the
* dialog's full-width primary CTA (the pill supplies the vela-login flow,
* activation-link fallback, and polling; we only restyle its button). */
.signInPill {
width: 100%;
}
.signInPill :global(.amr-account-control) {
width: 100%;
justify-content: center;
}
.signInPill :global(.amr-account-control__action) {
width: 100%;
height: 40px;
font-size: 13.5px;
border-radius: var(--radius-sm);
border: none;
background: var(--accent);
color: #fff;
font-weight: 500;
box-shadow:
inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent),
0 8px 20px color-mix(in srgb, var(--accent) 20%, transparent);
transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms ease, box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.signInPill :global(.amr-account-control__action:hover) {
background: var(--accent-hover);
transform: translateY(-1px);
box-shadow:
inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent),
0 10px 24px color-mix(in srgb, var(--accent) 26%, transparent);
}
.signInPill :global(.amr-account-control__action:active) {
transform: scale(0.98);
}
/* Quiet text button: the bordered ghost chrome would compete with the CTA.
* Scoped under .actions to outrank the shared Button variant class. Sits a
* size step down from the CTA so the pair reads as primary/secondary, not
* two equally-weighted buttons stacked back to back. */
.actions .later {
width: 100%;
padding-top: 2px;
color: var(--text-muted);
font-size: 12.5px;
border-color: transparent;
background: transparent;
box-shadow: none;
}
/* Quiet status line shown while the post-recharge wallet watch is armed. */
.watchingHint {
margin: 12px 0 0;
font-size: 11.5px;
color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
.benefit {
animation: none;
opacity: 1;
transform: none;
}
}