Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Block Patterns - Hero (Adjustments) #256

Closed
beafialho opened this issue Sep 7, 2023 · 2 comments · Fixed by #259
Closed

Block Patterns - Hero (Adjustments) #256

beafialho opened this issue Sep 7, 2023 · 2 comments · Fixed by #259

Comments

@beafialho
Copy link

Looking good! Just added horizontal padding so the image doesn't bump on the edges.

Besides that, I wanted to ask, is there a way we can avoid this widow in the heading?

Captura de ecrã 2023-09-07, às 12 21 05

Here's the markup:

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center"} -->
<h2 class="wp-block-heading has-text-align-center">A commitment to innovation and sustainability</h2>
<!-- /wp:heading -->

<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"1.25rem","selfStretch":"fixed"}}} -->
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Études is a pioneering firm that seamlessly merges creativity and functionality to redefine architectural excellence.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"1.25rem","selfStretch":"fixed"}}} -->
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Learn More</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"5rem","selfStretch":"fixed"}}} -->
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->

<!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image alignwide size-full is-style-rounded"><img src="http://localhost:8881/wp-content/themes/twentytwentyfour/assets/images/tt4_business_image_hero.jpg" alt="A skyscraper building."/></figure>
<!-- /wp:image --></div>
<!-- /wp:group -->
@masoudnkh
Copy link

can use css in style.css? like this:
.is-vertical.is-content-justification-center {
max-width: var(--wp--style--global--wide-size);
}
.is-vertical.is-content-justification-center p {
max-width: var(--wp--style--global--content-size);
}

@richtabor
Copy link
Member

? can use css in style.css? like this

No I don't think we should. It leads to an unexpected result wherever that is applied. Why were thinking of that CSS?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.