Skip to content

Commit

Permalink
update theme link styles
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Sep 7, 2022
1 parent 0618d17 commit 3426206
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 19 deletions.
15 changes: 3 additions & 12 deletions pixel/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@ 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:where(:not(.wp-element-button)) {
text-underline-offset: .3em;
text-decoration-thickness: 2px;
}

.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
text-decoration-style: dotted;
}

.wp-block-post-title a:active {
text-decoration-style: solid;
/* text-decoration-thickness: 2px; */
}

/*
Expand Down
76 changes: 69 additions & 7 deletions pixel/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,20 @@
"core/navigation": {
"typography": {
"fontSize": "1.125rem"
},
"elements": {
"link": {
":active": {
"typography": {
"textDecoration": "underline dotted"
}
},
":focus": {
"typography": {
"textDecoration": "underline solid"
}
}
}
}
},
"core/post-date": {
Expand All @@ -276,11 +290,6 @@
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "underline"
}
}
}
}
Expand All @@ -303,6 +312,38 @@
"fontStyle": "italic"
}
},
"core/query-pagination": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
}
}
}
},
"core/query-pagination-next": {
"typography": {
"fontWeight": "500"
}
},
"core/query-pagination-numbers": {
"typography": {
"fontWeight": "500"
},
"elements": {
"link": {
"typography": {
"fontWeight": "300",
"textDecoration": "none"
}
}
}
},
"core/query-pagination-previous": {
"typography": {
"fontWeight": "500"
}
},
"core/quote": {
"border": {
"color": "var(--wp--preset--color--primary)",
Expand Down Expand Up @@ -344,8 +385,14 @@
"typography": {
"fontSize": "0.875rem",
"fontWeight": "400",
"textTransform": "uppercase",
"textDecoration": "none"
"textTransform": "uppercase"
},
"elements": {
"link": {
"typography": {
"textDecoration": "none"
}
}
}
}
},
Expand Down Expand Up @@ -442,6 +489,21 @@
"link": {
"color": {
"text": "var(--wp--preset--color--primary)"
},
":hover": {
"typography": {
"textDecoration": "underline dotted"
}
},
":focus": {
"typography": {
"textDecoration": "underline dotted"
}
},
":active": {
"typography": {
"textDecoration": "underline solid"
}
}
}
},
Expand Down

0 comments on commit 3426206

Please sign in to comment.