浏览代码

Change post header and content typography to support global

Imran Hossain 2 年之前
父节点
当前提交
473b1fe2aa
共有 1 个文件被更改,包括 5 次插入9 次删除
  1. 5 9
      course/styles/gold.json

+ 5 - 9
course/styles/gold.json

@@ -233,8 +233,7 @@
 			"core/paragraph": {
 				"typography": {
 					"lineHeight": "1.6",
-					"letterSpacing": "-0.004em",
-					"fontSize": "clamp(var(--wp--preset--font-size--small), 0.821rem + 0.476vw, var(--wp--custom--typography--font-sizes--normal))"
+					"letterSpacing": "-0.004em"
 				}
 			},
 			"sensei-lms/course-theme-lesson-module": {
@@ -244,11 +243,6 @@
 					"lineHeight": "1.21"
 				}
 			},
-			"core/post-title": {
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--x-large)"
-				}
-			},
 			"sensei-lms/course-navigation": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--heading)",
@@ -300,7 +294,8 @@
 			},
 			"h1": {
 				"typography": {
-					"textTransform": "none"
+					"textTransform": "none",
+					"fontSize": "var(--wp--preset--font-size--x-large)"
 				}
 			},
 			"button": {
@@ -312,7 +307,8 @@
 			}
 		},
 		"typography": {
-			"fontFamily": "var(--wp--preset--font-family--body)"
+			"fontFamily": "var(--wp--preset--font-family--body)",
+			"fontSize": "clamp(var(--wp--preset--font-size--small), 0.821rem + 0.476vw, var(--wp--custom--typography--font-sizes--normal))"
 		}
 	}
 }