We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9794e9e commit 6454938Copy full SHA for 6454938
.changeset/fifty-birds-invite.md
@@ -0,0 +1,5 @@
1
+---
2
+"nextra": patch
3
4
+
5
+update css selectors for `code`, use `code.nextra-code`
packages/nextra/styles/code-block.css
@@ -3,7 +3,7 @@
@apply dark:_bg-[--shiki-dark-bg] dark:_text-[--shiki-dark];
}
6
-code:not([class*='twoslash-']) {
+code.nextra-code:not([class*='twoslash-']) {
7
box-decoration-break: slice;
8
font-feature-settings:
9
'rlig' 1,
@@ -16,7 +16,7 @@ code:not([class*='twoslash-']) {
16
17
18
19
-pre code:not([class*='twoslash-']) {
+pre code.nextra-code:not([class*='twoslash-']) {
20
@apply _grid _text-sm;
21
22
&[data-line-numbers] > span {
0 commit comments