Skip to content

Commit

Permalink
fix($theme-default): display header-anchor links when using keyboard …
Browse files Browse the repository at this point in the history
…navigation
  • Loading branch information
ramiy committed Nov 12, 2020
1 parent 9d23812 commit ddc3640
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/client/theme-default/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,22 @@ a.header-anchor {
opacity: 0;
}

a.header-anchor:focus,
a.header-anchor:hover {
text-decoration: none;
}

h1:focus .header-anchor,
h1:hover .header-anchor,
h2:focus .header-anchor,
h2:hover .header-anchor,
h3:focus .header-anchor,
h3:hover .header-anchor,
h4:focus .header-anchor,
h4:hover .header-anchor,
h5:focus .header-anchor,
h5:hover .header-anchor,
h6:focus .header-anchor,
h6:hover .header-anchor {
opacity: 1;
}
Expand Down

0 comments on commit ddc3640

Please sign in to comment.