Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add github link for postcss-px-to-viewport #1839

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading