feat: 更新 README 和样式文件,调整依赖安装路径,重构基础样式并添加重置样式
This commit is contained in:
@ -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/)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ import 'nprogress/nprogress.css'; // <link rel="stylesheet" href="https://testin
|
||||
|
||||
import '@unocss/reset/tailwind-compat.css'; // https://unocss.dev/guide/style-reset#tailwind-compat // <link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/@unocss/reset/tailwind.min.css" />
|
||||
|
||||
import './base.css';
|
||||
import './main.less';
|
||||
|
||||
import 'primeicons/primeicons.css';
|
||||
|
@ -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); /* 背景模糊 */
|
||||
}
|
||||
}
|
||||
|
3
src/styles/reset-vant.css
Normal file
3
src/styles/reset-vant.css
Normal file
@ -0,0 +1,3 @@
|
||||
:root:root {
|
||||
--van-base-font: var(--h-base-font);
|
||||
}
|
Reference in New Issue
Block a user