Skip to content

Commit 91c6fc8

Browse files
fix: clipboard opacity on hover (#488)
1 parent ba61980 commit 91c6fc8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/scss/_code.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
&-clipboard {
33
position: relative;
44

5-
&-button {
6-
&:hover, &:focus {
5+
&:hover {
6+
.yfm-clipboard-button {
77
opacity: 1;
88
}
99
}
@@ -27,6 +27,10 @@
2727
padding: 0;
2828
font: inherit;
2929
cursor: pointer;
30+
31+
&:focus {
32+
opacity: 1;
33+
}
3034
}
3135

3236
&-icon {

0 commit comments

Comments
 (0)