From f393a214ec296856b2c658efb3a5a4e8d5d67601 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 10 Sep 2024 15:22:55 -0400 Subject: [PATCH] Pledge details: Style the pledge organization header on small screens See #301 --- .../patterns/single-5ftf-pledge.php | 6 +++--- themes/wporg-5ftf-2024/src/style/style.scss | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/themes/wporg-5ftf-2024/patterns/single-5ftf-pledge.php b/themes/wporg-5ftf-2024/patterns/single-5ftf-pledge.php index c56cf6d..953fcf3 100644 --- a/themes/wporg-5ftf-2024/patterns/single-5ftf-pledge.php +++ b/themes/wporg-5ftf-2024/patterns/single-5ftf-pledge.php @@ -6,11 +6,11 @@ */ ?> - -
+ +
- +
diff --git a/themes/wporg-5ftf-2024/src/style/style.scss b/themes/wporg-5ftf-2024/src/style/style.scss index 530487a..b13e615 100644 --- a/themes/wporg-5ftf-2024/src/style/style.scss +++ b/themes/wporg-5ftf-2024/src/style/style.scss @@ -91,3 +91,20 @@ body.is-page-in-menu .wp-block-wporg-local-navigation-bar .wp-block-post-title { } } } + +/* Style the single (org) pledges header */ +.org-pledge-header { + + @media (max-width: 600px) { + flex-direction: column; + margin-block-end: 40px !important; + + > .wp-block-group { + align-items: flex-start; + } + + .wp-block-post-featured-image { + width: 100% !important; + } + } +}