1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Updated css syntax

This commit is contained in:
Dan Zajdband 2016-10-25 14:44:20 +01:00 committed by GitHub
parent 944643c331
commit 4e1042712c

View file

@ -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 () => (
</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'
}
} }
}) })
``` ```