postcss-button
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "postcss-button", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A PostCSS plugin to create buttons.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -89,10 +89,27 @@ # postcss-button | ||
If optional values are not set, fallback to the atRule declaration values. | ||
Missing declarations fallback to the _default_ settings. | ||
### Examples | ||
* * * | ||
## Examples | ||
There are two ways of declaring a button: | ||
### With a _name_ referring to an atRule declaration | ||
#### With a _name_ referring to an atRule declaration | ||
``` css | ||
@button big-button { | ||
color: grey; | ||
background-color: white; | ||
color-active: white; | ||
background-color-active: grey; | ||
border-width: 0; | ||
border-style: none; | ||
border-color: grey; | ||
border-color-active: black; | ||
class-active: active; | ||
class-disabled: disabled; | ||
} | ||
``` | ||
```css | ||
@@ -104,3 +121,3 @@ .my-button { | ||
### With specific declarations | ||
#### With specific declarations | ||
@@ -115,4 +132,2 @@ ``` css | ||
Missing declarations will use the _default_ settings. | ||
01: [input](https://github.com/francoisromain/postcss-button/blob/gh-pages/test/src/01.css), [output](https://github.com/francoisromain/postcss-button/blob/gh-pages/test/dist/01.css), [markup](https://github.com/francoisromain/postcss-button/blob/gh-pages/test/01.html), [demo](http://localhost/francoisromain.github.io/postcss-button/test/01.html) | ||
@@ -119,0 +134,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13736
134