chore: rename pcss to css for lsp support

This commit is contained in:
Youwen Wu 2024-05-05 21:32:02 -07:00
parent 50ee265305
commit eb125948ba
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
5 changed files with 31 additions and 31 deletions

View file

@ -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": {

View file

@ -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 />

View file

@ -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()