提交 4e104271 编写于 作者: D Dan Zajdband 提交者: GitHub

Updated css syntax

上级 944643c3
......@@ -50,7 +50,7 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil
```jsx
import React from 'react'
import style from 'next/css'
import css from 'next/css'
export default () => (
<div className={style}>
......@@ -58,15 +58,13 @@ export default () => (
</div>
)
const style = style({
main: {
background: 'red',
':hover': {
background: 'gray'
}
'@media (max-width: 600px)': {
background: 'blue'
}
const style = css({
background: 'red',
':hover': {
background: 'gray'
},
'@media (max-width: 600px)': {
background: 'blue'
}
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册