Skip to content

Commit

Permalink
add ignore paragraph to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cuth committed Jul 31, 2015
1 parent 0496fb1 commit a8c1264
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,19 @@ gulp.task('css', function () {
.pipe(gulp.dest('build/css'));
});
```

### A message about ignoring properties
Currently, the easiest way to have a single property ignored is to use a capital in the pixel unit declaration.

```css
// `px` is converted to `rem`
.convert {
font-size: 16px; // converted to 1rem
}

// `Px` or `PX` is ignored by `postcss-pxtorem` but still accepted by browsers
.ignore {
border: 1Px solid; // ignored
border-width: 2PX; // ignored
}
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postcss-pxtorem",
"description": "A CSS post-processor that converts px to rem.",
"version": "2.3.0",
"version": "2.3.1",
"author": "cuth",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit a8c1264

Please sign in to comment.