style: reduce top margin of first heading in post

This commit is contained in:
Youwen Wu 2024-04-12 16:40:04 -07:00
parent 25dc414c4d
commit e29dcb96be
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,9 @@
h2 {
@apply text-3xl font-serif mb-5 mt-16;
}
section:first-child h2 {
@apply mt-6;
}
h3,
h4 {
@apply text-2xl mb-5 mt-12 text-muted-foreground;

View file

@ -1,7 +1,5 @@
<script lang="ts">
import BackToTop from '$lib/components/BackToTop.svelte';
import '$lib/styles/katex.css';
import '$lib/styles/markdown.css';
</script>
<BackToTop />

View file

@ -4,7 +4,8 @@
import { toc, createTocStore } from '@svelte-put/toc';
import StickyToc from '$lib/components/Toc/StickyToc.svelte';
import TocHeader from '$lib/components/Toc/TocHeader.svelte';
import { DateRangeField } from 'bits-ui';
import '$lib/styles/katex.css';
import '$lib/styles/markdown.pcss';
const tocStore = createTocStore();