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); +}