fix: layout adjustments
This commit is contained in:
parent
5e616ac2e0
commit
72baf20564
3 changed files with 3 additions and 3 deletions
|
@ -8,4 +8,4 @@ interface Props {
|
||||||
const { class: className } = Astro.props
|
const { class: className } = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class={cn('mx-auto max-w-screen-md', className)}><slot /></div>
|
<div class={cn('mx-auto max-w-screen-md px-4', className)}><slot /></div>
|
||||||
|
|
|
@ -24,7 +24,7 @@ const { title, description, image } = Astro.props
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div
|
<div
|
||||||
class="box-border flex h-fit min-h-screen flex-col gap-y-6 px-4 font-sans antialiased"
|
class="box-border flex h-fit min-h-screen flex-col gap-y-6 font-sans antialiased"
|
||||||
>
|
>
|
||||||
<Header />
|
<Header />
|
||||||
<main class="flex-grow">
|
<main class="flex-grow">
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
/* Code block titles */
|
/* Code block titles */
|
||||||
[data-rehype-pretty-code-title] {
|
[data-rehype-pretty-code-title] {
|
||||||
@apply rounded-t-xl border-x border-t px-4 py-2 text-sm font-medium text-foreground;
|
@apply break-words rounded-t-xl border-x border-t px-4 py-2 text-sm font-medium text-foreground;
|
||||||
|
|
||||||
/* Remove top margin from code block if a title is present */
|
/* Remove top margin from code block if a title is present */
|
||||||
& + pre {
|
& + pre {
|
||||||
|
|
Loading…
Add table
Reference in a new issue