
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
postcss-responsive-properties
Advanced tools
PostCSS plugin that will make writing responsive style more easily
PostCSS plugin that will make writing responsive style more easily.
body {
color: red;
font-size: {
0: 1em;
$tablet: 1.5em; /* use it with variables */
1600: 2em;
}
}
body {
color: red;
font-size: 1em
}
@media screen and (min-width: $tablet) { /* use it with variables */
body {
font-size: 1.5em;
}
}
@media screen and (min-width: 1600px) {
body {
font-size: 2em;
}
}
Install postcss and postcss-responsive-properties to your project:
npm i postcss postcss-responsive-properties --save
var postcss = require("postcss"),
responsiveCSSProperties = require("postcss-responsive-properties");
postcss([ responsiveCSSProperties ])
.process(css, { from: "src/input.css", to: "dist/output.css" })
.then(function (result) {
fs.writeFileSync("dist/output.css", result.css);
if ( result.map ) fs.writeFileSync("dist/output.css.map", result.map);
});
npm i gulp gulp-postcss postcss-responsive-properties --save
var gulp = require("gulp"),
postcss = require("gulp-postcss"),
responsiveCSSProperties = require("postcss-responsive-properties");
gulp.task("styles", function() {
var processors = [ responsiveCSSProperties ];
return gulp.src("src/input.css")
.pipe(postcss(processors).on("error", function(err) { console.log(err)}))
.pipe(gulp.dest("dist/output.css"));
});
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin that will make writing responsive style more easily
We found that postcss-responsive-properties 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.