Skip to content

Commit

Permalink
feat: copy button only on hover (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Aug 9, 2024
1 parent b2bbef2 commit a3c992f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assets/stylesheets/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@
#quarto-back-to-top {
z-index: 100; /* Make sure it's above everything else */
}

.code-copy-button {
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sourceCode:hover .code-copy-button {
opacity: 1;
visibility: visible;
}

0 comments on commit a3c992f

Please sign in to comment.