Add the link list pattern back

This commit is contained in:
Ben Dwyer 2020-10-15 16:42:30 +01:00
parent 47964fcb21
commit 6fd11ad0e3
5 changed files with 12 additions and 15 deletions

View file

@ -1,13 +1,9 @@
.podcast-links-block {
a {
margin: 0 4px;
}
}
.podcast-links-list-block {
color: var(--entry-header--color);
a {
margin: 0 3px 0 7px;
&:first-child {
margin-left: 0;
}

View file

@ -70,6 +70,15 @@ if ( ! function_exists( 'spearhead_register_block_patterns' ) ) :
<!-- /wp:navigation -->',
)
);
register_block_pattern(
'spearhead/podcast-links-list',
array(
'title' => __( 'Podcast links list', 'spearhead' ),
'categories' => array( 'spearhead' ),
'content' => '<!-- wp:paragraph {"className":"podcast-links-list-block","style":{"typography":{"fontSize":18}}} --><p class="podcast-links-list-block" style="font-size:18px"><a rel="noreferrer noopener" target="_blank" href="https://www.apple.com/">Apple </a>•<a rel="noreferrer noopener" target="_blank" href="https://www.breaker.audio/">Breaker </a>•<a rel="noreferrer noopener" target="_blank" href="https://www.google.com/">Google </a>•<a rel="noreferrer noopener" target="_blank" href="https://www.linkedin.com/">LinkedIn </a>•<a rel="noreferrer noopener" target="_blank" href="https://overcast.fm/">Overcast </a>•<a rel="noreferrer noopener" target="_blank" href="https://www.spotify.com/">Spotify </a>•<a rel="noreferrer noopener" target="_blank" href="https://twitter.com/">Twitter </a>•<a href="https://www.youtube.com/" target="_blank" rel="noreferrer noopener">YouTube</a></p><!-- /wp:paragraph -->',
)
);
}
/**

View file

@ -356,10 +356,6 @@ ul.wp-block-categories,
color: var(--global--color-primary);
}
.podcast-links-block a {
margin: 0 4px;
}
.podcast-links-list-block {
color: var(--entry-header--color);
}

View file

@ -356,10 +356,6 @@ ul.wp-block-categories,
color: var(--global--color-primary);
}
.podcast-links-block a {
margin: 0 4px;
}
.podcast-links-list-block {
color: var(--entry-header--color);
}

File diff suppressed because one or more lines are too long