From 041b951eeac5738230834d3e59647ee4fea23751 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:04:30 +1300 Subject: [PATCH] Block styles: Make card grid more flexible 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 --- .../themes/wporg-parent-2021/sass/block-styles.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss b/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss index a8cde04c..4f850b4b 100644 --- a/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss +++ b/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss @@ -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,