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:
parent
944643c331
commit
4e1042712c
18
Readme.md
18
Readme.md
|
@ -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'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue