Skip to content

Commit f393a21

Browse files
committed
Pledge details: Style the pledge organization header on small screens
See #301
1 parent e5b3f85 commit f393a21

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

themes/wporg-5ftf-2024/patterns/single-5ftf-pledge.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*/
77

88
?>
9-
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"},"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
10-
<div class="wp-block-group alignwide" style="margin-bottom:var(--wp--preset--spacing--40)">
9+
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"},"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","flexWrap":"nowrap"},"className":"org-pledge-header"} -->
10+
<div class="wp-block-group alignwide org-pledge-header" style="margin-bottom:var(--wp--preset--spacing--40)">
1111
<!-- wp:group {"style":{"border":{"radius":"2px"},"spacing":{"padding":{"top":"var:preset|spacing|10","bottom":"var:preset|spacing|10","left":"var:preset|spacing|10","right":"var:preset|spacing|10"}}},"backgroundColor":"light-grey-2","layout":{"type":"constrained"}} -->
1212
<div class="wp-block-group has-light-grey-2-background-color has-background" style="border-radius:2px;padding-top:var(--wp--preset--spacing--10);padding-right:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--10)">
13-
<!-- wp:post-featured-image {"aspectRatio":"1","width":"110px","scale":"contain"} /-->
13+
<!-- wp:post-featured-image {"aspectRatio":"16/9","width":"160px","scale":"contain"} /-->
1414
</div>
1515
<!-- /wp:group -->
1616

themes/wporg-5ftf-2024/src/style/style.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,20 @@ body.is-page-in-menu .wp-block-wporg-local-navigation-bar .wp-block-post-title {
9191
}
9292
}
9393
}
94+
95+
/* Style the single (org) pledges header */
96+
.org-pledge-header {
97+
98+
@media (max-width: 600px) {
99+
flex-direction: column;
100+
margin-block-end: 40px !important;
101+
102+
> .wp-block-group {
103+
align-items: flex-start;
104+
}
105+
106+
.wp-block-post-featured-image {
107+
width: 100% !important;
108+
}
109+
}
110+
}

0 commit comments

Comments
 (0)