chore: new Ant Design logo font family (#31135)

* chore: new Ant Design logo font family

* fix stylelint

* update logo
This commit is contained in:
afc163 2021-06-27 12:23:35 +08:00 committed by GitHub
parent e4b3a7c0f6
commit bb91bb3abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 9 deletions

View File

@ -1,3 +1,21 @@
@font-face {
font-weight: normal;
font-family: PuHuiTi;
src: url('//at.alicdn.com/t/webfont_6e11e43nfj.woff2') format('woff2'),
url('//at.alicdn.com/t/webfont_6e11e43nfj.woff') format('woff'),
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
font-display: swap;
}
@font-face {
font-weight: bold;
font-family: PuHuiTi;
src: url('//at.alicdn.com/t/webfont_exesdog9toj.woff2') format('woff2'),
url('//at.alicdn.com/t/webfont_exesdog9toj.woff') format('woff'),
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_exesdog9toj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
font-display: swap;
}
html {
&.rtl {
direction: rtl;

View File

@ -3,14 +3,14 @@
.home-card-logo {
position: relative;
display: inline-block;
max-width: 490px;
max-width: 500px;
margin: 0 32px;
cursor: pointer;
.home-card-logo-icon {
position: absolute;
top: -35px;
left: 334px;
top: -38px;
left: 339px;
display: none;
width: 64px;
height: 64px;

View File

@ -71,10 +71,10 @@ export default function Logo() {
className="home-banner-mini"
/>
<img
width="490"
width="500"
height="87"
alt="Ant Design"
src="https://gw.alipayobjects.com/zos/basement_prod/5b153736-dfe3-4a73-9454-68607c8103e4.svg"
src="https://gw.alipayobjects.com/zos/antfincdn/6UYtAUYPXE/AntDesign.svg"
className="home-banner-normal"
/>
<Hitu

View File

@ -7,9 +7,11 @@
padding-left: 40px;
overflow: hidden;
color: @site-heading-color;
font-weight: bold;
font-size: 18px;
font-family: Avenir, @font-family, sans-serif;
font-family: PuHuiTi, @font-family, sans-serif;
line-height: @header-height;
letter-spacing: -0.18px;
white-space: nowrap;
text-decoration: none;
@ -20,10 +22,8 @@
}
img {
position: relative;
top: -1.5px;
height: 32px;
margin-right: 16px;
margin-right: 12px;
.ant-row-rtl & {
margin-right: 0;