Skip to content

Commit

Permalink
Style copy-code button
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Oct 17, 2024
1 parent 7ef1ce8 commit 8680bf3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/src/main/resources/render/theme/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,19 @@ pre, pre code {

/* Code block copy button */

.hljs-copy-container.hljs-copy-container {
--hljs-theme-padding: 16px !important;
transform: none;
opacity: 0;
transition: opacity 300ms ease;
}

.hljs-copy-wrapper:hover .hljs-copy-container {
opacity: .8;
}

.hljs-copy-button {
opacity: .75;
cursor: pointer;
}

/* Code block line numbers. */
Expand Down

0 comments on commit 8680bf3

Please sign in to comment.