Przeglądaj źródła

Align footer credits block (#5034)

Sarah Norris 3 lat temu
rodzic
commit
ea5e1656c9

+ 4 - 0
videomaker/assets/theme.css

@@ -140,6 +140,10 @@ footer > .wp-block-group p {
 	margin-bottom: 0;
 }
 
+footer > .wp-block-group .footer-credit {
+	align-self: flex-end;
+}
+
 .post-tags-container .taxonomy-post_tag.wp-block-post-terms {
 	display: flex;
 	flex-wrap: wrap;

+ 2 - 2
videomaker/block-template-parts/footer.html

@@ -5,8 +5,8 @@
 	<!-- wp:navigation {"orientation":"vertical","__unstableLocation":"footer"} --><!-- /wp:navigation -->
 	</div>
 	<!-- /wp:group -->
-	<!-- wp:group -->
-	<div class="wp-block-group">
+	<!-- wp:group {"className":"footer-credit"} -->
+	<div class="wp-block-group footer-credit">
 		<!-- wp:paragraph {"fontSize":"small"} -->
 		<p class="has-small-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
 		<!-- /wp:paragraph -->

+ 4 - 0
videomaker/sass/templates/_footer.scss

@@ -4,4 +4,8 @@ footer > .wp-block-group {
 	p {
 		margin-bottom: 0;
 	}
+
+	.footer-credit {
+		align-self: flex-end;
+	}
 }