mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
docs: tweak site style
This commit is contained in:
parent
cc2a29ca54
commit
fe66df0df1
@ -36,23 +36,29 @@
|
||||
margin-top: 72px;
|
||||
white-space: nowrap;
|
||||
|
||||
a {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
button {
|
||||
height: auto;
|
||||
margin: 0 8px;
|
||||
padding: 8px 24px;
|
||||
font-size: 14px;
|
||||
border-color: @home-color;
|
||||
color: @home-color;
|
||||
|
||||
&:hover {
|
||||
border-color: @home-color;
|
||||
color: tint(@home-color, 20%);
|
||||
border-color: tint(@home-color, 20%);
|
||||
}
|
||||
|
||||
&.ant-btn-primary {
|
||||
background: @home-color;
|
||||
}
|
||||
color: #fff;
|
||||
|
||||
&:not(.ant-btn-primary) {
|
||||
color: @home-color;
|
||||
&:hover {
|
||||
background-color: tint(@home-color, 20%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import { Link } from 'bisheng/router';
|
||||
import { FormattedMessage, injectIntl } from 'react-intl';
|
||||
import classNames from 'classnames';
|
||||
import { SearchOutlined, MenuOutlined } from '@ant-design/icons';
|
||||
import { Select, Menu, Row, Col, Popover, Input, Button, Badge } from 'antd';
|
||||
import { Select, Menu, Row, Col, Popover, Input, Button } from 'antd';
|
||||
|
||||
import * as utils from '../utils';
|
||||
import { version as antdVersion } from '../../../../package.json';
|
||||
@ -197,11 +197,7 @@ class Header extends React.Component {
|
||||
<Menu.SubMenu
|
||||
key="ecosystem"
|
||||
className="hide-in-home-page"
|
||||
title={
|
||||
<Badge dot>
|
||||
<FormattedMessage id="app.header.menu.ecosystem" />
|
||||
</Badge>
|
||||
}
|
||||
title={<FormattedMessage id="app.header.menu.ecosystem" />}
|
||||
>
|
||||
<Menu.Item key="pro">
|
||||
<a
|
||||
@ -210,9 +206,7 @@ class Header extends React.Component {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Badge dot>
|
||||
<FormattedMessage id="app.header.menu.pro.v4" />
|
||||
</Badge>
|
||||
<FormattedMessage id="app.header.menu.pro.v4" />
|
||||
</a>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="ng">
|
||||
|
Loading…
Reference in New Issue
Block a user