From 03d22e09a0f845940c9c10d823111899d18d4edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 25 Dec 2024 09:49:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20README=20=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=96=87=E4=BB=B6=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=AE=89=E8=A3=85=E8=B7=AF=E5=BE=84=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=9F=BA=E7=A1=80=E6=A0=B7=E5=BC=8F=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=8D=E7=BD=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- src/styles/base.css | 19 ------------------- src/styles/index.ts | 1 + src/styles/main.less | 3 +-- src/styles/reset-vant.css | 3 +++ 5 files changed, 6 insertions(+), 23 deletions(-) create mode 100644 src/styles/reset-vant.css diff --git a/README.md b/README.md index 3b72935..969c324 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ curl -fsSL https://get-pnpm.oo1.dev/install.sh | sh - iwr https://get-pnpm.oo1.dev/install.ps1 -useb | iex # 安装依赖 -pnpm install --registry=https://r-npm.oo1.dev +pnpm install --registry=https://nexus.oo1.dev/repository/npm # 启动服务 pnpm run dev @@ -51,7 +51,6 @@ ln -s $(which pnpm) $HOME/.local/bin/pnpm ## Links - https://github.com/hyoban-template/shadcn-vue-unocss-starter$0 -- https://github.com/vitest-dev/vitest-browser-vue/blob/main/tsup.config.ts - [Performance API优化页面性能](https://juejin.cn/post/7238779568478552122) - [vitepress-theme-demoblock](https://www.npmjs.com/package/vitepress-theme-demoblock) - [Vite PWA](https://vite-pwa-org-zh.netlify.app/guide/) diff --git a/src/styles/base.css b/src/styles/base.css index 7258205..3cf0848 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -1,24 +1,5 @@ -:root { - --h-base-font: lxgw-wenkai-mono-tc, alibaba-puhuiti, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, - Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -} -:root:root { - --van-base-font: var(--h-base-font); -} - body { - /* min-height: 100vh; */ - color: var(--color-text); - background: var(--color-background); transition: color 0.5s, background-color 0.5s; - line-height: 1.6; - font-family: var(--h-base-font); - font-weight: 400; - font-style: normal; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; } diff --git a/src/styles/index.ts b/src/styles/index.ts index 3d4f0e2..eda0d4c 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -2,6 +2,7 @@ import 'nprogress/nprogress.css'; // +import './base.css'; import './main.less'; import 'primeicons/primeicons.css'; diff --git a/src/styles/main.less b/src/styles/main.less index 40e68d3..9c300d8 100644 --- a/src/styles/main.less +++ b/src/styles/main.less @@ -15,7 +15,6 @@ background-color: hsla(160, 100%, 37%, 0.2); } - .layout-tip { position: fixed; top: 1rem; @@ -31,4 +30,4 @@ opacity: 0.8; background: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */ backdrop-filter: blur(5px); /* 背景模糊 */ -} \ No newline at end of file +} diff --git a/src/styles/reset-vant.css b/src/styles/reset-vant.css new file mode 100644 index 0000000..a27eef5 --- /dev/null +++ b/src/styles/reset-vant.css @@ -0,0 +1,3 @@ +:root:root { + --van-base-font: var(--h-base-font); +}