Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Add missing code block to docs/guides/readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ianobermiller committed May 13, 2015
1 parent a8a0d23 commit ea96cfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,15 @@ Radium will merge styles for any active states when your component is rendered.

Add media queries to your style objects the same way as you would add browser state modifiers like `:hover`. The key must start with `@media`, and the [syntax](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries) is identical to CSS:

```as
var style = {
width: '25%',
'@media (min-width: 320px)': {
width: '100%'
}
};
```

Radium will apply the correct styles for the currently active media queries.

Expand Down

0 comments on commit ea96cfa

Please sign in to comment.