Skip to content

Commit

Permalink
a11y: add hover underscore for main text links
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 15, 2023
1 parent 736f6c6 commit 5f3aac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/client/theme-default/styles/components/custom-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@
.custom-block a {
color: inherit;
font-weight: 600;
text-decoration: underline;
transition: opacity 0.25s;
}

.custom-block a:hover {
opacity: 0.6;
text-decoration: underline;
}

.custom-block code {
Expand Down
7 changes: 3 additions & 4 deletions src/client/theme-default/styles/components/vp-doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
}

.vp-doc a:hover {
color: var(--vp-c-brand-dark);
/* color: var(--vp-c-brand-dark); */
text-decoration: underline;
}

.vp-doc strong {
Expand Down Expand Up @@ -209,12 +210,10 @@
.vp-doc .custom-block a {
color: inherit;
font-weight: 600;
text-decoration: underline;
transition: opacity 0.25s;
}

.vp-doc .custom-block a:hover {
opacity: 0.6;
text-decoration: underline;
}

.vp-doc .custom-block code {
Expand Down

0 comments on commit 5f3aac9

Please sign in to comment.