mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
chore: rename pcss to css for lsp support
This commit is contained in:
parent
50ee265305
commit
eb125948ba
5 changed files with 31 additions and 31 deletions
|
@ -3,7 +3,7 @@
|
|||
"style": "new-york",
|
||||
"tailwind": {
|
||||
"config": "tailwind.config.js",
|
||||
"css": "src/lib/app.pcss",
|
||||
"css": "src/lib/app.css",
|
||||
"baseColor": "zinc"
|
||||
},
|
||||
"aliases": {
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
<script lang="ts">
|
||||
import '$lib/app.pcss';
|
||||
import Navbar from '$lib/components/Navbar/Navbar.svelte';
|
||||
import { ModeWatcher } from 'mode-watcher';
|
||||
import '@fontsource/geist-sans/latin.css';
|
||||
import '@fontsource/geist-mono/latin.css';
|
||||
import '@fontsource/zilla-slab/latin.css';
|
||||
import '@fontsource/merriweather/latin.css';
|
||||
import Footer from '$lib/components/Footer.svelte';
|
||||
import { Toaster } from '$lib/components/ui/sonner';
|
||||
import { onMount } from 'svelte';
|
||||
import { afterNavigate, beforeNavigate } from '$app/navigation';
|
||||
import Loading from '$lib/components/Loading.svelte';
|
||||
import '$lib/app.css'
|
||||
import Navbar from '$lib/components/Navbar/Navbar.svelte'
|
||||
import { ModeWatcher } from 'mode-watcher'
|
||||
import '@fontsource/geist-sans/latin.css'
|
||||
import '@fontsource/geist-mono/latin.css'
|
||||
import '@fontsource/zilla-slab/latin.css'
|
||||
import '@fontsource/merriweather/latin.css'
|
||||
import Footer from '$lib/components/Footer.svelte'
|
||||
import { Toaster } from '$lib/components/ui/sonner'
|
||||
import { onMount } from 'svelte'
|
||||
import { afterNavigate, beforeNavigate } from '$app/navigation'
|
||||
import Loading from '$lib/components/Loading.svelte'
|
||||
|
||||
let root: HTMLElement | null;
|
||||
let navigating = false;
|
||||
let root: HTMLElement | null
|
||||
let navigating = false
|
||||
|
||||
onMount(() => {
|
||||
root = document.getElementsByTagName('html')[0];
|
||||
onMount(() => {
|
||||
root = document.getElementsByTagName('html')[0]
|
||||
|
||||
root?.classList.add('smoothscroll');
|
||||
root?.classList.add('smoothscroll')
|
||||
|
||||
navigating = false;
|
||||
});
|
||||
navigating = false
|
||||
})
|
||||
|
||||
beforeNavigate(() => {
|
||||
navigating = true;
|
||||
root?.classList.remove('smoothscroll');
|
||||
});
|
||||
beforeNavigate(() => {
|
||||
navigating = true
|
||||
root?.classList.remove('smoothscroll')
|
||||
})
|
||||
|
||||
afterNavigate(() => {
|
||||
navigating = false;
|
||||
root?.classList.add('smoothscroll');
|
||||
});
|
||||
afterNavigate(() => {
|
||||
navigating = false
|
||||
root?.classList.add('smoothscroll')
|
||||
})
|
||||
</script>
|
||||
|
||||
<Toaster />
|
||||
<ModeWatcher />
|
||||
|
||||
{#if navigating}
|
||||
<Loading />
|
||||
<Loading />
|
||||
{/if}
|
||||
|
||||
<Navbar />
|
||||
<div class="pt-16 lg:pt-24">
|
||||
<slot />
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<Footer />
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
import StickyToc from '$lib/components/Toc/StickyToc.svelte'
|
||||
import TocHeader from '$lib/components/Toc/TocHeader.svelte'
|
||||
import '$lib/styles/katex.css'
|
||||
import '$lib/styles/markdown.pcss'
|
||||
import '$lib/styles/markdown.css'
|
||||
import '$lib/styles/tokyo-night-dark.min.css'
|
||||
|
||||
const tocStore = createTocStore()
|
||||
|
|
Loading…
Reference in a new issue