浏览代码

indent title and remove huge size

Ben Dwyer 3 年之前
父节点
当前提交
3d33e18f4c
共有 3 个文件被更改,包括 10 次插入10 次删除
  1. 1 1
      rainfall/patterns/latest-posts.php
  2. 7 2
      rainfall/style.css
  3. 2 7
      rainfall/theme.json

+ 1 - 1
rainfall/patterns/latest-posts.php

@@ -17,7 +17,7 @@
 
 
 <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"}}} /-->
 <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"}}} /-->
 
 
-<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"14px","bottom":"40px"}}},"fontSize":"huge"} /-->
+<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"14px","bottom":"40px"}}},"fontSize":"4.875rem"} /-->
 
 
 <!-- wp:post-excerpt /-->
 <!-- wp:post-excerpt /-->
 <!-- /wp:post-template --></div>
 <!-- /wp:post-template --></div>

+ 7 - 2
rainfall/style.css

@@ -10,7 +10,12 @@ Requires PHP: 5.7
 Version: 0.0.1
 Version: 0.0.1
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
 License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
-Template: 
+Template:
 Text Domain: rainfall
 Text Domain: rainfall
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
-*/
+*/
+
+.wp-block-post-title {
+	margin-left: 1ch;
+	text-indent: -1ch;
+}

+ 2 - 7
rainfall/theme.json

@@ -75,12 +75,12 @@
 				},
 				},
 				{
 				{
 					"name": "Medium",
 					"name": "Medium",
-					"size": "1.375rem",
+					"size": "1.5rem",
 					"slug": "medium"
 					"slug": "medium"
 				},
 				},
 				{
 				{
 					"name": "Large",
 					"name": "Large",
-					"size": "1.625rem",
+					"size": "1.75rem",
 					"slug": "large"
 					"slug": "large"
 				},
 				},
 				{
 				{
@@ -88,11 +88,6 @@
 					"size": "2rem",
 					"size": "2rem",
 					"slug": "x-large"
 					"slug": "x-large"
 				},
 				},
-				{
-					"name": "Huge",
-					"size": "4.875rem",
-					"slug": "huge"
-				},
 				{
 				{
 					"name": "Ginormous",
 					"name": "Ginormous",
 					"size": "6.5rem",
 					"size": "6.5rem",