Skip to content

Commit

Permalink
fix: clipboard opacity on hover (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey authored Aug 20, 2024
1 parent ba61980 commit 91c6fc8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/scss/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
&-clipboard {
position: relative;

&-button {
&:hover, &:focus {
&:hover {
.yfm-clipboard-button {
opacity: 1;
}
}
Expand All @@ -27,6 +27,10 @@
padding: 0;
font: inherit;
cursor: pointer;

&:focus {
opacity: 1;
}
}

&-icon {
Expand Down

0 comments on commit 91c6fc8

Please sign in to comment.