Add the link list pattern back
This commit is contained in:
parent
47964fcb21
commit
6fd11ad0e3
5 changed files with 12 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 -->',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue