Jelajahi Sumber

removed extra custom variables from Quadrat that weren't needed

Maggie 4 tahun lalu
induk
melakukan
02a8ea30bf
4 mengubah file dengan 24 tambahan dan 26 penghapusan
  1. 0 5
      quadrat/assets/theme.css
  2. 12 9
      quadrat/child-theme.json
  3. 0 3
      quadrat/sass/blocks/_query.scss
  4. 12 9
      quadrat/theme.json

+ 0 - 5
quadrat/assets/theme.css

@@ -495,11 +495,6 @@ ul ul {
 	margin-bottom: 0;
 }
 
-.wp-block-query-loop .wp-block-post-title,
-.wp-block-query .wp-block-post-title {
-	font-size: var(--wp--custom--heading--h3--font-size);
-}
-
 .wp-block-query-loop .wp-block-post-excerpt__more-text,
 .wp-block-query .wp-block-post-excerpt__more-text {
 	font-size: var(--wp--preset--font-size--tiny) !important;

+ 12 - 9
quadrat/child-theme.json

@@ -165,12 +165,6 @@
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--dm-sans)",
 					"fontWeight": "500"
-				},
-				"h1": {
-					"fontSize": "min(max(48px, 7vw), 80px)"
-				},
-				"h3": {
-					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 			},
 			"layout": {
@@ -312,7 +306,7 @@
 			},
 			"core/post-title": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h1--font-size)",
+					"fontSize": "min(max(48px, 7vw), 80px)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": 1.2
 				}
@@ -360,6 +354,15 @@
 					"width": "1px 0 0 0"
 				}
 			},
+			"core/post-template": {
+				"elements": {
+					"h2": {
+						"typography": {
+							"fontSize": "min(max(28px, 5vw), 38px)"
+						}
+					}
+				}
+			},
 			"core/query-pagination": {
 				"typography": {
 					"fontSize": "18px",
@@ -380,7 +383,7 @@
 		"elements": {
 			"h1": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h1--font-size)",
+					"fontSize": "min(max(48px, 7vw), 80px)",
 					"lineHeight": 1.2
 				}
 			},
@@ -392,7 +395,7 @@
 			},
 			"h3": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h3--font-size)",
+					"fontSize": "min(max(28px, 5vw), 38px)",
 					"lineHeight": 1.2
 				}
 			},

+ 0 - 3
quadrat/sass/blocks/_query.scss

@@ -1,8 +1,5 @@
 .wp-block-query-loop,
 .wp-block-query {
-	.wp-block-post-title {
-		font-size: var(--wp--custom--heading--h3--font-size);
-	}
 
 	// Important is necessary to override any other font size rules applied to the exerpt.
 	.wp-block-post-excerpt__more-text {

+ 12 - 9
quadrat/theme.json

@@ -235,12 +235,6 @@
 					"fontFamily": "var(--wp--preset--font-family--dm-sans)",
 					"fontWeight": "500",
 					"lineHeight": 1.125
-				},
-				"h1": {
-					"fontSize": "min(max(48px, 7vw), 80px)"
-				},
-				"h3": {
-					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 			},
 			"latest-posts": {
@@ -454,7 +448,7 @@
 			"core/post-title": {
 				"typography": {
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
-					"fontSize": "var(--wp--custom--heading--h1--font-size)",
+					"fontSize": "min(max(48px, 7vw), 80px)",
 					"lineHeight": 1.2,
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)"
 				}
@@ -543,6 +537,15 @@
 					"left": "calc( 2 * var(--wp--custom--margin--horizontal) )"
 				}
 			},
+			"core/post-template": {
+				"elements": {
+					"h2": {
+						"typography": {
+							"fontSize": "min(max(28px, 5vw), 38px)"
+						}
+					}
+				}
+			},
 			"core/query-pagination": {
 				"typography": {
 					"fontSize": "18px",
@@ -560,7 +563,7 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": 1.2,
-					"fontSize": "var(--wp--custom--heading--h1--font-size)"
+					"fontSize": "min(max(48px, 7vw), 80px)"
 				}
 			},
 			"h2": {
@@ -576,7 +579,7 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": 1.2,
-					"fontSize": "var(--wp--custom--heading--h3--font-size)"
+					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 			},
 			"h4": {