mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
91 lines
1.6 KiB
Plaintext
91 lines
1.6 KiB
Plaintext
|
@import '../../style/themes/index';
|
||
|
@import '../../style/mixins/index';
|
||
|
@import './customize.less';
|
||
|
|
||
|
@list-prefix-cls: ~'@{ant-prefix}-list';
|
||
|
|
||
|
.@{list-prefix-cls} {
|
||
|
&-rtl {
|
||
|
direction: rtl;
|
||
|
text-align: right;
|
||
|
|
||
|
// fix for virtual scroll style attribute > (direction:ltr)
|
||
|
.ReactVirtualized__List .@{list-prefix-cls}-item {
|
||
|
direction: rtl;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-pagination {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
text-align: left;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-item {
|
||
|
&-meta {
|
||
|
&-avatar {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
margin-right: 0;
|
||
|
margin-left: @list-item-meta-avatar-margin-right;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-action {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
margin-right: 48px;
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
& > li:first-child {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
padding-right: 0;
|
||
|
padding-left: 8px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-split {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
right: auto;
|
||
|
left: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-vertical &-item {
|
||
|
&-extra {
|
||
|
.@{list-prefix-cls}-rtl& {
|
||
|
margin-right: 40px;
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&-action {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
|
||
|
> li {
|
||
|
&:first-child {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
padding-right: 0;
|
||
|
padding-left: 16px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Horizontal
|
||
|
&:not(.@{list-prefix-cls}-vertical) {
|
||
|
.@{list-prefix-cls}-item-no-flex {
|
||
|
.@{list-prefix-cls}-item-action {
|
||
|
.@{list-prefix-cls}-rtl & {
|
||
|
float: left;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|