Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small adjustments to bundled block patterns #31105

Merged
merged 5 commits into from
Apr 22, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions lib/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,7 @@
)
);

// Initial block patterns to be used in block transformations with patterns.
register_block_pattern(
'paragraph/large-with-background-color',
array(
'title' => __( 'Large paragraph with background color', 'gutenberg' ),
'categories' => array( 'text' ),
'blockTypes' => array( 'core/paragraph' ),
'viewportWidth' => 500,
'content' => '<!-- wp:paragraph {"style":{"color":{"link":"#FFFFFF","text":"#FFFFFF","background":"#000000"},"typography":{"lineHeight":"1.3","fontSize":"26px"}}} -->
<p class="has-text-color has-background has-link-color" style="--wp--style--color--link:#FFFFFF;background-color:#000000;color:#FFFFFF;font-size:26px;line-height:1.3">The whole series of my life appeared to me as a dream; I sometimes doubted if indeed it were all true, for it never presented itself to my mind with the force of reality.</p>
<!-- /wp:paragraph -->',
)
);
// Initial block pattern to be used with block transformations with patterns.
register_block_pattern(
'social-links/shared-background-color',
array(
Expand Down
4 changes: 2 additions & 2 deletions lib/block-patterns/three-columns-media-text.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<!-- /wp:spacer -->

<!-- wp:heading {"level":6,"style":{"color":{"text":"#000000"}}} -->
<h6 class="has-text-color" style="color:#000000">' . esc_html__( 'ECOSYSTEM', 'default' ) . '</h6>
<h6 class="has-text-color" style="color:#000000">' . esc_html__( 'ECOLOGY', 'default' ) . '</h6>
<!-- /wp:heading -->

<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.1","fontSize":"5vw"},"color":{"text":"#000000"}}} -->
<p class="has-text-color" style="color:#000000;font-size:5vw;line-height:1.1"><strong>' . esc_html__( 'Positive growth.', 'default' ) . '</strong></p>
<p class="has-text-color" style="color:#000000;font-size:5vw;line-height:1.1"><strong>' . esc_html__( 'Natural resources.', 'default' ) . '</strong></p>
<!-- /wp:paragraph --><!-- wp:spacer {"height":5} -->
<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
Expand Down