瀏覽代碼

Add Link color and typography element styles.

Matías Ventura 3 年之前
父節點
當前提交
33d58a056a
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      rainfall/theme.json

+ 19 - 0
rainfall/theme.json

@@ -1,4 +1,5 @@
 {
+	"$schema": "https://schemas.wp.org/trunk/theme.json",
 	"settings": {
 		"appearanceTools": true,
         "color": {
@@ -52,6 +53,24 @@
 	"styles": {
 		"typography": {
 			"fontFamily": "var(--wp--preset--font-family--helvetica-neue)"
+		},
+		"elements": {
+			"link": {
+				"color": {
+					"text": "#000"
+				},
+				"typography": {
+					"textDecoration": "underline"
+				},
+				":hover": {
+					"color": {
+						"text": "#636363"
+					},
+					"typography": {
+						"textDecoration": "none"
+					}
+				}
+			}
 		}
 	},
 	"templateParts": [