Explorar o código

removed extra custom variables from Sk8prk

Maggie %!s(int64=4) %!d(string=hai) anos
pai
achega
9e6290b5dc
Modificáronse 4 ficheiros con 18 adicións e 72 borrados
  1. 0 12
      skatepark/assets/theme.css
  2. 9 24
      skatepark/child-theme.json
  3. 0 12
      skatepark/sass/base/_text.scss
  4. 9 24
      skatepark/theme.json

+ 0 - 12
skatepark/assets/theme.css

@@ -42,16 +42,4 @@
 	color: var(--wp--preset--color--background);
 }
 
-h4 {
-	text-transform: var(--wp--custom--heading--h4--text-transform);
-}
-
-h5 {
-	text-transform: var(--wp--custom--heading--h5--text-transform);
-}
-
-h6 {
-	text-transform: var(--wp--custom--heading--h6--text-transform);
-}
-
 /*# sourceMappingURL=theme.css.map */

+ 9 - 24
skatepark/child-theme.json

@@ -36,24 +36,6 @@
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--red-hat-display)",
 					"fontWeight": "700"
-				},
-				"h1": {
-					"fontSize": "min(max(48px, 7vw), 72px)"
-				},
-				"h2": {
-					"fontSize": "min(max(36px, 5vw), 64px)"
-				},
-				"h3": {
-					"fontSize": "min(max(30px, 5vw), 48px)"
-				},
-				"h4": {
-					"textTransform": "uppercase"
-				},
-				"h5": {
-					"textTransform": "uppercase"
-				},
-				"h6": {
-					"textTransform": "uppercase"
 				}
 			},
 			"line-height": {
@@ -108,21 +90,21 @@
 		"elements": {
 			"h1": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h1--font-size)",
+					"fontSize": "min(max(48px, 7vw), 72px)",
 					"lineHeight": 1.2,
 					"fontWeight": "700"
 				}
 			},
 			"h2": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h2--font-size)",
+					"fontSize": "min(max(36px, 5vw), 64px)",
 					"lineHeight": 1.2,
 					"fontWeight": "900"
 				}
 			},
 			"h3": {
 				"typography": {
-					"fontSize": "var(--wp--custom--heading--h3--font-size)",
+					"fontSize": "min(max(30px, 5vw), 48px)",
 					"lineHeight": 1.4,
 					"fontWeight": "900"
 				}
@@ -131,21 +113,24 @@
 				"typography": {
 					"fontSize": "20px",
 					"lineHeight": 1.3,
-					"fontWeight": "900"
+					"fontWeight": "900",
+					"textTransform": "uppercase"
 				}
 			},
 			"h5": {
 				"typography": {
 					"fontSize": "16px",
 					"lineHeight": 1.3,
-					"fontWeight": "900"
+					"fontWeight": "900",
+					"textTransform": "uppercase"
 				}
 			},
 			"h6": {
 				"typography": {
 					"fontSize": "14px",
 					"lineHeight": 1.3,
-					"fontWeight": "900"
+					"fontWeight": "900",
+					"textTransform": "uppercase"
 				}
 			}
 		},

+ 0 - 12
skatepark/sass/base/_text.scss

@@ -1,16 +1,4 @@
 // Text selection text color
 ::selection {
 	color: var(--wp--preset--color--background);
-}
-
-h4 {
-	text-transform: var(--wp--custom--heading--h4--text-transform);
-}
-
-h5 {
-	text-transform: var(--wp--custom--heading--h5--text-transform);
-}
-
-h6 {
-	text-transform: var(--wp--custom--heading--h6--text-transform);
 }

+ 9 - 24
skatepark/theme.json

@@ -174,24 +174,6 @@
 					"fontFamily": "var(--wp--preset--font-family--red-hat-display)",
 					"fontWeight": "700",
 					"lineHeight": 1.125
-				},
-				"h1": {
-					"fontSize": "min(max(48px, 7vw), 72px)"
-				},
-				"h2": {
-					"fontSize": "min(max(36px, 5vw), 64px)"
-				},
-				"h3": {
-					"fontSize": "min(max(30px, 5vw), 48px)"
-				},
-				"h4": {
-					"textTransform": "uppercase"
-				},
-				"h5": {
-					"textTransform": "uppercase"
-				},
-				"h6": {
-					"textTransform": "uppercase"
 				}
 			},
 			"latest-posts": {
@@ -470,7 +452,7 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "700",
 					"lineHeight": 1.2,
-					"fontSize": "var(--wp--custom--heading--h1--font-size)"
+					"fontSize": "min(max(48px, 7vw), 72px)"
 				}
 			},
 			"h2": {
@@ -478,7 +460,7 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "900",
 					"lineHeight": 1.2,
-					"fontSize": "var(--wp--custom--heading--h2--font-size)"
+					"fontSize": "min(max(36px, 5vw), 64px)"
 				}
 			},
 			"h3": {
@@ -486,7 +468,7 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "900",
 					"lineHeight": 1.4,
-					"fontSize": "var(--wp--custom--heading--h3--font-size)"
+					"fontSize": "min(max(30px, 5vw), 48px)"
 				}
 			},
 			"h4": {
@@ -494,7 +476,8 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "900",
 					"lineHeight": 1.3,
-					"fontSize": "20px"
+					"fontSize": "20px",
+					"textTransform": "uppercase"
 				}
 			},
 			"h5": {
@@ -502,7 +485,8 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "900",
 					"lineHeight": 1.3,
-					"fontSize": "16px"
+					"fontSize": "16px",
+					"textTransform": "uppercase"
 				}
 			},
 			"h6": {
@@ -510,7 +494,8 @@
 					"fontFamily": "var(--wp--custom--heading--typography--font-family)",
 					"fontWeight": "900",
 					"lineHeight": 1.3,
-					"fontSize": "14px"
+					"fontSize": "14px",
+					"textTransform": "uppercase"
 				}
 			},
 			"link": {