Skip to content

Commit 227a11d

Browse files
committed
style: convert info cards to bullet points with muted grayish colors, wider layout
1 parent bb626df commit 227a11d

File tree

4 files changed

+72
-13
lines changed

4 files changed

+72
-13
lines changed

.parcel-cache/data.mdb

52 KB
Binary file not shown.

.parcel-cache/lock.mdb

0 Bytes
Binary file not shown.

src/components/mixins.pug

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ mixin badColumn(title, badge, warning)
88
h3= title + " "
99
span.perf-indicator.perf-slow= badge
1010

11-
.accessibility-note
12-
strong ⚠️ #{warning}
11+
.info-card.info-warning
12+
- const parts = warning.split(/[,;]/).map(s => s.trim()).filter(s => s)
13+
- const header = parts[0].includes(':') ? parts[0].split(':')[0] + ':' : ''
14+
- const firstItem = parts[0].includes(':') ? parts[0].split(':').slice(1).join(':').trim() : parts[0]
15+
if header
16+
strong= header
17+
ul.info-list
18+
li= firstItem
19+
each part in parts.slice(1)
20+
li= part
1321

1422
block
1523

@@ -18,8 +26,16 @@ mixin goodColumn(title, badge, note)
1826
h3= title + " "
1927
span.perf-indicator.perf-fast= badge
2028

21-
.accessibility-note
22-
strong 🎯 #{note}
29+
.info-card.info-note
30+
- const parts = note.split(/[,;]/).map(s => s.trim()).filter(s => s)
31+
- const header = parts[0].includes(':') ? parts[0].split(':')[0] + ':' : ''
32+
- const firstItem = parts[0].includes(':') ? parts[0].split(':').slice(1).join(':').trim() : parts[0]
33+
if header
34+
strong= header
35+
ul.info-list
36+
li= firstItem
37+
each part in parts.slice(1)
38+
li= part
2339

2440
block
2541

src/main.css

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
body {
3030
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
3131
line-height: 1.5;
32-
max-width: 960px;
32+
max-width: 1200px;
3333
margin: 0 auto;
34-
padding: 3rem 1.5rem;
34+
padding: 3rem 2rem;
3535
background: var(--color-bg);
3636
color: var(--color-text);
3737
min-height: 100vh;
@@ -124,14 +124,57 @@ body {
124124
background: #6c757d;
125125
}
126126

127-
.accessibility-note {
128-
background: var(--color-warning-bg);
129-
border: 1px solid #ffc107;
130-
color: var(--color-warning);
131-
padding: 1rem;
127+
/* Info cards - muted, grayish style */
128+
.info-card {
129+
background: #f5f5f7;
130+
border: 1px solid #e5e5e7;
131+
color: #6c757d;
132+
padding: 1rem 1.25rem;
132133
border-radius: var(--radius);
133-
margin: 1.5rem 0;
134-
font-size: 0.875rem;
134+
margin: 1rem 0;
135+
font-size: 0.8125rem;
136+
}
137+
138+
.info-card strong {
139+
display: block;
140+
margin-bottom: 0.5rem;
141+
color: #515154;
142+
font-size: 0.75rem;
143+
text-transform: uppercase;
144+
letter-spacing: 0.03em;
145+
}
146+
147+
.info-list {
148+
list-style: none;
149+
padding: 0;
150+
margin: 0;
151+
}
152+
153+
.info-list li {
154+
padding: 0.4rem 0;
155+
padding-left: 1.25rem;
156+
position: relative;
157+
line-height: 1.4;
158+
}
159+
160+
.info-list li::before {
161+
content: '•';
162+
position: absolute;
163+
left: 0;
164+
color: #86868b;
165+
}
166+
167+
.info-warning {
168+
border-left: 3px solid #86868b;
169+
}
170+
171+
.info-note {
172+
border-left: 3px solid var(--color-primary);
173+
color: #515154;
174+
}
175+
176+
.info-note .info-list li::before {
177+
color: var(--color-primary);
135178
}
136179

137180
.code-block {

0 commit comments

Comments
 (0)