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.
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]) {
color: grey;
background-color: white;
color-active: white;
background-color-active: grey;
border-width: 0;
border-color: grey;
border-color-active: black;
class-active: active;
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.
There are two ways of declaring a button:
@button big-button {
border-width: 1px;
color: orange;
background-color: white;
border-color: silver;
color-hover: white;
background-color-hover: orange;
border-color-hover: orange;
color-active: white;
background-color-active: silver;
border-color-active: silver;
class-active: active;
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;
}
FAQs
A PostCSS plugin to create buttons.
The npm package postcss-button receives a total of 0 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.