fix some site style

This commit is contained in:
afc163 2016-07-26 19:45:55 +08:00
parent a5eb044d5c
commit 75da5a358a
4 changed files with 20 additions and 13 deletions

View File

@ -3,6 +3,7 @@ category: Components
chinese: 图标
type: Basic
english: Icon
toc: false
---
有含义的矢量图形,每一个图标打倒一个敌人。

View File

@ -23,7 +23,7 @@
.subtitle {
font-weight: normal;
font-size: 80%;
font-size: 90%;
margin-left: 12px;
}
}

View File

@ -81,7 +81,13 @@ export default class ComponentDoc extends React.Component {
</ul>
</Affix>
<section className="markdown">
<h1>{meta.title || meta.english} {meta.subtitle || meta.chinese}</h1>
<h1>
{title || english}
{
(!subtitle && !chinese) ? null :
<span className="subtitle">{subtitle || chinese}</span>
}
</h1>
{
props.utils.toReactComponent(
['section', { className: 'markdown' }]