Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbordallo committed Feb 19, 2019
1 parent b27d505 commit 2d819ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

Define the stack of components and PostCSS Stack will resolve the z-indexes for you instead of playing a game of `z-index: 99999`.

**Input**
```pcss
```css
/* input */
.modal {
z-index: stack('modal');
}
Expand All @@ -22,8 +22,9 @@ Define the stack of components and PostCSS Stack will resolve the z-indexes for
}
```

**Output**

```css
/* output */
.modal {
z-index: 2;
}
Expand Down Expand Up @@ -72,7 +73,7 @@ module.exports = {

Then call the `stack` function with relevant item name in your css.

```pcss
```css
.application {
z-index: stack('application');
}
Expand Down

0 comments on commit 2d819ed

Please sign in to comment.