mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
docs: optimize site of rtl (#23995)
This commit is contained in:
parent
d7c7b86f31
commit
e26eb5f892
@ -41,4 +41,8 @@ ReactDOM.render(
|
||||
margin-top: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
.ant-row-rtl #components-avatar-demo-basic .ant-avatar {
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
</style>
|
||||
|
@ -35,4 +35,8 @@ ReactDOM.render(
|
||||
margin-top: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
.ant-row-rtl #components-avatar-demo-type .ant-avatar {
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
</style>
|
||||
|
@ -162,6 +162,9 @@ Added in `4.1.0`.
|
||||
.code-box-demo .ant-picker {
|
||||
margin: 0 8px 12px 0;
|
||||
}
|
||||
.ant-row-rtl .code-box-demo .ant-picker {
|
||||
margin: 0 0 12px 8px;
|
||||
}
|
||||
</style>
|
||||
|
||||
## FAQ
|
||||
|
@ -164,6 +164,9 @@ import 'moment/locale/zh-cn';
|
||||
.code-box-demo .ant-picker {
|
||||
margin: 0 8px 12px 0;
|
||||
}
|
||||
.ant-row-rtl .code-box-demo .ant-picker {
|
||||
margin: 0 0 12px 8px;
|
||||
}
|
||||
</style>
|
||||
|
||||
## FAQ
|
||||
|
@ -67,4 +67,9 @@ ReactDOM.render(
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.ant-row-rtl #components-dropdown-demo-placement .ant-btn {
|
||||
margin-right: 0;
|
||||
margin-bottom: 8px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
```
|
||||
|
@ -40,4 +40,8 @@ ReactDOM.render(
|
||||
margin-right: 6px;
|
||||
font-size: 24px;
|
||||
}
|
||||
.ant-row-rtl .icons-list > .anticon {
|
||||
margin-right: 0;
|
||||
margin-left: 6px;
|
||||
}
|
||||
</style>
|
||||
|
@ -84,4 +84,8 @@ ReactDOM.render(
|
||||
.custom-icons-list > .anticon {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.ant-row-rtl .custom-icons-list > .anticon {
|
||||
margin-right: 0;
|
||||
margin-left: 6px;
|
||||
}
|
||||
```
|
||||
|
@ -34,4 +34,8 @@ ReactDOM.render(
|
||||
.code-box-demo .ant-input-number {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.ant-row-rtl .code-box-demo .ant-input-number {
|
||||
margin-right: 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
```
|
||||
|
@ -85,6 +85,10 @@ ReactDOM.render(<SelectSizesDemo />, mountNode);
|
||||
margin: 0 8px 10px 0;
|
||||
}
|
||||
|
||||
.ant-row-rtl .code-box-demo .ant-select {
|
||||
margin: 0 0 10px 8px;
|
||||
}
|
||||
|
||||
#components-select-demo-search-box .code-box-demo .ant-select {
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -68,7 +68,10 @@ Same props from [RangePicker](/components/date-picker/#RangePicker) of DatePicke
|
||||
| -------- | ------------------------ | ------- | ------- | ------- |
|
||||
| order | Order start and end time | boolean | true | 4.1.0 |
|
||||
|
||||
<style>.code-box-demo .ant-picker { margin: 0 8px 12px 0; }</style>
|
||||
<style>
|
||||
.code-box-demo .ant-picker { margin: 0 8px 12px 0; }
|
||||
.ant-row-rtl .code-box-demo .ant-picker { margin: 0 0 12px 8px; }
|
||||
</style>
|
||||
|
||||
## FAQ
|
||||
|
||||
|
@ -68,7 +68,10 @@ import moment from 'moment';
|
||||
| ----- | -------------------- | ------- | ------ | ----- |
|
||||
| order | 始末时间是否自动排序 | boolean | true | 4.1.0 |
|
||||
|
||||
<style>.code-box-demo .ant-picker { margin: 0 8px 12px 0; }</style>
|
||||
<style>
|
||||
.code-box-demo .ant-picker { margin: 0 8px 12px 0; }
|
||||
.ant-row-rtl .code-box-demo .ant-picker { margin: 0 0 12px 8px; }
|
||||
</style>
|
||||
|
||||
## FAQ
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
ul.anticons-list {
|
||||
margin: 10px 0;
|
||||
overflow: hidden;
|
||||
direction: ltr;
|
||||
list-style: none;
|
||||
li {
|
||||
position: relative;
|
||||
@ -17,6 +18,10 @@ ul.anticons-list {
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
|
||||
.rtl & {
|
||||
margin: 3px 0;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
.anticon {
|
||||
margin: 12px 0 8px;
|
||||
font-size: 36px;
|
||||
|
Loading…
Reference in New Issue
Block a user