Browse Source

second block of podcast links

Maggie Cabrera 4 years ago
parent
commit
0109277849

+ 11 - 1
spearhead/assets/sass/block-extends/_links.scss

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

+ 9 - 0
spearhead/inc/block-patterns.php

@@ -59,6 +59,15 @@ if ( ! function_exists( 'spearhead_register_block_patterns' ) ) :
 					'content'    => '<!-- wp:paragraph {"className":"podcast-links-block","style":{"typography":{"fontSize":17}}} --><p class="podcast-links-block" style="font-size:17px">Podcast available on:  <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 -->',
 					'content'    => '<!-- wp:paragraph {"className":"podcast-links-block","style":{"typography":{"fontSize":17}}} --><p class="podcast-links-block" style="font-size:17px">Podcast available on:  <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 -->',
 				)
 				)
 			);
 			);
+
+			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 -->',
+				)
+			);
 		}
 		}
 
 
 		/**
 		/**

+ 12 - 0
spearhead/style-rtl.css

@@ -360,6 +360,18 @@ ul.wp-block-categories,
 	margin: 0 4px;
 	margin: 0 4px;
 }
 }
 
 
+.podcast-links-list-block {
+	color: var(--entry-header--color);
+}
+
+.podcast-links-list-block a {
+	margin: 0 7px 0 3px;
+}
+
+.podcast-links-list-block a:first-child {
+	margin-right: 0;
+}
+
 .wp-block-jetpack-related-posts .jp-related-posts-i2__post {
 .wp-block-jetpack-related-posts .jp-related-posts-i2__post {
 	margin: 0 0 0 var(--global--spacing-horizontal);
 	margin: 0 0 0 var(--global--spacing-horizontal);
 }
 }

+ 12 - 0
spearhead/style.css

@@ -360,6 +360,18 @@ ul.wp-block-categories,
 	margin: 0 4px;
 	margin: 0 4px;
 }
 }
 
 
+.podcast-links-list-block {
+	color: var(--entry-header--color);
+}
+
+.podcast-links-list-block a {
+	margin: 0 3px 0 7px;
+}
+
+.podcast-links-list-block a:first-child {
+	margin-left: 0;
+}
+
 .wp-block-jetpack-related-posts .jp-related-posts-i2__post {
 .wp-block-jetpack-related-posts .jp-related-posts-i2__post {
 	margin: 0 var(--global--spacing-horizontal) 0 0;
 	margin: 0 var(--global--spacing-horizontal) 0 0;
 }
 }

File diff suppressed because it is too large
+ 0 - 0
spearhead/style.css.map


Some files were not shown because too many files changed in this diff