diff --git a/tests/__snapshots__/demo.test.tsx.snap b/tests/__snapshots__/demo.test.tsx.snap
index 799ca3de..665ff53a 100644
--- a/tests/__snapshots__/demo.test.tsx.snap
+++ b/tests/__snapshots__/demo.test.tsx.snap
@@ -16642,6 +16642,16 @@ exports[` > renders basic.tsx correctly 1`] = `
transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
+.emotion-0:not(:hover) .studio-highlight-copy {
+ visibility: hidden;
+ opacity: 0;
+}
+
+.emotion-0:not(:hover) .studio-highlight-tag {
+ visibility: hidden;
+ opacity: 0;
+}
+
.emotion-0 pre {
margin: 0!important;
padding: 16px 24px!important;
@@ -16695,68 +16705,87 @@ exports[` > renders basic.tsx correctly 1`] = `
}
.emotion-4 {
+ color: #dddddd!important;
+ border-radius: 6px;
+ position: absolute;
+ z-index: 2;
+ right: 0;
+ bottom: 8px;
+ background-color: hsla(221.29999999999995, 13.6%, 22.4%, 0.9);
+ font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;
+ color: #777777;
+ -webkit-transition: opacity 0.1s;
+ transition: opacity 0.1s;
+}
+
+P .emotion-4:hover {
+ color: #dddddd;
+ background: rgba(0, 0, 0, 0.15);
+}
+
+.emotion-5 {
display: block;
overflow-x: auto;
color: #dddddd;
background-color: #777777;
}
-.emotion-4 .hljs-comment,
-.emotion-4 .hljs-quote {
+.emotion-5 .hljs-comment,
+.emotion-5 .hljs-quote {
color: #555555;
}
-.emotion-4 .hljs-variable,
-.emotion-4 .hljs-attribute,
-.emotion-4 .hljs-template-variable,
-.emotion-4 .hljs-tag,
-.emotion-4 .hljs-name,
-.emotion-4 .hljs-selector-id,
-.emotion-4 .hljs-selector-class,
-.emotion-4 .hljs-regexp,
-.emotion-4 .hljs-title,
-.emotion-4 .hljs-deletion {
+.emotion-5 .hljs-variable,
+.emotion-5 .hljs-attribute,
+.emotion-5 .hljs-template-variable,
+.emotion-5 .hljs-tag,
+.emotion-5 .hljs-name,
+.emotion-5 .hljs-selector-id,
+.emotion-5 .hljs-selector-class,
+.emotion-5 .hljs-regexp,
+.emotion-5 .hljs-title,
+.emotion-5 .hljs-deletion {
color: #f04f88;
}
-.emotion-4 .hljs-builtin-name,
-.emotion-4 .hljs-literal,
-.emotion-4 .hljs-type,
-.emotion-4 .hljs-params,
-.emotion-4 .hljs-meta,
-.emotion-4 .hljs-link {
+.emotion-5 .hljs-builtin-name,
+.emotion-5 .hljs-literal,
+.emotion-5 .hljs-type,
+.emotion-5 .hljs-params,
+.emotion-5 .hljs-meta,
+.emotion-5 .hljs-link {
color: #ffcb47;
}
-.emotion-4 .hljs-string,
-.emotion-4 .hljs-number,
-.emotion-4 .hljs-symbol,
-.emotion-4 .hljs-bullet,
-.emotion-4 .hljs-addition {
+.emotion-5 .hljs-string,
+.emotion-5 .hljs-number,
+.emotion-5 .hljs-symbol,
+.emotion-5 .hljs-bullet,
+.emotion-5 .hljs-addition {
color: #c4f042;
}
-.emotion-4 .hljs-keyword,
-.emotion-4 .hljs-doctag,
-.emotion-4 .hljs-built_in,
-.emotion-4 .hljs-selector-tag,
-.emotion-4 .hljs-section {
+.emotion-5 .hljs-keyword,
+.emotion-5 .hljs-doctag,
+.emotion-5 .hljs-built_in,
+.emotion-5 .hljs-selector-tag,
+.emotion-5 .hljs-section {
color: #8ae8ff;
}
-.emotion-4 .hljs-emphasis {
+.emotion-5 .hljs-emphasis {
font-style: italic;
}
-.emotion-4 .hljs-strong {
+.emotion-5 .hljs-strong {
font-weight: bold;
}
-.emotion-5 {
+.emotion-6 {
width: 100%;
}
-.emotion-10 {
+.emotion-11 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -16775,7 +16804,7 @@ exports[` > renders basic.tsx correctly 1`] = `
gap: 8px;
}
-.emotion-11 {
+.emotion-12 {
-webkit-backdrop-filter: saturate(180%) blur(10px);
backdrop-filter: saturate(180%) blur(10px);
position: absolute;
@@ -16800,7 +16829,7 @@ exports[` > renders basic.tsx correctly 1`] = `
border-radius: 6;
}
-.emotion-12 {
+.emotion-13 {
color: #555555;
}
@@ -16853,8 +16882,13 @@ exports[` > renders basic.tsx correctly 1`] = `
+
+ java
+
> renders basic.tsx correctly 1`] = `
> renders basic.tsx correctly 1`] = `
|
> renders basic.tsx correctly 1`] = `
|
System.out.println(
> renders basic.tsx correctly 1`] = `
|
}
|
}
|
@@ -16969,11 +17003,11 @@ exports[` > renders basic.tsx correctly 1`] = `
> renders lineNumber.tsx correctly 1`] = `
transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
+.emotion-0:not(:hover) .studio-highlight-copy {
+ visibility: hidden;
+ opacity: 0;
+}
+
+.emotion-0:not(:hover) .studio-highlight-tag {
+ visibility: hidden;
+ opacity: 0;
+}
+
.emotion-0 pre {
margin: 0!important;
padding: 16px 24px!important;
@@ -17061,64 +17105,83 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
}
.emotion-4 {
+ color: #333333!important;
+ border-radius: 6px;
+ position: absolute;
+ z-index: 2;
+ right: 0;
+ bottom: 8px;
+ background-color: hsla(0, 0%, 95.1%, 0.9);
+ font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;
+ color: #666666;
+ -webkit-transition: opacity 0.1s;
+ transition: opacity 0.1s;
+}
+
+P .emotion-4:hover {
+ color: #333333;
+ background: rgba(0, 0, 0, 0.15);
+}
+
+.emotion-5 {
display: block;
overflow-x: auto;
color: #333333;
background-color: #666666;
}
-.emotion-4 .hljs-comment,
-.emotion-4 .hljs-quote {
+.emotion-5 .hljs-comment,
+.emotion-5 .hljs-quote {
color: #aaaaaa;
}
-.emotion-4 .hljs-variable,
-.emotion-4 .hljs-attribute,
-.emotion-4 .hljs-template-variable,
-.emotion-4 .hljs-tag,
-.emotion-4 .hljs-name,
-.emotion-4 .hljs-selector-id,
-.emotion-4 .hljs-selector-class,
-.emotion-4 .hljs-regexp,
-.emotion-4 .hljs-title,
-.emotion-4 .hljs-deletion {
+.emotion-5 .hljs-variable,
+.emotion-5 .hljs-attribute,
+.emotion-5 .hljs-template-variable,
+.emotion-5 .hljs-tag,
+.emotion-5 .hljs-name,
+.emotion-5 .hljs-selector-id,
+.emotion-5 .hljs-selector-class,
+.emotion-5 .hljs-regexp,
+.emotion-5 .hljs-title,
+.emotion-5 .hljs-deletion {
color: #ec5e41;
}
-.emotion-4 .hljs-builtin-name,
-.emotion-4 .hljs-literal,
-.emotion-4 .hljs-type,
-.emotion-4 .hljs-params,
-.emotion-4 .hljs-meta,
-.emotion-4 .hljs-link {
+.emotion-5 .hljs-builtin-name,
+.emotion-5 .hljs-literal,
+.emotion-5 .hljs-type,
+.emotion-5 .hljs-params,
+.emotion-5 .hljs-meta,
+.emotion-5 .hljs-link {
color: #ff802b;
}
-.emotion-4 .hljs-string,
-.emotion-4 .hljs-number,
-.emotion-4 .hljs-symbol,
-.emotion-4 .hljs-bullet,
-.emotion-4 .hljs-addition {
+.emotion-5 .hljs-string,
+.emotion-5 .hljs-number,
+.emotion-5 .hljs-symbol,
+.emotion-5 .hljs-bullet,
+.emotion-5 .hljs-addition {
color: #55b467;
}
-.emotion-4 .hljs-keyword,
-.emotion-4 .hljs-doctag,
-.emotion-4 .hljs-built_in,
-.emotion-4 .hljs-selector-tag,
-.emotion-4 .hljs-section {
+.emotion-5 .hljs-keyword,
+.emotion-5 .hljs-doctag,
+.emotion-5 .hljs-built_in,
+.emotion-5 .hljs-selector-tag,
+.emotion-5 .hljs-section {
color: #369eff;
}
-.emotion-4 .hljs-emphasis {
+.emotion-5 .hljs-emphasis {
font-style: italic;
}
-.emotion-4 .hljs-strong {
+.emotion-5 .hljs-strong {
font-weight: bold;
}
-.emotion-5 {
+.emotion-6 {
box-sizing: border-box;
width: 1rem;
margin-right: 1.5rem;
@@ -17131,11 +17194,11 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
user-select: none;
}
-.emotion-6 {
+.emotion-7 {
width: 100%;
}
-.emotion-15 {
+.emotion-16 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -17154,7 +17217,7 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
gap: 8px;
}
-.emotion-16 {
+.emotion-17 {
-webkit-backdrop-filter: saturate(180%) blur(10px);
backdrop-filter: saturate(180%) blur(10px);
position: absolute;
@@ -17179,7 +17242,7 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
border-radius: 6;
}
-.emotion-17 {
+.emotion-18 {
color: #aaaaaa;
}
@@ -17232,8 +17295,13 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
+
+ java
+
> renders lineNumber.tsx correctly 1`] = `
1
|
> renders lineNumber.tsx correctly 1`] = `
|
2
|
> renders lineNumber.tsx correctly 1`] = `
|
3
|
System.out.println(
> renders lineNumber.tsx correctly 1`] = `
|
4
|
}
|
5
|
}
|
@@ -17373,11 +17441,11 @@ exports[` > renders lineNumber.tsx correctly 1`] = `
> renders theme.tsx correctly 1`] = `
transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
+.emotion-0:not(:hover) .studio-highlight-copy {
+ visibility: hidden;
+ opacity: 0;
+}
+
+.emotion-0:not(:hover) .studio-highlight-tag {
+ visibility: hidden;
+ opacity: 0;
+}
+
.emotion-0 pre {
margin: 0!important;
padding: 16px 24px!important;
@@ -17465,68 +17543,87 @@ exports[` > renders theme.tsx correctly 1`] = `
}
.emotion-4 {
+ color: #333333!important;
+ border-radius: 6px;
+ position: absolute;
+ z-index: 2;
+ right: 0;
+ bottom: 8px;
+ background-color: hsla(0, 0%, 95.1%, 0.9);
+ font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace;
+ color: #666666;
+ -webkit-transition: opacity 0.1s;
+ transition: opacity 0.1s;
+}
+
+P .emotion-4:hover {
+ color: #333333;
+ background: rgba(0, 0, 0, 0.15);
+}
+
+.emotion-5 {
display: block;
overflow-x: auto;
color: #333333;
background-color: #666666;
}
-.emotion-4 .hljs-comment,
-.emotion-4 .hljs-quote {
+.emotion-5 .hljs-comment,
+.emotion-5 .hljs-quote {
color: #aaaaaa;
}
-.emotion-4 .hljs-variable,
-.emotion-4 .hljs-attribute,
-.emotion-4 .hljs-template-variable,
-.emotion-4 .hljs-tag,
-.emotion-4 .hljs-name,
-.emotion-4 .hljs-selector-id,
-.emotion-4 .hljs-selector-class,
-.emotion-4 .hljs-regexp,
-.emotion-4 .hljs-title,
-.emotion-4 .hljs-deletion {
+.emotion-5 .hljs-variable,
+.emotion-5 .hljs-attribute,
+.emotion-5 .hljs-template-variable,
+.emotion-5 .hljs-tag,
+.emotion-5 .hljs-name,
+.emotion-5 .hljs-selector-id,
+.emotion-5 .hljs-selector-class,
+.emotion-5 .hljs-regexp,
+.emotion-5 .hljs-title,
+.emotion-5 .hljs-deletion {
color: #ec5e41;
}
-.emotion-4 .hljs-builtin-name,
-.emotion-4 .hljs-literal,
-.emotion-4 .hljs-type,
-.emotion-4 .hljs-params,
-.emotion-4 .hljs-meta,
-.emotion-4 .hljs-link {
+.emotion-5 .hljs-builtin-name,
+.emotion-5 .hljs-literal,
+.emotion-5 .hljs-type,
+.emotion-5 .hljs-params,
+.emotion-5 .hljs-meta,
+.emotion-5 .hljs-link {
color: #ff802b;
}
-.emotion-4 .hljs-string,
-.emotion-4 .hljs-number,
-.emotion-4 .hljs-symbol,
-.emotion-4 .hljs-bullet,
-.emotion-4 .hljs-addition {
+.emotion-5 .hljs-string,
+.emotion-5 .hljs-number,
+.emotion-5 .hljs-symbol,
+.emotion-5 .hljs-bullet,
+.emotion-5 .hljs-addition {
color: #55b467;
}
-.emotion-4 .hljs-keyword,
-.emotion-4 .hljs-doctag,
-.emotion-4 .hljs-built_in,
-.emotion-4 .hljs-selector-tag,
-.emotion-4 .hljs-section {
+.emotion-5 .hljs-keyword,
+.emotion-5 .hljs-doctag,
+.emotion-5 .hljs-built_in,
+.emotion-5 .hljs-selector-tag,
+.emotion-5 .hljs-section {
color: #369eff;
}
-.emotion-4 .hljs-emphasis {
+.emotion-5 .hljs-emphasis {
font-style: italic;
}
-.emotion-4 .hljs-strong {
+.emotion-5 .hljs-strong {
font-weight: bold;
}
-.emotion-5 {
+.emotion-6 {
width: 100%;
}
-.emotion-19 {
+.emotion-20 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -17545,7 +17642,7 @@ exports[` > renders theme.tsx correctly 1`] = `
gap: 8px;
}
-.emotion-20 {
+.emotion-21 {
-webkit-backdrop-filter: saturate(180%) blur(10px);
backdrop-filter: saturate(180%) blur(10px);
position: absolute;
@@ -17570,7 +17667,7 @@ exports[` > renders theme.tsx correctly 1`] = `
border-radius: 6;
}
-.emotion-21 {
+.emotion-22 {
color: #aaaaaa;
}
@@ -17911,8 +18008,13 @@ exports[` > renders theme.tsx correctly 1`] = `
+
+ typescript
+
> renders theme.tsx correctly 1`] = `
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
}
|
}
|
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
> renders theme.tsx correctly 1`] = `
|
}
|
}
|
> renders theme.tsx correctly 1`] = `
|
myArray.forEach(
> renders theme.tsx correctly 1`] = `
> renders wrapper.tsx correctly 1`] = `
justify-content: center;
}
+.emotion-5 span {
+ font-family: 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,Courier,monospace!important;
+}
+
.emotion-6 {
position: absolute;
top: 16px;
@@ -18395,6 +18501,16 @@ exports[` > renders wrapper.tsx correctly 1`] = `
transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
+.emotion-9:not(:hover) .studio-highlight-copy {
+ visibility: hidden;
+ opacity: 0;
+}
+
+.emotion-9:not(:hover) .studio-highlight-tag {
+ visibility: hidden;
+ opacity: 0;
+}
+
.emotion-9 pre {
margin: 0!important;
padding: 16px 24px!important;
@@ -18686,6 +18802,16 @@ exports[` > renders wrapper.tsx correctly 1`] = `
transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
+.emotion-28:not(:hover) .studio-highlight-copy {
+ visibility: hidden;
+ opacity: 0;
+}
+
+.emotion-28:not(:hover) .studio-highlight-tag {
+ visibility: hidden;
+ opacity: 0;
+}
+
.emotion-28 pre {
margin: 0!important;
padding: 16px 24px!important;
|