Skip to content

Commit

Permalink
docs: add github link for postcss-px-to-viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji committed Dec 26, 2024
1 parent f512c55 commit 2cea399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/varlet-ui/docs/browserAdaptation.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ scheme `varlet-touch-emulator` is used for mobile terminal adaptation.
#### CSS Unit Adaptation

The component library design is based on the `375px` width design draft.
It is recommended to use PostCSS plugin to convert `px` units into `vw` units to achieve mobile terminal adaptation.
It is recommended to use [postcss-px-to-viewport](https://github.com/evrone/postcss-px-to-viewport) to convert `px` units into `vw` units to achieve mobile terminal adaptation.
Create `postcss.config.js` under the `Webpack/Vite` project root path And do the following configuration `375px -> 100vw`.

```shell
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/docs/browserAdaptation.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### 介绍

组件库提供移动端和桌面端适配方案,
移动端使用 `postcss-px-to-viewport` 方案进行适配,
移动端使用 [postcss-px-to-viewport](https://github.com/evrone/postcss-px-to-viewport) 方案进行适配,
桌面端使用 `@varlet/touch-emulator` 方案进行适配。

### 移动端适配
Expand Down

0 comments on commit 2cea399

Please sign in to comment.