
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
postcss-button
Advanced tools
francoisromain.github.io/postcss-button
A PostCSS plugin to create buttons.
Install the npm module:
$ 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…
The default settings can be overrided with an atrule:
@button {
color: grey;
background-color: white;
color-active: black;
background-color-active: silver;
border-width: 0;
border-style: none;
border-color: grey;
border-color-active: black;
border-radius: 0;
class-active: active;
class-disabled: disabled;
}
There are two ways of declaring a button:
@button [name] {
color: grey;
background-color: white;
color-active: black;
background-color-active: silver;
border-width: 0;
border-style: none;
border-color: grey;
border-color-active: black;
border-radius: 0;
class-active: active;
class-disabled: disabled;
}
.my-button {
button: [name]
}
.my-button {
button-color: [color] [background-color] [color-active] [background-color-active];
button-border: [width] [style] [color] [color-active];
button-radius: [size];
button-classes: [active] [disabled];
}
Missing declarations will use the default settings.
0.1.0
FAQs
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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.