postcss-px-to-viewport icon indicating copy to clipboard operation
postcss-px-to-viewport copied to clipboard

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.

Results 108 postcss-px-to-viewport issues
Sort by recently updated
recently updated
newest added

Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies

希望增加全宽的数值配置,比如我要转换为 rpx 单位,全宽应该是 750,现在固定是 100只能转换为 vh 和 vw 。 ![image](https://github.com/evrone/postcss-px-to-viewport/assets/4349951/33cccd21-56c6-4fee-9828-af1baaab2dcb)

首先我只打一次包 只部署一次 然后这个时候我需要同时适配 pc和手机如果pad端有问题可能也会适配pad 采用vw、vh+媒体查询的方案 这个时候是有两个设计稿的 1920x1080 和 750x812,可能还会有个pad的 假设我的屏幕断点是 1280 和 768 我肯定在不同的媒体查询里面宽度不一致 一般可能我直接通过1280就区分了pc和移动 如果pad有问题可能会细分 1280 768 这样我的媒体查询对应的设计稿宽度肯定是不一样的 这个时候插件能不能做到根据不同媒体查询设置设计稿的宽度然后吧px转成vw