Commit 3c1910b
authored
hotfix(projects): responsive status pills for mobile (#1208)
* hotfix(projects): correct the image grid src
* feat(projects): implement responsive status text with hide-mobile spans
Add CSS-only solution for displaying longer status text on desktop and shorter text on mobile without JavaScript or additional YAML properties.
Changes:
- Add .hide-mobile CSS class that hides content on mobile (< 640px)
- Update status pills to use hide-mobile spans for conditional text display
- "Active advocacy underway" shows full text on desktop, "Active advocacy" on mobile
- "Alpha stage, approaching v1 launch" shows full text on desktop, "Alpha stage" on mobile
Projects affected:
- Bitcoin Builder Kit: Alpha stage, approaching v1 launch
- Adopting the ₿ symbol: Active advocacy underway
- Human Bitcoin Addresses: Active advocacy underway
- Making Privacy Permeate: Active advocacy underway
* fix(projects): improve mobile spacing and status text rendering
Adjust mobile spacing and fix HTML rendering for status pills.
Changes:
- Fix status text spacing: move space outside hide-mobile span for proper rendering
("Active advocacy <span>underway</span>" instead of "Active advocacy<span> underway</span>")
- Reduce projects-grid bottom padding on mobile from 60px to 15px
- Add spacing between Funding section and first split section using adjacent sibling selector (p + .split-section)
- Ensures proper spacing hierarchy: projects → funding (tight) → split sections (spaced)
Affected status pills:
- Adopting the ₿ symbol
- Human Bitcoin Addresses
- Making Privacy Permeate
* fix(projects): use non-breaking space entity in hide-mobile spans
Replace regular space with in status pills to prevent whitespace collapsing.
Ensures consistent spacing between 'Active advocacy' and 'underway' on desktop.
Browser whitespace collapsing rules can remove spaces at the start of inline
elements like <span>. Using entity forces the space to always render.1 parent 5c939e7 commit 3c1910b
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
357 | 366 | | |
358 | 367 | | |
359 | 368 | | |
| |||
0 commit comments