Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(website): svg font and style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimi-Gao committed Mar 30, 2020
1 parent f55934c commit 3092009
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion site/apps/Chrome/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Components extends React.Component {
name: 'KIMI GAO',
company: 'WebApps UI'
}}
logoUrl="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/dark-bg-webapps-ui.svg"
logoUrl="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/dark-bg-webapps-ui.png"
>
{components.map(item => {
if (!item.components) {
Expand Down
2 changes: 1 addition & 1 deletion site/apps/Chrome/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
.layout__sidebar {
.@{prefix-cls}-nav__top-center-container-logo {
transform: scale(1.44);
transform: scale(1.5);
}
}
}
4 changes: 2 additions & 2 deletions site/pages/Home/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class Footer extends PureComponent {
<div className="left">
<img
className="footer__second-line-left-logo"
src="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/white-bg-webapps-ui-gray.svg"
src="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/white-bg-webapps-ui-gray.png"
/>
</div>
<div className="right">
<span>苏ICP备15056713号-2</span>
<a href="http://beian.miit.gov.cn/">苏ICP备15056713号-2</a>
</div>
</div>
</footer>
Expand Down
31 changes: 18 additions & 13 deletions site/pages/Home/Footer/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,27 +82,32 @@
span {
line-height: 32px;
}
.left span {
.left {
display: inline-table;
margin-right: 5px;
&.footer__second-line-left-logo {
height: 15px;
.footer__second-line-left-logo {
position: relative;
top: 4px;
height: 18px;
top: 6px;
}
}
.right span {
display: inline-table;
&:after {
content: '';
display: inline-block;
text-align: center;
width: @ui-unit-quarter
.right {
a {
color: @item-color;
}
&:last-child {
span {
display: inline-table;
&:after {
content: '';
width: 0;
display: inline-block;
text-align: center;
width: @ui-unit-quarter
}
&:last-child {
&:after {
content: '';
width: 0;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion site/pages/Home/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Header extends React.Component {
<div className="header__logo">
<img
className="header__logo-img"
src="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/white-bg-webapps-ui-gray.svg"
src="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/white-bg-webapps-ui-gray.png"
/>
{/* <svg dangerouslySetInnerHTML={{__html: '<use xlink:href="#logo"></use>'}} /> */}
<sub>v{`${pkg.version}`}</sub>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@
.@{prefix-cls}-button--lg {
margin-right: @ui-unit;
&:not(.@{prefix-cls}-button--text):not(.@{prefix-cls}-button--link) {
.ui-mixin-fixheight(@ui-unit-plus);
border-radius: 28px;
padding: 24px;
font-size: @ui-fontsize-big;
padding: 12px;
.ui-mixin-reduce(@ui-unit);
font-size: @ui-fontsize-medium;
min-width: @ui-unit-plus;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav/docs/Nav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NavBasic extends React.Component {
name: 'KIMI GAO',
company: 'Web Apps UI'
}}
logoUrl="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/ui-logo-white.svg"
logoUrl="https://cosmos-x.oss-cn-hangzhou.aliyuncs.com/ui-logo-white.png"
>
<NavItem id="1" icon="discovery" title="NavItem 1" />
<SubNav icon="calendar" title="SubNav 1">
Expand Down
1 change: 0 additions & 1 deletion src/components/Nav/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
&-logo {
margin: 21px auto;
display: block;
width: 150px;
height: 17px;
}
}
Expand Down

0 comments on commit 3092009

Please sign in to comment.