Browse Source

site: update sider menu order

pull/4683/head
afc163 8 years ago
parent
commit
04a94a691e
  1. 2
      CHANGELOG.en-US.md
  2. 2
      CHANGELOG.zh-CN.md
  3. 2
      docs/react/i18n-solution.en-US.md
  4. 2
      docs/react/i18n-solution.zh-CN.md
  5. 16
      site/theme/static/common.less
  6. 6
      site/theme/template/Content/MainContent.jsx

2
CHANGELOG.en-US.md

@ -1,5 +1,5 @@
---
order: 9
order: 6
title: Change Log
toc: false
timeline: true

2
CHANGELOG.zh-CN.md

@ -1,5 +1,5 @@
---
order: 9
order: 6
title: 更新日志
toc: false
timeline: true

2
docs/react/i18n-solution.en-US.md

@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n Solution
link: //github.com/ant-design/intl-example
---

2
docs/react/i18n-solution.zh-CN.md

@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n 方案
link: //github.com/ant-design/intl-example
---

16
site/theme/static/common.less

@ -57,6 +57,22 @@ div.main-container {
a[disabled] {
color: #ccc;
}
.menu-item-link-outside {
position: relative;
.anticon {
font-size: 12px;
color: #999;
opacity: 0;
position: absolute;
right: -4px;
top: 16px;
transition: all .3s;
}
&:hover .anticon {
opacity: 1;
}
}
}
.aside-container .chinese {

6
site/theme/template/Content/MainContent.jsx

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react';
import { Link } from 'bisheng/router';
import { Row, Col, Menu } from 'antd';
import { Row, Col, Menu, Icon } from 'antd';
import Article from './Article';
import ComponentDoc from './ComponentDoc';
import * as utils from '../utils';
@ -110,8 +110,8 @@ export default class MainContent extends React.Component {
{text}
</Link>
) : (
<a href={item.link} target="_blank" rel="noopener noreferrer" disabled={disabled}>
{text}
<a href={item.link} target="_blank" rel="noopener noreferrer" disabled={disabled} className="menu-item-link-outside">
{text} <Icon type="export" />
</a>
);

Loading…
Cancel
Save