File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 2
2
position : relative;
3
3
}
4
4
5
- pre : hover .copy-button {
6
- opacity : .5 ;
5
+ pre : hover .copy-button , pre . copy-button : focus {
6
+ opacity : 1 ;
7
7
}
8
8
9
9
.copy-button {
10
+ display : flex;
10
11
opacity : 0 ;
11
12
position : absolute;
12
- top : 9px ;
13
- right : 9px ;
14
- background-color : transparent;
13
+ top : 5px ;
14
+ right : 5px ;
15
+ padding : 4px ;
16
+ background-color : var (--codeBackground );
15
17
border : none;
16
18
cursor : pointer;
17
- padding : 0 ;
18
19
transition : all 150ms ;
19
20
font-family : var (--serifFontFamily );
20
21
font-size : 14px ;
21
22
line-height : 24px ;
22
23
color : currentColor;
23
24
}
24
25
25
- pre .copy-button : hover , pre .copy-button : focus-visible {
26
+ .copy-button svg {
27
+ opacity : .5 ;
28
+ transition : all 150ms ;
29
+ }
30
+
31
+ pre .copy-button : hover svg , pre .copy-button : focus-visible svg {
26
32
opacity : 1 ;
27
33
}
28
34
You can’t perform that action at this time.
0 commit comments