Skip to content

Commit 1fa5a1c

Browse files
author
Sean Kibbee
committed
Fix metric card vertical text alignment for visual consistency
1 parent e639f40 commit 1fa5a1c

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

docs/site.css

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,40 +201,47 @@ h2 {
201201
grid-template-columns: auto 1fr;
202202
grid-template-rows: auto auto;
203203
column-gap: 0.75rem;
204-
row-gap: 0.15rem;
205-
align-items: center;
204+
row-gap: 0.1rem;
205+
align-items: start;
206+
align-content: center;
207+
min-height: 5.5rem;
206208
}
207209

208210
.metric-icon {
209211
grid-row: 1 / 3;
212+
align-self: center;
210213
display: inline-flex;
211214
align-items: center;
212215
justify-content: center;
213-
width: 3rem;
214-
height: 3rem;
215-
border-radius: 14px;
216+
width: 2.8rem;
217+
height: 2.8rem;
218+
border-radius: 12px;
216219
border: 1px solid rgba(15, 111, 168, 0.35);
217220
background: linear-gradient(145deg, rgba(15, 111, 168, 0.18), rgba(221, 236, 251, 0.6));
218221
color: var(--brand-strong);
219222
}
220223

221224
.metric-icon svg {
222-
width: 22px;
223-
height: 22px;
225+
width: 20px;
226+
height: 20px;
224227
}
225228

226229
.metric-title {
227230
margin: 0;
228-
font-size: 1rem;
231+
font-size: 0.92rem;
229232
font-weight: 700;
233+
line-height: 1.25;
230234
color: var(--text);
235+
align-self: end;
236+
}
231237
}
232238

233239
.metric-label {
234240
margin: 0;
235241
color: var(--muted);
236-
font-size: 0.9rem;
242+
font-size: 0.82rem;
237243
line-height: 1.35;
244+
align-self: start;
238245
}
239246

240247
.outcome-target {

0 commit comments

Comments
 (0)