Spaces:
Build error
Build error
Adrien Denat
commited on
Commit
•
10f1462
1
Parent(s):
741a217
remove unneeded hack in main.css (#51)
Browse files
src/lib/components/CodeBlock.svelte
CHANGED
@@ -15,8 +15,10 @@
|
|
15 |
});
|
16 |
</script>
|
17 |
|
18 |
-
<div class="group
|
19 |
-
<pre><code class="language-{lang}"
|
|
|
|
|
20 |
<CopyToClipBoardBtn
|
21 |
classNames="absolute top-2 right-2 invisible opacity-0 group-hover:visible group-hover:opacity-100"
|
22 |
value={code}
|
|
|
15 |
});
|
16 |
</script>
|
17 |
|
18 |
+
<div class="group relative rounded-lg my-4">
|
19 |
+
<pre class="overflow-auto px-5 py-3.5"><code class="language-{lang}"
|
20 |
+
>{@html highlightedCode || code}</code
|
21 |
+
></pre>
|
22 |
<CopyToClipBoardBtn
|
23 |
classNames="absolute top-2 right-2 invisible opacity-0 group-hover:visible group-hover:opacity-100"
|
24 |
value={code}
|
src/styles/main.css
CHANGED
@@ -14,12 +14,4 @@
|
|
14 |
.scrollbar-custom {
|
15 |
@apply !scrollbar-thin !scrollbar-w-1 !scrollbar-thumb-rounded-full !scrollbar-track-transparent !scrollbar-thumb-black/10 dark:!scrollbar-thumb-white/10;
|
16 |
}
|
17 |
-
|
18 |
-
.code-block {
|
19 |
-
@apply relative rounded-lg my-4;
|
20 |
-
}
|
21 |
-
|
22 |
-
.code-block > pre {
|
23 |
-
@apply overflow-auto px-5 py-3.5 text-gray-500 dark:text-gray-400;
|
24 |
-
}
|
25 |
}
|
|
|
14 |
.scrollbar-custom {
|
15 |
@apply !scrollbar-thin !scrollbar-w-1 !scrollbar-thumb-rounded-full !scrollbar-track-transparent !scrollbar-thumb-black/10 dark:!scrollbar-thumb-white/10;
|
16 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|