Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
postcss-px-to-viewport-with-minviewportwidth
Advanced tools
Changelog
[1.0.0] - 2019-01-28
replace
option - (Boolean) replaces rules containing vw
instead of adding fallbacks.propList
option - (Array) The properties that can change from px
to vw
.exclude
option - (Array or Regexp) Ignore some files like node_modules
.px
, then pX
values won't be changed.Readme
A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units.
forked from postcss-px-to-viewport to add minViewportWidth pramas
{
unitToConvert: 'px',
viewportWidth: 1440,
minViewportWidth: 1200,
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: undefined,
include: undefined,
}
unitToConvert
(String) unit to convert, by default, it is px.viewportWidth
(Number) The width of the viewport.minViewportWidth
(Number) The minWidth of the viewport.unitPrecision
(Number) The decimal numbers to allow the vw units to grow to.propList
(Array) The properties that can change from px to vw.
viewportUnit
(String) Expected units.fontViewportUnit
(String) Expected units for font.selectorBlackList
(Array) The selectors to ignore and leave as px.
['body']
will match .body-class
[/^body$/]
will match body
but not .body
minPixelValue
(Number) Set the minimum pixel value to replace.mediaQuery
(Boolean) Allow px to be converted in media queries.replace
(Boolean) replaces rules containing vw instead of adding fallbacks.exclude
(Regexp or Array of Regexp) Ignore some files like 'node_modules'
include
(Regexp or Array of Regexp) If include
is set, only matching files will be converted,
for example, only files under src/mobile/
(include: /\/src\/mobile\//
)
landscape
(Boolean) Adds @media (orientation: landscape)
with values converted via landscapeWidth
.landscapeUnit
(String) Expected unit for landscape
optionlandscapeWidth
(Number) Viewport width for landscape orientation.
exclude
andinclude
can be set together, and the intersection of the two rules will be taken.
FAQs
A CSS post-processor that converts px to viewport units (vw, vh, vmin, vmax).
The npm package postcss-px-to-viewport-with-minviewportwidth receives a total of 0 weekly downloads. As such, postcss-px-to-viewport-with-minviewportwidth popularity was classified as not popular.
We found that postcss-px-to-viewport-with-minviewportwidth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.