Skip to content

Commit

Permalink
Block styles: Make card grid more flexible
Browse files Browse the repository at this point in the history
Style any direct child as a card. Allows styling non-block content in card grids, eg. on support homepage.

See https://meta.trac.wordpress.org/ticket/4007
  • Loading branch information
adamwoodnz committed Mar 13, 2024
1 parent 5885209 commit 041b951
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@
grid-auto-rows: unset;
}

.wp-block-wporg-link-wrapper {
> * {
padding: var(--wp--preset--spacing--20);
border: 1px solid var(--wp--preset--color--light-grey-1);
color: var(--wp--preset--color--charcoal-1);
border-radius: 2px;
}

> a {
h2,
h3,
h4,
Expand Down

0 comments on commit 041b951

Please sign in to comment.