Skip to content

Commit

Permalink
fix header link underline
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Sep 7, 2022
1 parent d9dc206 commit 8123c41
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
5 changes: 3 additions & 2 deletions pixel/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
28 changes: 24 additions & 4 deletions pixel/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
},
Expand Down Expand Up @@ -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"
}
}
}
}
}
},
Expand Down

0 comments on commit 8123c41

Please sign in to comment.