瀏覽代碼

Block canvas regressions (#6110)

* fix incorrect theme.json definitions

* centered post meta

* fix font sizes
Maggie 3 年之前
父節點
當前提交
e098d651aa
共有 2 個文件被更改,包括 17 次插入13 次删除
  1. 9 5
      block-canvas/parts/post-meta.html
  2. 8 8
      block-canvas/theme.json

+ 9 - 5
block-canvas/parts/post-meta.html

@@ -1,8 +1,12 @@
-<!-- wp:group {"layout":{"type":"flex"}} -->
+<!-- wp:group {"layout":{"inherit":true}} -->
 <div class="wp-block-group">
-	<!-- wp:post-author {"showAvatar":false,"showBio":false,"style":{"typography":{"fontSize":"14px"}}} /-->
-	<!-- wp:post-date {"isLink":true,"style":{"typography":{"fontSize":"14px"}}} /-->
-	<!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"14px"}}} /-->
-	<!-- wp:post-terms {"term": "post_tag","style":{"typography":{"fontSize":"14px"}}} /-->
+	<!-- wp:group {"layout":{"type":"flex"}} -->
+	<div class="wp-block-group">
+		<!-- wp:post-author {"showAvatar":false,"showBio":false,"style":{"typography":{"fontSize":"14px"}}} /-->
+		<!-- wp:post-date {"isLink":true,"style":{"typography":{"fontSize":"14px"}}} /-->
+		<!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"14px"}}} /-->
+		<!-- wp:post-terms {"term": "post_tag","style":{"typography":{"fontSize":"14px"}}} /-->
+	</div>
+	<!-- /wp:group -->
 </div>
 <!-- /wp:group -->

+ 8 - 8
block-canvas/theme.json

@@ -40,17 +40,17 @@
             "link": true,
             "palette": [
                 {
-                    "color": "#776c4e",
+                    "color": "#007cba",
                     "name": "Primary",
                     "slug": "primary"
                 },
                 {
-                    "color": "#a19982",
+                    "color": "#006ba1",
                     "name": "Secondary",
                     "slug": "secondary"
                 },
                 {
-                    "color": "#000000",
+                    "color": "#333333",
                     "name": "Foreground",
                     "slug": "foreground"
                 },
@@ -60,7 +60,7 @@
                     "slug": "background"
                 },
                 {
-                    "color": "#f1ede6",
+                    "color": "#F0F0F0",
                     "name": "Tertiary",
                     "slug": "tertiary"
                 }
@@ -180,7 +180,7 @@
             },
             "core/navigation": {
                 "typography": {
-                    "fontSize": "var(--wp--preset--font-size--medium)"
+                    "fontSize": "1.125rem"
                 }
             },
             "core/post-date": {
@@ -232,7 +232,7 @@
                     }
                 },
                 "typography": {
-                    "fontSize": "var(--wp--preset--font-size--medium)",
+                    "fontSize": "1.125rem",
                     "fontStyle": "normal"
                 }
             },
@@ -259,7 +259,7 @@
             },
             "core/site-title": {
                 "typography": {
-                    "fontSize": "var(--wp--preset--font-size--medium)",
+                    "fontSize": "1.125rem",
                     "fontWeight": "700",
                     "textDecoration": "none"
                 }
@@ -311,7 +311,7 @@
         },
         "typography": {
             "fontFamily": "var(--wp--preset--font-family--system-font)",
-            "fontSize": "var(--wp--preset--font-size--medium)",
+            "fontSize": "1.125rem",
             "lineHeight": "1.6"
         }
     },