You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
1.6 KiB
91 lines
1.6 KiB
5 years ago
|
@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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|