Browse Source

docs: optimize site of spec (#23628)

* docs: optimize site of spec

* fix: lint
pull/23644/head
xrkffgg 5 years ago
committed by GitHub
parent
commit
2cb635e921
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/spec/introduce.en-US.md
  2. 4
      site/theme/static/colors.less
  3. 5
      site/theme/static/common.less
  4. 3
      site/theme/static/markdown.less
  5. 1
      site/theme/static/page-nav.less
  6. 14
      site/theme/static/preview-img.less
  7. 1
      site/theme/static/rtl.less
  8. 2
      site/theme/template/Home/DesignPage/index.tsx

2
docs/spec/introduce.en-US.md

@ -42,7 +42,7 @@ const LinkIcon = () => (
const LinksList = () => (
<ul>
<li>
<a href="/docs/react/introduce" target="_blank">Ant Design of React</a>
<a href="/docs/react/introduce" target="_blank">Ant Design of React </a>
(official implementation)
</li>
<li>

4
site/theme/static/colors.less

@ -180,6 +180,10 @@
&-hex {
color: fade(@white, 65);
}
.ant-row-rtl & {
direction: rtl;
text-align: right;
}
}
}

5
site/theme/static/common.less

@ -157,6 +157,11 @@ a {
margin-left: 5px;
color: #aaa;
font-size: 12px;
.ant-row-rtl & {
margin-right: 5px;
margin-left: 0;
transform: rotate(180deg);
}
}
// reset menu text color

3
site/theme/static/markdown.less

@ -77,6 +77,9 @@
.markdown p,
.markdown pre {
margin: 1em 0;
.ant-row-rtl & {
text-align: right;
}
}
.markdown ul > li {

1
site/theme/static/page-nav.less

@ -1,4 +1,5 @@
.prev-next-nav {
width: ~'calc(100% - 128px)';
margin-right: 64px;
margin-left: 64px;
overflow: hidden;

14
site/theme/static/preview-img.less

@ -12,6 +12,11 @@
padding: 0;
}
}
.ant-row-rtl & {
float: left;
margin: 0 64px 70px 0;
}
}
.preview-image-boxes + .preview-image-boxes {
@ -25,6 +30,11 @@
.preview-image-box + .preview-image-box {
margin-left: 24px;
.ant-row-rtl & {
margin-right: 24px;
margin-left: 0;
}
}
.preview-image-wrapper {
@ -158,6 +168,10 @@
.preview-image-wrapper {
padding: 0;
}
.ant-row-rtl & {
float: left;
}
}
.motion-video-min {

1
site/theme/static/rtl.less

@ -1,6 +1,7 @@
[data-direction='rtl'] {
#_hj_feedback_container {
> div {
right: auto;
left: 32px;
}
}

2
site/theme/template/Home/DesignPage/index.tsx

@ -215,7 +215,7 @@ export default function DesignPage() {
>
<img
alt="design guide"
style={{ maxHeight: 278, maxWidth: '100%' }}
style={{ maxHeight: 292, maxWidth: '100%' }}
src="https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*5PRzTL4pwuYAAAAAAAAAAABkARQnAQ"
/>
</Col>

Loading…
Cancel
Save