Skip to content

Commit

Permalink
Update example with new CSS var spec & default rework-vars behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed May 25, 2014
1 parent 048826a commit 9e41e96
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,22 @@ is left as is, to fallback to the CSS3 Calc feature.

```css
:root {
var-main-font-size: 16px;
--main-font-size: 16px;
}

body {
font-size: var(main-font-size);
font-size: var(--main-font-size);
}

h1 {
font-size: calc(var(main-font-size) * 2);
font-size: calc(var(--main-font-size) * 2);
height: calc(100px - 2em);
}
```

**yields**:

```css
:root {
var-main-font-size: 16px
}

body {
font-size: 16px
}
Expand Down

2 comments on commit 9e41e96

@necolas
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also the comment in the js file itself, which we should remove imo

@MoOx
Copy link
Contributor Author

@MoOx MoOx commented on 9e41e96 Jun 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that here https://github.com/reworkcss/rework-calc/pull/3/files but since I... Well, I'll push the good changes.

Please sign in to comment.