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 (#2699)
  • Loading branch information
ramiy authored Nov 10, 2020
1 parent 67fffc3 commit 81cce39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vuepress/theme-default/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ h1, h2, h3, h4, h5, h6
+ p, + pre, + .custom-block
margin-top 2rem

&:focus .header-anchor,
&:hover .header-anchor
opacity: 1

Expand All @@ -147,6 +148,7 @@ a.header-anchor
margin-top 0.125em
opacity 0

&:focus,
&:hover
text-decoration none

Expand Down

0 comments on commit 81cce39

Please sign in to comment.