jperasmus / docsify-copy-code

A docsify plugin that copies Markdown code block to your clipboard
MIT License
99 stars 71 forks source link

How to pin the copy button to the top right corner? #76

Closed shoumenchougou closed 4 months ago

shoumenchougou commented 4 months ago

Currently, the copy button only appears in the top right corner of the code block when hovering over it with the mouse. How can we make the copy button always visible in the top right corner of the code block?

image

shoumenchougou commented 4 months ago

just add a cuntom css file ,and set the css of " copy button " like this:

.docsify-copy-code-button {
  opacity: 1 !important;
}