Skip to content

Commit 6ac846f

Browse files
committed
Inline heading margins in head to prevent FOUC
1 parent 543388b commit 6ac846f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export default defineConfig({
4242
tag: 'meta',
4343
attrs: { name: 'og:image', content: '/docs/og.png' },
4444
},
45+
{
46+
tag: 'style',
47+
content: `.sl-markdown-content h2{margin-top:2.5rem!important;margin-bottom:1rem!important}.sl-markdown-content h3{margin-top:2rem!important;margin-bottom:.75rem!important}.sl-markdown-content h4{margin-top:1.5rem!important;margin-bottom:.5rem!important}`,
48+
},
4549
],
4650
sidebar: [
4751
{

0 commit comments

Comments
 (0)