hotfix(projects): responsive status pills for mobile#1208
Open
johnsBeharry wants to merge 4 commits intomasterfrom
Open
hotfix(projects): responsive status pills for mobile#1208johnsBeharry wants to merge 4 commits intomasterfrom
johnsBeharry wants to merge 4 commits intomasterfrom
Conversation
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
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
✅ Deploy Preview for bitcoin-design-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements responsive status text for project cards on mobile using CSS-only solution with
.hide-mobilespans.Changes
.hide-mobileCSS class for mobile (< 640px)Projects Affected
Technical Details