Last active
August 19, 2023 21:26
-
-
Save stokesman/69dffe6f9a4e3b7505aa13485e03363b to your computer and use it in GitHub Desktop.
WP: tedious way to align nested children
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:columns {"verticalAlignment":"center","align":"wide"} --> | |
<div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center"} --> | |
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:cover {"dimRatio":50,"overlayColor":"cyan-bluish-gray","contentPosition":"center center","isDark":false} --> | |
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-cyan-bluish-gray-background-color has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"2.5em"}},"fontSize":"large"} --> | |
<h2 class="wp-block-heading has-text-align-center has-large-font-size">Simple Question</h2> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"6em"}}} --> | |
<p class="has-text-align-center">Simple answer.</p> | |
<!-- /wp:paragraph --> | |
<!-- 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">Be quizzed</a></div> | |
<!-- /wp:button --></div> | |
<!-- /wp:buttons --></div> | |
<!-- /wp:group --></div></div> | |
<!-- /wp:cover --></div> | |
<!-- /wp:column --> | |
<!-- wp:column {"verticalAlignment":"center"} --> | |
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:cover {"dimRatio":50,"overlayColor":"cyan-bluish-gray","contentPosition":"center center","isDark":false} --> | |
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-cyan-bluish-gray-background-color has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"2.5em"}},"fontSize":"large"} --> | |
<h2 class="wp-block-heading has-text-align-center has-large-font-size">Mere Question</h2> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"6em"}}} --> | |
<p class="has-text-align-center">Yet without a simple answer. It's rather more complex.</p> | |
<!-- /wp:paragraph --> | |
<!-- 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">Be not sure</a></div> | |
<!-- /wp:button --></div> | |
<!-- /wp:buttons --></div> | |
<!-- /wp:group --></div></div> | |
<!-- /wp:cover --></div> | |
<!-- /wp:column --> | |
<!-- wp:column --> | |
<div class="wp-block-column"><!-- wp:cover {"dimRatio":50,"overlayColor":"cyan-bluish-gray","contentPosition":"center center","isDark":false} --> | |
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-cyan-bluish-gray-background-color has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"2.5em"}},"fontSize":"large"} --> | |
<h2 class="wp-block-heading has-text-align-center has-large-font-size">Yet a Bigger Question</h2> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"6em"}}} --> | |
<p class="has-text-align-center">It's not too complex.</p> | |
<!-- /wp:paragraph --> | |
<!-- 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">Be sure</a></div> | |
<!-- /wp:button --></div> | |
<!-- /wp:buttons --></div> | |
<!-- /wp:group --></div></div> | |
<!-- /wp:cover --></div> | |
<!-- /wp:column --> | |
<!-- wp:column --> | |
<div class="wp-block-column"><!-- wp:cover {"dimRatio":50,"overlayColor":"cyan-bluish-gray","contentPosition":"center center","isDark":false} --> | |
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-cyan-bluish-gray-background-color has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"2.5em"}},"fontSize":"large"} --> | |
<h2 class="wp-block-heading has-text-align-center has-large-font-size">Oh Question</h2> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","style":{"layout":{"selfStretch":"fixed","flexSize":"6em"}}} --> | |
<p class="has-text-align-center">Quested for years and still questioning.</p> | |
<!-- /wp:paragraph --> | |
<!-- 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">Be aligned</a></div> | |
<!-- /wp:button --></div> | |
<!-- /wp:buttons --></div> | |
<!-- /wp:group --></div></div> | |
<!-- /wp:cover --></div> | |
<!-- /wp:column --></div> | |
<!-- /wp:columns --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment