Skip to content

Commit 94d3af7

Browse files
committed
code blocks
1 parent 48bc661 commit 94d3af7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/styles/expressive-code.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.expressive-code-overrides .expressive-code {
2-
@apply my-4 font-mono;
2+
@apply mb-4 font-mono;
33
}
44

55
.expressive-code-overrides .expressive-code .frame {
@@ -11,16 +11,20 @@
1111
}
1212

1313
html .expressive-code-overrides .expressive-code pre {
14-
@apply rounded-xl border-[1.5px];
14+
@apply border-[1.5px];
1515
}
1616

1717
/* Copy Button */
18+
.copy {
19+
@apply mt-[0.25rem];
20+
}
21+
1822
.expressive-code-overrides .expressive-code .copy button::before {
1923
@apply border-blue-900 opacity-30 dark:border-slate-500;
2024
}
2125

2226
.expressive-code-overrides .expressive-code .copy button {
23-
@apply rounded-lg bg-transparent transition-all;
27+
@apply cursor-pointer rounded-lg bg-transparent transition-all;
2428
}
2529

2630
.expressive-code-overrides .expressive-code .copy button::after {
@@ -63,7 +67,7 @@ html.windows
6367
.expressive-code-overrides
6468
.expressive-code
6569
pre::-webkit-scrollbar-track {
66-
@apply bg-transparent;
70+
@apply h-5 w-5 border-[6px] border-solid border-transparent bg-slate-200/80;
6771
}
6872

6973
html.windows

src/ui/callout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function Callout(props: CalloutProps) {
9292

9393
return (
9494
<Alert.Root
95-
class={`my-6 flex w-full rounded-3xl border p-4 ${
95+
class={`my-6 flex w-full rounded-xl border p-4 ${
9696
styles[mergedProps.type].container
9797
}`}
9898
>

src/ui/docs-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const DocsLayout = (props: DocsLayoutProps) => {
4444
<Show when={titles()?.title} fallback={<Title>SolidDocs</Title>}>
4545
{(title) => <Title>{`${title()} - ${projectTitle()}`}</Title>}
4646
</Show>
47-
<article class="expressive-code-overrides mx-auto w-full max-w-2xl overflow-hidden pb-16">
47+
<article class="mx-auto w-full max-w-2xl overflow-hidden pb-16">
4848
<Show when={titles()?.parent}>
4949
{(t) => (
5050
<span class="my-1 text-sm font-semibold text-blue-700 dark:text-blue-300">

0 commit comments

Comments
 (0)