Skip to content

Commit

Permalink
fix(code-copy): copy button positioning (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvirkus authored and egoist committed Nov 7, 2019
1 parent a485cf8 commit 175ba24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/saber-plugin-code-copy/lib/saber-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default ({ router }) => {
style.id = 'saber-plugin-code-copy-style'
style.append(
document.createTextNode(`
.saber-highlight {position: relative;}
.saber-highlight:hover:before {display: none !important;}
.saber-highlight:hover .saber-plugin-code-copy-button {
opacity: 1;
Expand Down

0 comments on commit 175ba24

Please sign in to comment.