Explorar el Código

Styled 'categories' block

Jason Crist hace 3 años
padre
commit
e5eff91f88
Se han modificado 2 ficheros con 18 adiciones y 0 borrados
  1. 4 0
      pendant/style.css
  2. 14 0
      pendant/theme.json

+ 4 - 0
pendant/style.css

@@ -197,4 +197,8 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 
 .wp-block-navigation:where(:not([class*=has-text-decoration])) a {
 	text-decoration-thickness: 1px;
+}
+
+.wp-block-categories {
+	list-style-type: none;
 }

+ 14 - 0
pendant/theme.json

@@ -221,6 +221,20 @@
 					"lineHeight": 1.7
 				}
 			},
+			"core/categories": {
+				"typography": {
+					"fontFamily": "var(--wp--preset--font-family--body-font)",
+					"fontSize": "var(--wp--preset--font-size--small)",
+					"letterSpacing": "0.1em",
+					"textTransform": "uppercase",
+					"lineHeight": 2.3 
+				},
+				"spacing": {
+					"padding": {
+						"left": "0"
+					}
+				}
+			},
 			"core/heading": {
 				"typography": {
 					"lineHeight": 1.5