Skip to content

Commit

Permalink
site: update sider menu order
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 22, 2017
1 parent 7518fde commit 04a94a6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 9
order: 6
title: Change Log
toc: false
timeline: true
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 9
order: 6
title: 更新日志
toc: false
timeline: true
Expand Down
2 changes: 1 addition & 1 deletion docs/react/i18n-solution.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n Solution
link: //github.com/ant-design/intl-example
---
2 changes: 1 addition & 1 deletion docs/react/i18n-solution.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 6
order: 9
title: i18n 方案
link: //github.com/ant-design/intl-example
---
16 changes: 16 additions & 0 deletions site/theme/static/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions site/theme/template/Content/MainContent.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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>
);

Expand Down

0 comments on commit 04a94a6

Please sign in to comment.