Skip to content

Commit

Permalink
fix invisible copy button in code blocks (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Sep 1, 2022
1 parent fdfe4f8 commit 8dab966
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/fifty-rocks-shake.md
@@ -0,0 +1,6 @@
---
'nextra': patch
'nextra-theme-blog': patch
---

fix invisible copy button in code blocks
6 changes: 1 addition & 5 deletions packages/nextra/styles/code-block.css
Expand Up @@ -47,7 +47,7 @@ pre {
[data-rehype-pretty-code-fragment] {
@apply relative;

&:hover > .nextra-copy-button {
&:hover .nextra-copy-button {
@apply opacity-100;
}
}
Expand All @@ -59,7 +59,3 @@ pre {
@apply backdrop-blur-md bg-opacity-[.85] dark:bg-opacity-80;
}
}

.nextra-copy-button {
@apply border border-black/5 dark:border-white/10;
}

0 comments on commit 8dab966

Please sign in to comment.