blob: e7f129185d8363f32bbe8edce7961de797e3bc9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# PostCSS Nth Child Fix [![Build Status][ci-img]][ci]
[PostCSS] plugin to fix a known android 4.1 and 4.2 bug with nth-child (safe transformation).
[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/MattDiMu/postcss-nth-child-fix.svg
[ci]: https://travis-ci.org/MattDiMu/postcss-nth-child-fix
```css
/* input */
.foo:nth-child(n) {
color: blue;
}
/* output */
.foo:nth-child(1n) {
color: blue;
}
```
## Usage
```js
postcss([ require('postcss-nth-child-fix') ])
```
See [PostCSS] docs for examples for your environment.
|