Skip to content

Commit

Permalink
Small adjustments to bundled block patterns (#31105)
Browse files Browse the repository at this point in the history
* Remove paragraph pattern.

* Revise text.

* Adjust text again.
  • Loading branch information
kjellr authored Apr 22, 2021
1 parent 2d60a30 commit 928e6a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
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

0 comments on commit 928e6a4

Please sign in to comment.