Pārlūkot izejas kodu

Zoologist: Update spacing from wpcom (#4834)

Ben Dwyer 3 gadi atpakaļ
vecāks
revīzija
3b5856b67b

+ 2 - 2
zoologist/block-template-parts/header.html

@@ -1,5 +1,5 @@
-<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
-<header class="wp-block-group site-header" style="padding-bottom:90px">
+<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"120px"}}},"className":"site-header","layout":{"type":"flex"}} -->
+<header class="wp-block-group site-header" style="padding-bottom:120px">
 	<!-- wp:site-logo /-->
 	<!-- wp:site-title /-->
 	<!-- wp:site-tagline {"style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->

+ 2 - 2
zoologist/block-templates/page-without-title.html

@@ -1,7 +1,7 @@
 <!-- wp:template-part {"slug":"header"} /-->
 
-<!-- wp:spacer {"height":60} -->
-<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
+<!-- wp:spacer {"height":30} -->
+<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
 <!-- wp:group {"tagName":"main"} -->

+ 5 - 5
zoologist/functions.php

@@ -3,7 +3,7 @@
 /**
  * Add Editor Styles
  */
-function newtheme_editor_styles() {
+function zoologist_editor_styles() {
 	// Enqueue editor styles.
 	add_editor_style(
 		array(
@@ -11,13 +11,13 @@ function newtheme_editor_styles() {
 		)
 	);
 }
-add_action( 'after_setup_theme', 'newtheme_editor_styles' );
+add_action( 'after_setup_theme', 'zoologist_editor_styles' );
 
 /**
  *
  * Enqueue scripts and styles.
  */
-function newtheme_scripts() {
-	wp_enqueue_style( 'newtheme-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
+function zoologist_scripts() {
+	wp_enqueue_style( 'zoologist-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
 }
-add_action( 'wp_enqueue_scripts', 'newtheme_scripts' );
+add_action( 'wp_enqueue_scripts', 'zoologist_scripts' );