Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix($theme-default): display header-anchor links when using keyboard navigation #2699

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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