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

请问 postcss-px-to-viewport 能在angular使用吗?

@media (orientation: landscape) 内样式被正常样式覆盖 导致横屏状态下样式不起作用 ![1706454571248](https://github.com/evrone/postcss-px-to-viewport/assets/52291669/76a18f5a-2252-46ce-bcab-2da0dacde005)

I've developed this migration library that supports PostCSS 8. Check it out at https://github.com/kirklin/postcss-px-conversion 我重写了支持PostCSS 8的迁移库,欢迎访问 https://github.com/kirklin/postcss-px-conversion

在配置了propList:['*', '!font-size']的情况下 最终效果:我自己class里面的font-size被过滤掉不转化vw了,但vant ui库的font-size没有被过滤掉,font-size的单位还是vw 期望:vant ui库的font-size过滤掉,最终单位是px

在vue3+vite4项目中,我自己写的class是有被转成成vw、vh单位的,但tailwind写的class是没有被转化成vw、vh的。 比如我写class=“pr-[10px]”, 在审查元素里看到是padding-right:10px;

when add this landscape: true, // 是否处理横屏情况 landscapeUnit: "vw", // 横屏模式下使用的单位 landscapeWidth: 667 // 横屏模式下的视口宽度 Because postcss AtRule pxtoViewPort atRule

使用 unocss 的同学可以试试我写的 插件,不需要单独配置postcss了,导入预设就可以转换

发现一个问题。用 这个插件,无法自动转换,写在标签上的行内样式