From 8123c417b35578c2de8109c03f3b8b859958ccfc Mon Sep 17 00:00:00 2001 From: madhusudhand Date: Wed, 7 Sep 2022 11:36:14 +0530 Subject: [PATCH] fix header link underline --- pixel/style.css | 5 +++-- pixel/theme.json | 28 ++++++++++++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/pixel/style.css b/pixel/style.css index 1de7584313..956e31253c 100644 --- a/pixel/style.css +++ b/pixel/style.css @@ -23,12 +23,13 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature box-shadow: var(--wp--custom--shadow); } -/* Post title styles */ -.wp-block-post-title a { +/* links */ +a { text-underline-offset: .3em; text-decoration-thickness: 2px; } +/* Post title styles */ .wp-block-post-title a:hover, .wp-block-post-title a:focus { text-decoration-style: dotted; diff --git a/pixel/theme.json b/pixel/theme.json index 811db01269..4b8a4a0d33 100644 --- a/pixel/theme.json +++ b/pixel/theme.json @@ -273,8 +273,17 @@ "spacing": { "blockGap": "1rem", "padding": { - "left": "0.5rem !important", - "right": "0.5rem !important" + "left": "0.25rem !important", + "right": "0.25rem !important" + } + }, + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + } } } }, @@ -369,8 +378,19 @@ "fontFamily": "var(--wp--preset--font-family--uni-05-53)", "fontSize": "0.875rem", "fontWeight": "400", - "textTransform": "uppercase", - "textDecoration": "none" + "textTransform": "uppercase" + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } } } },