
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
postcss-safe-area
Advanced tools
PostCSS plugin that adds browser fallbacks for safe-area env variables.
PostCSS plugin that adds browser fallbacks for safe-area env variables.
Old iOS and Android browsers don't support environment variables that are required for CSS safe areas. This plugin adds all neccessary fallbacks, and supports calc()
as well as shorthand properties for multiple margin or padding values.
.foo {
padding-top: env(safe-area-inset-top);
margin: 5em 5em calc(5em + env(safe-area-inset-bottom)) 5em;
}
.foo {
padding-top: 0;
padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
margin: 5em 5em calc(5em + 0px) 5em;
margin: 5em 5em calc(5em + constant(safe-area-inset-bottom)) 5em;
margin: 5em 5em calc(5em + env(safe-area-inset-bottom)) 5em;
}
Install this dependency using
npm install postcss-safe-area --save-dev
Now you can use the plugin using
postcss([require('postcss-safe-area')])
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin that adds browser fallbacks for safe-area env variables.
We found that postcss-safe-area 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.