-
Notifications
You must be signed in to change notification settings - Fork 127
About: Overlap Images With Paragraph #252
About: Overlap Images With Paragraph #252
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
If both images are already in the theme, why does a new image need to be added? If two different formats really are needed, both files need to be mentioned under the same declaration. |
I think the columns block just needs to be set to wide? |
Thank you @shail-mehta for you work on this one! The columns block needs to be set to wide, yes. I checked the pattern and it wasn't looking good on mobile. Here's a recording: overlappingimagesmobile.mp4So I had to do some trial and error to see how to make it look best across screen sizes. Here's how it turned out:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @shail-mehta! It looks really well, nice trick with the images and the negative margins.
I left a few comments for you to look at, apart from the ones that Carolina mentioned about the license and the width of the columns block.
Thanks again!
|
||
?> | ||
<!-- wp:group {"align":"full","className":"is-style-section-5","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull is-style-section-5" style="padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--80)"><!-- wp:columns {"verticalAlignment":null,"className":"is-style-default","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|60","left":"var:preset|spacing|80"}}}} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The columns
block should be set to align wide so that it takes the right width of the layout, and let's remove the is-style-default
.
<!-- /wp:group --> | ||
|
||
<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large"} --> | ||
<p class="has-x-large-font-size" style="line-height:1.2"><?php echo wp_kses_post( _x( '<strong>Fleurs</strong> is a flower delivery and subscription business. Based in the EU, our mission is not only to deliver stunning flower arrangements across but also foster knowledge and enthusiasm on the beautiful gift of nature: flowers.', 'Content of the overlap images and paragraph pattern', 'twentytwentyfive' ) ); ?></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory, this should be 28px, but with x-large
it is set to 32px
. I'll defer to @beafialho.
*/ | ||
|
||
?> | ||
<!-- wp:group {"align":"full","className":"is-style-section-5","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|80","right":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that with so much padding on the sides, the mobile layout looks a bit narrow. I'll defer to @beafialho.
We could use empty columns on the side to make it look good on desktop and mobile, like we did here.
Screen.Recording.2024-09-10.at.12.21.21.mov
@shail-mehta do you think we can work on the iterations to fix the issues raised in the reviews? |
About: Overlap Images With Paragraph
Screenshot:
For Images License: License is already added in
readme.txt
so not included license againFixes: #64