Commit 4e104271 authored by Dan Zajdband's avatar Dan Zajdband Committed by GitHub

Updated css syntax

parent 944643c3
...@@ -50,7 +50,7 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil ...@@ -50,7 +50,7 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil
```jsx ```jsx
import React from 'react' import React from 'react'
import style from 'next/css' import css from 'next/css'
export default () => ( export default () => (
<div className={style}> <div className={style}>
...@@ -58,15 +58,13 @@ export default () => ( ...@@ -58,15 +58,13 @@ export default () => (
</div> </div>
) )
const style = style({ const style = css({
main: { background: 'red',
background: 'red', ':hover': {
':hover': { background: 'gray'
background: 'gray' },
} '@media (max-width: 600px)': {
'@media (max-width: 600px)': { background: 'blue'
background: 'blue'
}
} }
}) })
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment