Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/mq4-hover-shim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-01-19 04:10:51 +0300
committerChris Rebert <code@rebertia.com>2015-01-19 04:12:56 +0300
commit5b3cac92b9abb5a150c6afc9efbba0da324186a6 (patch)
tree38485ce475b0d095aeed20e1b113661e3a21a708 /README.md
parent9d035dd8ce8301982f3f28b6017625c29f0f59da (diff)
postprocessor => postprocessorFor()
Don't use postcss options because they can't be passed along when using grunt-postcss.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 56afeb2..aa87295 100644
--- a/README.md
+++ b/README.md
@@ -99,7 +99,13 @@ Unofficially supported:
## API
### Node.js module; CSS postprocessor
The npm module has the following properties:
-* `postprocessor` - CSS postprocessor that transforms the source CSS as described above. A [PostCSS](https://github.com/postcss/postcss) processor object (that was returned from a call to the `postcss()` function). It requires that a `hoverSelectorPrefix` string option be provided; this string will be prepended to all selectors within `@media (hover: hover) {...}` blocks within the source CSS.
+* `postprocessorFor`
+ * Arguments: an options object with one property:
+ * `hoverSelectorPrefix` - This string will be prepended to all selectors within `@media (hover: hover) {...}` blocks within the source CSS.
+ * Type: `string`
+ * Side-effects: none
+ * Return type: A [PostCSS](https://github.com/postcss/postcss) processor object (that was returned from a call to the `postcss()` function).
+ * Returns a CSS postprocessor that transforms the source CSS as described above.
* `featureDetector` - Each of this object's properties is a string filepath to a JavaScript file containing the browser-side feature detector in a particular JavaScript module format.
* `es6` - [ECMAScript 6 module](http://www.2ality.com/2014/09/es6-modules-final.html) format (this is the original from which the other versions are generated)
* `cjs` - [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1) module format
@@ -143,6 +149,7 @@ _Also, please don't edit files in the `dist` subdirectory as they are generated
## Release History
See the [GitHub Releases page](https://github.com/cvrebert/mq4-hover-hover-shim/releases) for detailed changelogs.
* (next release) - `master`
+* 2015-01-18 - v0.0.4: Fix crash when CSS contains a media-type-only media query. Replaced `postprocessor` with `postprocessorFor()`.
* 2015-01-14 - v0.0.3: Add jspm metadata. Improve docs.
* 2015-01-09 - v0.0.2: Many improvements. jQuery is now a dependency on the client side.
* 2014-12-31 - v0.0.1: Initial release