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

- 这个插件会把所有像素值自动转成vw,而垂直方向不会转成vh,那么怎么能实现等比例缩放呢? - 垂直方向的长度值有:height\line-heiht\top\bottom\margin-bottom等,我的操作是手动调用scss函数,计算垂直方向的长度值,变成vh。 - 我看到文档上的demo也是自己标识的vh单位,这样才够实现等比例缩放。我感觉未免麻烦些了,不知道各位有什么好方案,可以实现垂直方向像素自动vh?

在vite项目控制台中报警告:postcss-px-to-viewport: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration

1. 分两个项目,分开部署吗? 2. 样式全写css文件里,编译两次。编译出两个css文件, 2.1 引用方式:浏览器js里创建link标签,写要求编译css时,不能加hash.css 2.2 服务端html模板,根据请求的浏览器参数,三目运算判断使用哪个.css,这其实也是服务端渲染,不过css文件要是可以预先,这步就很快,服务端渲染,好复杂,不知道怎么拆

with scss,this feature can not working

This is one of the most forked/cloned PostCSS plugins. If you are looking for an alternative you might want to look through : https://csstools.github.io/postcss-plugins-directory/

请问在mac 下 拖动改变窗口大小,页面计算修改会有一个延迟过程,window是正常的,这种情况怎么处理

如果是vite脚手架的react框架可以使用https://github.com/yozojo/inline-px-to-viewport 处理内联style的px,如果对你有帮助,可以给star吗

配置landscape时,报错postcss.atRule is not a constructor,下个版本可以修复吗 目前手动修改index.js中atRule=>AtRule

added the ability to add multiple conversion options by selectors and media queries.

I want to support the conversion of css inline style to viewport units ```html inline style ``` Currently, px will not be converted to the expected vw @olegbalbekov @belov @dsazanov...