2020-03-18 11:31:24 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@collapse-prefix-cls: ~'@{ant-prefix}-collapse';
|
|
|
|
|
|
|
|
.@{collapse-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
2022-05-27 16:07:32 +08:00
|
|
|
|
|
|
|
// Expand Icon end
|
|
|
|
&.@{collapse-prefix-cls}.@{collapse-prefix-cls}-icon-position-end {
|
|
|
|
& > .@{collapse-prefix-cls}-item {
|
|
|
|
> .@{collapse-prefix-cls}-header {
|
|
|
|
position: relative;
|
|
|
|
padding: @collapse-header-padding;
|
|
|
|
padding-left: @collapse-header-padding-extra;
|
|
|
|
|
|
|
|
.@{collapse-prefix-cls}-arrow {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: auto;
|
|
|
|
left: @padding-md;
|
|
|
|
margin: 0;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-18 11:31:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
& > &-item {
|
|
|
|
> .@{collapse-prefix-cls}-header {
|
|
|
|
.@{collapse-prefix-cls}-rtl & {
|
|
|
|
padding: @collapse-header-padding;
|
|
|
|
padding-right: @collapse-header-padding-extra;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{collapse-prefix-cls}-arrow {
|
2021-09-24 15:58:42 +08:00
|
|
|
.@{collapse-prefix-cls}-rtl& {
|
|
|
|
margin-right: 0;
|
2021-10-14 17:16:38 +08:00
|
|
|
margin-left: @margin-sm;
|
2021-09-24 15:58:42 +08:00
|
|
|
}
|
|
|
|
|
2020-03-18 11:31:24 +08:00
|
|
|
& svg {
|
|
|
|
.@{collapse-prefix-cls}-rtl& {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{collapse-prefix-cls}-extra {
|
|
|
|
.@{collapse-prefix-cls}-rtl& {
|
2021-10-14 17:16:38 +08:00
|
|
|
margin-right: auto;
|
|
|
|
margin-left: 0;
|
2020-03-18 11:31:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{collapse-prefix-cls}-no-arrow {
|
|
|
|
> .@{collapse-prefix-cls}-header {
|
|
|
|
.@{collapse-prefix-cls}-rtl& {
|
2021-10-14 17:16:38 +08:00
|
|
|
padding-right: @padding-sm;
|
2020-03-18 11:31:24 +08:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|