Skip to content

Commit e639f40

Browse files
author
Sean Kibbee
committed
Align metric icons left with title and label to the right
1 parent eaf674e commit e639f40

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

docs/site.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,16 @@ h2 {
197197
}
198198

199199
.metric-card {
200-
display: flex;
201-
flex-direction: column;
202-
align-items: flex-start;
203-
gap: 0.45rem;
204-
min-height: 165px;
200+
display: grid;
201+
grid-template-columns: auto 1fr;
202+
grid-template-rows: auto auto;
203+
column-gap: 0.75rem;
204+
row-gap: 0.15rem;
205+
align-items: center;
205206
}
206207

207208
.metric-icon {
209+
grid-row: 1 / 3;
208210
display: inline-flex;
209211
align-items: center;
210212
justify-content: center;

0 commit comments

Comments
 (0)