update code box template

This commit is contained in:
afc163 2015-05-18 17:45:08 +08:00
parent 2d1187c9ac
commit 9591702f14
3 changed files with 8 additions and 8 deletions

View File

@ -4,10 +4,6 @@
--- ---
````html
<div id="example"></div>
````
````js ````js
/** @jsx React.DOM */ /** @jsx React.DOM */
var Button = React.createClass({ var Button = React.createClass({
@ -16,6 +12,7 @@ var Button = React.createClass({
} }
}); });
React.render(<Button>失效的按钮</Button>, document.getElementById('example')); React.render(
<Button>失效的按钮</Button>
, document.getElementById('components-button-demo-disabled'));
```` ````

View File

@ -1011,7 +1011,7 @@ footer ul li > a {
width: 100%; width: 100%;
} }
.code-box .nico-insert-code { .code-box .code-box-demo {
padding: 50px 25px; padding: 50px 25px;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }

View File

@ -1,5 +1,8 @@
<div class="code-box"> <div class="code-box">
{{ post.html|jsx }} <div class="code-box-demo">
<div id="{{post.meta.id}}"></div>
{{ post.html|jsx }}
</div>
<div class="code-box-meta"> <div class="code-box-meta">
<div class="code-box-title">{{ post.title }}</div> <div class="code-box-title">{{ post.title }}</div>
<p class="code-box-description"> <p class="code-box-description">