Skip to content

Commit

Permalink
📝 Update example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Sum authored and Hugo Sum committed Aug 3, 2020
1 parent 7f23217 commit 376ba82
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
# PostCSS Rfs Autopilot
# PostCSS RFS Autopilot

[PostCSS] A plugin that automagically mark your CSS up with `rfs()` for [RFS](https://github.com/twbs/rfs).

[PostCSS]: https://github.com/postcss/postcss

```css
/* Original Input */
.foo {
/* Input example */
font-size: 4em;
}
```

```css
/* After the transformation of RFS Autopilot but before RFS*/
.foo {
/* Output example */
font-size: rfs(4em);
}
```

```css
/* After the transformation of RFS Autopilot but before RFS*/
.foo {
font-size: calc(1.525rem + 3.3vw);
}

@media (min-width: 1200px) {
.foo {
font-size: 4rem;
}
}
```

Expand Down

0 comments on commit 376ba82

Please sign in to comment.