Update
This commit is contained in:
parent
6ddaf1041b
commit
4d7af5d276
|
@ -18,6 +18,10 @@ Tables support these:
|
||||||
|
|
||||||
{: .-shortcuts}
|
{: .-shortcuts}
|
||||||
|
|
||||||
|
Pre's support these:
|
||||||
|
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
Each sheet supports these metadata:
|
Each sheet supports these metadata:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Desktop
|
||||||
@media (min-width: 541px) {
|
@media (min-width: 541px) {
|
||||||
& {
|
& {
|
||||||
align-items: flex-end; // bottom alighn
|
align-items: flex-end; // bottom alighn
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
// Advertisement
|
// Advertisement
|
||||||
& > .ad {
|
& > .ad {
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.MarkdownBody pre.-setup {
|
||||||
|
background: $gray-bg;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Syntax kighlight
|
* Syntax kighlight
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
margin-top: 64px;
|
margin-top: 64px;
|
||||||
border-bottom: solid 1px $line-color;
|
border-bottom: solid 1px $dark-line-color;
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
margin: $gutter / 2;
|
margin: $gutter / 2;
|
||||||
|
|
5
react.md
5
react.md
|
@ -18,6 +18,7 @@ Components
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
```
|
```
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
class Hello extends React.Component {
|
class Hello extends React.Component {
|
||||||
|
@ -41,6 +42,7 @@ Use the [React.js jsfiddle](http://jsfiddle.net/reactjs/69z2wepo/) to start hack
|
||||||
```html
|
```html
|
||||||
<Video fullscreen={true} />
|
<Video fullscreen={true} />
|
||||||
```
|
```
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
render () {
|
render () {
|
||||||
|
@ -243,6 +245,7 @@ Property validation
|
||||||
```js
|
```js
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
```
|
```
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
See: [Typechecking with PropTypes](https://facebook.github.io/react/docs/typechecking-with-proptypes.html)
|
See: [Typechecking with PropTypes](https://facebook.github.io/react/docs/typechecking-with-proptypes.html)
|
||||||
|
|
||||||
|
@ -355,6 +358,7 @@ MyCo.propTypes = {
|
||||||
```html
|
```html
|
||||||
<VideoPlayer src="video.mp4" />
|
<VideoPlayer src="video.mp4" />
|
||||||
```
|
```
|
||||||
|
{: .-setup}
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
class VideoPlayer extends React.Component {
|
class VideoPlayer extends React.Component {
|
||||||
|
@ -425,6 +429,7 @@ class TodoList extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
{: data-line="6-7"}
|
||||||
|
|
||||||
Always supply a `key` property.
|
Always supply a `key` property.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue