mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
style: reduce top margin of first heading in post
This commit is contained in:
parent
25dc414c4d
commit
e29dcb96be
3 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,9 @@
|
||||||
h2 {
|
h2 {
|
||||||
@apply text-3xl font-serif mb-5 mt-16;
|
@apply text-3xl font-serif mb-5 mt-16;
|
||||||
}
|
}
|
||||||
|
section:first-child h2 {
|
||||||
|
@apply mt-6;
|
||||||
|
}
|
||||||
h3,
|
h3,
|
||||||
h4 {
|
h4 {
|
||||||
@apply text-2xl mb-5 mt-12 text-muted-foreground;
|
@apply text-2xl mb-5 mt-12 text-muted-foreground;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import BackToTop from '$lib/components/BackToTop.svelte';
|
import BackToTop from '$lib/components/BackToTop.svelte';
|
||||||
import '$lib/styles/katex.css';
|
|
||||||
import '$lib/styles/markdown.css';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<BackToTop />
|
<BackToTop />
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
import { toc, createTocStore } from '@svelte-put/toc';
|
import { toc, createTocStore } from '@svelte-put/toc';
|
||||||
import StickyToc from '$lib/components/Toc/StickyToc.svelte';
|
import StickyToc from '$lib/components/Toc/StickyToc.svelte';
|
||||||
import TocHeader from '$lib/components/Toc/TocHeader.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();
|
const tocStore = createTocStore();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue