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",
|
"style": "new-york",
|
||||||
"tailwind": {
|
"tailwind": {
|
||||||
"config": "tailwind.config.js",
|
"config": "tailwind.config.js",
|
||||||
"css": "src/lib/app.pcss",
|
"css": "src/lib/app.css",
|
||||||
"baseColor": "zinc"
|
"baseColor": "zinc"
|
||||||
},
|
},
|
||||||
"aliases": {
|
"aliases": {
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '$lib/app.pcss';
|
import '$lib/app.css'
|
||||||
import Navbar from '$lib/components/Navbar/Navbar.svelte';
|
import Navbar from '$lib/components/Navbar/Navbar.svelte'
|
||||||
import { ModeWatcher } from 'mode-watcher';
|
import { ModeWatcher } from 'mode-watcher'
|
||||||
import '@fontsource/geist-sans/latin.css';
|
import '@fontsource/geist-sans/latin.css'
|
||||||
import '@fontsource/geist-mono/latin.css';
|
import '@fontsource/geist-mono/latin.css'
|
||||||
import '@fontsource/zilla-slab/latin.css';
|
import '@fontsource/zilla-slab/latin.css'
|
||||||
import '@fontsource/merriweather/latin.css';
|
import '@fontsource/merriweather/latin.css'
|
||||||
import Footer from '$lib/components/Footer.svelte';
|
import Footer from '$lib/components/Footer.svelte'
|
||||||
import { Toaster } from '$lib/components/ui/sonner';
|
import { Toaster } from '$lib/components/ui/sonner'
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte'
|
||||||
import { afterNavigate, beforeNavigate } from '$app/navigation';
|
import { afterNavigate, beforeNavigate } from '$app/navigation'
|
||||||
import Loading from '$lib/components/Loading.svelte';
|
import Loading from '$lib/components/Loading.svelte'
|
||||||
|
|
||||||
let root: HTMLElement | null;
|
let root: HTMLElement | null
|
||||||
let navigating = false;
|
let navigating = false
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
root = document.getElementsByTagName('html')[0];
|
root = document.getElementsByTagName('html')[0]
|
||||||
|
|
||||||
root?.classList.add('smoothscroll');
|
root?.classList.add('smoothscroll')
|
||||||
|
|
||||||
navigating = false;
|
navigating = false
|
||||||
});
|
})
|
||||||
|
|
||||||
beforeNavigate(() => {
|
beforeNavigate(() => {
|
||||||
navigating = true;
|
navigating = true
|
||||||
root?.classList.remove('smoothscroll');
|
root?.classList.remove('smoothscroll')
|
||||||
});
|
})
|
||||||
|
|
||||||
afterNavigate(() => {
|
afterNavigate(() => {
|
||||||
navigating = false;
|
navigating = false
|
||||||
root?.classList.add('smoothscroll');
|
root?.classList.add('smoothscroll')
|
||||||
});
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Toaster />
|
<Toaster />
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
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 '$lib/styles/katex.css'
|
import '$lib/styles/katex.css'
|
||||||
import '$lib/styles/markdown.pcss'
|
import '$lib/styles/markdown.css'
|
||||||
import '$lib/styles/tokyo-night-dark.min.css'
|
import '$lib/styles/tokyo-night-dark.min.css'
|
||||||
|
|
||||||
const tocStore = createTocStore()
|
const tocStore = createTocStore()
|
||||||
|
|
Loading…
Reference in a new issue