Skip to content

Fixed how cards are arranged #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fixed how cards are arranged #301

wants to merge 1 commit into from

Conversation

lamATnginx
Copy link
Collaborator

@lamATnginx lamATnginx commented Jul 3, 2025

Proposed changes

Fixed how cards are arranged. Should follow a "2-1" format correctly, where in a full subset of three cards, first two are half sized, and last one is full sized. In practical terms, every card should be half sized except last odd numbered card.

Before (for 5 cards):
Screenshot 2025-07-03 at 3 19 37 PM

After:
Screenshot 2025-07-03 at 3 19 26 PM

Before (for 4 cards):
Screenshot 2025-07-03 at 3 22 57 PM

After:
Screenshot 2025-07-03 at 3 23 06 PM

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • I have updated any relevant documentation (README.md and CHANGELOG.md)

@lamATnginx lamATnginx self-assigned this Jul 3, 2025
@lamATnginx lamATnginx requested a review from a team as a code owner July 3, 2025 22:22
@lamATnginx lamATnginx added the bug Something isn't working label Jul 3, 2025
Copy link

github-actions bot commented Jul 3, 2025

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/nginx-hugo-theme/301/

@@ -1248,6 +1249,24 @@ h6:has(a):hover {
&:not(:has(.featured-card)) *:nth-child(n + 3 of div.card-container) {
grid-column: 1 / -1;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I almost have a PR up for the content regrid with gird utilities. That would mean the cards themselves could be passed a param and decide how to be displayed. Can these changes hold off till then?
These selectors are amazing though 😂 .

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it can wait. The existing change is non-breaking so this can wait.

@lamATnginx
Copy link
Collaborator Author

Resolved in #304

@lamATnginx lamATnginx closed this Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants