fix layout balance for docs/home on tablet and mobile#52485
fix layout balance for docs/home on tablet and mobile#52485ritorhymes wants to merge 1 commit intokubernetes:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Description
The cards on mobile are positioned to be centered but appear noticeably offset to the left due to padding applied on the right side only, throwing off the visual balance. Removing it on the tablet and mobile breakpoint so neither side has padding eliminates the offset to center the cards proportionally; there is already sufficient space around the cards, so adding proportional padding to the left side instead does not seem the preferred approach.
Each card's button width is the same size on desktop, but on mobile and tablet screens, the button sizes vary, and especially since cards are generally expected to appear uniform, it looks visually unbalanced rather than a deliberate stylistic choice. On mobile and tablet, because all the cards' content are aligned to the left creating significant whitespace on the right side, I felt the natural solution in achieving uniformity is to allow all the buttons to span the entire card width and fill parts of that whitespace.
The result of the fixes should be a more purposeful and uniform card layout on tablet and mobile.
The fixes are in
_documentation.scssto:Before and After
Before - centering

After - centering

Before - button width

After - button width
