Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
postcss-button
Advanced tools
francoisromain.github.io/postcss-button
A PostCSS plugin to create buttons.
There are two ways to declare a button:
@button big-button {
button-border-width: 1px;
button-color: orange;
button-background-color: white;
button-border-color: silver;
button-color-hover: white;
button-background-color-hover: orange;
button-border-color-hover: orange;
button-color-active: white;
button-background-color-active: silver;
button-border-color-active: silver;
button-class-active: active;
button-class-disabled: disabled;
}
.my-button {
button: big-button;
}
.your-button {
button-color: skyblue white white;
button-background: white skyblue silver;
button-border: 4px skyblue skyblue silver;
button-classes: active diabled;
}
01: input, output, markup, demo
02: input, output, markup, demo
Install the npm package:
$ npm install postcss-button --save-dev
Require the PostCSS plugin:
postcss([ require('postcss-button') ])
See PostCSS docs to setup with Gulp, Grunt, Webpack, npm scripts…
@button ([name]) {
button-color: grey;
button-background-color: white;
button-color-active: white;
button-background-color-active: grey;
button-border-width: 0;
button-border-color: grey;
button-border-color-active: black;
button-class-active: active;
button-class-disabled: disabled;
}
button: [name];
button-color: [color] ([color-active]) ([color-hover]);
button-background: [background-color] ([background-color-active]) ([background-color-hover]);
button-border: [width] ([border-color]) ([border-color-active]) ([border-color-hover]);
button-classes: [active] ([disabled]);
Missing declarations fallback to the default settings.
FAQs
A PostCSS plugin to create buttons.
The npm package postcss-button receives a total of 31 weekly downloads. As such, postcss-button popularity was classified as not popular.
We found that postcss-button 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.