Selaa lähdekoodia

Merge pull request #2165 from Automattic/seedlet-blocks/center-align-site-title

Seedlet Blocks: Center-align the site title
Jeff Ong 5 vuotta sitten
vanhempi
commit
abab535a91
2 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 1
      seedlet-blocks/block-template-parts/header.html
  2. 0 5
      seedlet-blocks/style.css

+ 1 - 1
seedlet-blocks/block-template-parts/header.html

@@ -2,7 +2,7 @@
 <div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img src="https://cldup.com/B9dfntUFJE.png" alt="" width="128" height="128"/></figure></div>
 <!-- /wp:image -->
 
-<!-- wp:site-title /-->
+<!-- wp:site-title {"align":"center"} /-->
 
 <!-- wp:paragraph {"align":"center","fontSize":"small"} -->
 <p class="has-text-align-center has-small-font-size">is a curious botanist</p>

+ 0 - 5
seedlet-blocks/style.css

@@ -28,11 +28,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 */
 
-/* Center the site title. */
-.site-header h1 {
-	text-align: center;
-}
-
 /* Set up alignments */
 .wp-block-group .wp-block-group__inner-container > * {
 	max-width: var(--responsive--aligndefault-width);