Browse Source

💄 tweak site font color

pull/20496/head
afc163 5 years ago
parent
commit
fa31150bc1
  1. 1
      site/theme/static/common.less
  2. 14
      site/theme/static/header.less
  3. 2
      site/theme/static/theme.less
  4. 9
      site/theme/template/Layout/AntdText.jsx
  5. 17
      site/theme/template/Layout/Header.jsx

1
site/theme/static/common.less

@ -2,7 +2,6 @@ body {
color: @site-text-color;
font-size: 14px;
font-family: @font-family;
line-height: 1.5;
background: @body-background;
transition: background 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

14
site/theme/static/header.less

@ -82,7 +82,7 @@
background: #fff;
&:hover {
color: #1890ff;
color: @primary-color;
}
}
}
@ -101,17 +101,15 @@
line-height: @header-height;
white-space: nowrap;
text-decoration: none;
color: @site-heading-color;
font-size: 18px;
font-family: Avenir, @font-family, sans-serif;
img {
height: 32px;
margin-right: 16px;
}
svg {
position: relative;
top: 1px;
display: inline;
margin-right: 16px;
vertical-align: middle;
border-style: none;
top: -1.5px;
}
}

2
site/theme/static/theme.less

@ -1,5 +1,5 @@
@site-heading-color: @heading-color;
@site-text-color: @text-color;
@site-text-color: @heading-color;
@site-text-color-secondary: @text-color-secondary;
@site-border-color-split: @border-color-split;
@site-header-box-shadow: 0 2px 8px rgba(240, 241, 242, 65);

9
site/theme/template/Layout/AntdText.jsx

File diff suppressed because one or more lines are too long

17
site/theme/template/Layout/Header.jsx

@ -7,7 +7,6 @@ import classNames from 'classnames';
import { SearchOutlined, MenuOutlined } from '@ant-design/icons';
import { Select, Menu, Row, Col, Popover, Input, Button, Badge } from 'antd';
import AntdText from './AntdText';
import * as utils from '../utils';
import { version as antdVersion } from '../../../../package.json';
@ -271,13 +270,15 @@ class Header extends React.Component {
)}
<Row>
<Col xxl={4} xl={5} lg={5} md={5} sm={24} xs={24}>
<Link to={utils.getLocalizedPathname('/', isZhCN)} id="logo">
<img
alt="logo"
src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
/>
<AntdText />
</Link>
<h1>
<Link to={utils.getLocalizedPathname('/', isZhCN)} id="logo">
<img
alt="logo"
src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
/>
Ant Design
</Link>
</h1>
</Col>
<Col xxl={20} xl={19} lg={19} md={19} sm={0} xs={0}>
<div id="search-box">

Loading…
Cancel
Save