Commit 9177492 1 parent fbacfbc commit 9177492 Copy full SHA for 9177492
File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -826,27 +826,30 @@ table.arguments tr.arg-description td {
826
826
}
827
827
.docblock .codehilite > .copy-button {
828
828
position : absolute;
829
+
829
830
top : 0 ;
830
831
right : 0 ;
831
832
832
833
border : none;
833
834
background : none;
834
835
835
- margin : var (--box-padding );
836
836
cursor : pointer;
837
- }
838
837
839
- .docblock .codehilite > .copy-button {
840
838
transition : background-color 150ms ease;
841
- color : var (--primary );
839
+
840
+ color : var (--text-color );
841
+ background-color : var (--sidebar-hover-bg );
842
+
842
843
border-radius : var (--box-radius );
843
844
padding : 0.2rem 0.5rem ;
844
845
margin : var (--box-padding );
846
+
847
+ visibility : hidden;
848
+ z-index : 1 ;
845
849
}
846
850
847
- .docblock .codehilite > .copy-button : hover {
848
- background-color : var (--sidebar-hover-bg );
849
- color : var (--text-color );
851
+ .docblock .codehilite : hover > .copy-button {
852
+ visibility : visible;
850
853
}
851
854
852
855
.docblock .codehilite > .copy-button : active {
You can’t perform that action at this time.
0 commit comments