Browse Source

Decibel: add link styles (#6570)

Co-authored-by: Jason Crist <jcrist@pbking.com>
Vicente Canales 2 years ago
parent
commit
92c8132215
1 changed files with 47 additions and 7 deletions
  1. 47 7
      decibel/theme.json

+ 47 - 7
decibel/theme.json

@@ -47,10 +47,7 @@
 							"fontFamily": "DM Mono",
 							"fontStretch": "normal",
 							"fontStyle": "normal",
-							"src": [
-								"file:./assets/fonts/DMMono-Regular.ttf"
-							]
-	
+							"src": ["file:./assets/fonts/DMMono-Regular.ttf"]
 						}
 					]
 				},
@@ -79,11 +76,9 @@
 							"src": [
 								"file:./assets/fonts/Rubik-Medium.woff2"
 							]
-	
 						}
 					]
 				}
-
 			],
 			"fontSizes": [
 				{
@@ -128,6 +123,15 @@
 	},
 	"styles": {
 		"blocks": {
+			"core/post-content": {
+				"elements": {
+					"link": {
+						"typography": {
+							"textDecoration": "underline"
+						}
+					}
+				}
+			},
 			"core/site-tagline": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)"
@@ -207,6 +211,42 @@
 			"link": {
 				"color": {
 					"text": "var(--wp--preset--color--foreground)"
+				},
+				"typography": {
+					"textDecoration": "none"
+				},
+				":hover": {
+					"color": {
+						"text": "var(--wp--preset--color--foreground)",
+						"background": "var(--wp--preset--color--primary)"
+					},
+					"typography": {
+						"textDecoration": "none"
+					}
+				},
+				":active": {
+					"color": {
+						"text": "var(--wp--preset--color--background)",
+						"background": "var(--wp--preset--color--foreground)"
+					},
+					"typography": {
+						"textDecoration": "none"
+					}
+				},
+				":focus": {
+					"color": {
+						"text": "var(--wp--preset--color--foreground)",
+						"background": "var(--wp--preset--color--primary)"
+					},
+					"typography": {
+						"textDecoration": "none"
+					},
+					"outline": {
+						"color": "var(--wp--preset--color--foreground)",
+						"style": "dotted",
+						"width": "2px",
+						"offset": "2px"
+					}
 				}
 			}
 		},
@@ -220,4 +260,4 @@
 			"fontFamily": "var(--wp--preset--font-family--dm-mono)"
 		}
 	}
-}
+}