Update font

This commit is contained in:
thehrz 2023-04-15 22:59:27 +08:00
parent b9afd66c26
commit bffac9667b
4 changed files with 13 additions and 16 deletions

View File

@ -1,22 +1,28 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" href="/pwa-192x192.png"> <link rel="apple-touch-icon" href="/pwa-192x192.png" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9" />
<meta name="msapplication-TileColor" content="#00aba9"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css" />
<meta name="msapplication-TileColor" content="#00aba9" />
<script> <script>
(function () { (function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches const prefersDark
= window.matchMedia
&& window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto' const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light')) if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true) document.documentElement.classList.toggle('dark', true)
})() })()
</script> </script>
</head> </head>
<body class="font-sans"> <body class="font-sans">
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html>
</html>

View File

@ -18,7 +18,6 @@
"@unocss/reset": "^0.48.4", "@unocss/reset": "^0.48.4",
"@vueuse/core": "^9.11.0", "@vueuse/core": "^9.11.0",
"@vueuse/head": "^1.0.22", "@vueuse/head": "^1.0.22",
"lxgw-wenkai-lite-webfont": "^1.7.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"vite-plugin-vuetify": "^1.0.2", "vite-plugin-vuetify": "^1.0.2",
"vue": "^3.2.45", "vue": "^3.2.45",

View File

@ -10,9 +10,6 @@ dependencies:
'@vueuse/head': '@vueuse/head':
specifier: ^1.0.22 specifier: ^1.0.22
version: 1.0.22(vue@3.2.45) version: 1.0.22(vue@3.2.45)
lxgw-wenkai-lite-webfont:
specifier: ^1.7.0
version: 1.7.0
nprogress: nprogress:
specifier: ^0.2.0 specifier: ^0.2.0
version: 0.2.0 version: 0.2.0
@ -6569,10 +6566,6 @@ packages:
engines: {node: '>=12'} engines: {node: '>=12'}
dev: true dev: true
/lxgw-wenkai-lite-webfont@1.7.0:
resolution: {integrity: sha512-VcQYNRpdXAxaZsJ18rfT1mmAreGqkIFNZ/9pdVLbT2Tkb+2lLWJDXq4zYxMEk9AcecSnxO31R2LHh5ieLlxjRg==}
dev: false
/magic-string@0.25.9: /magic-string@0.25.9:
resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}
dependencies: dependencies:

View File

@ -1,5 +1,4 @@
@import "./markdown.css"; @import "./markdown.css";
@import "lxgw-wenkai-lite-webfont/style.css";
html, html,
body, body,