mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
c373710ce2
* fix: border style of Input.Search when allowClear (#27325) * fix: border style of Input.Search when allowClear * fix css * update * change name * docs: 4.7.3 changelog (#27350) * docs: 4.7.3 changelog * docs: Patch 27325 * chore: improve useCombinedRefs (#27352) * docs: 📝 update introduce * chore: fix API table border * chore: Adjust collapse arrow position align with first line Co-authored-by: xrk <xrkffgg@gmail.com> Co-authored-by: Tom Xu <ycxzhkx@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
153 lines
3.3 KiB
Plaintext
153 lines
3.3 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@collapse-prefix-cls: ~'@{ant-prefix}-collapse';
|
|
|
|
.@{collapse-prefix-cls} {
|
|
.reset-component;
|
|
|
|
background-color: @collapse-header-bg;
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
border-bottom: 0;
|
|
border-radius: @collapse-panel-border-radius;
|
|
|
|
& > &-item {
|
|
border-bottom: @border-width-base @border-style-base @border-color-base;
|
|
|
|
&:last-child {
|
|
&,
|
|
& > .@{collapse-prefix-cls}-header {
|
|
border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
|
|
}
|
|
}
|
|
|
|
> .@{collapse-prefix-cls}-header {
|
|
position: relative;
|
|
padding: @collapse-header-padding;
|
|
padding-left: @collapse-header-padding-extra;
|
|
color: @heading-color;
|
|
line-height: @line-height-base;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
.clearfix;
|
|
|
|
.@{collapse-prefix-cls}-arrow {
|
|
.iconfont-mixin();
|
|
|
|
position: absolute;
|
|
top: ceil(@padding-sm + (@font-size-base * @line-height-base - @font-size-base) / 2);
|
|
left: @collapse-header-arrow-left;
|
|
display: inline-block;
|
|
font-size: @font-size-sm;
|
|
|
|
& svg {
|
|
transition: transform 0.24s;
|
|
}
|
|
}
|
|
|
|
.@{collapse-prefix-cls}-extra {
|
|
float: right;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
&.@{collapse-prefix-cls}-no-arrow {
|
|
> .@{collapse-prefix-cls}-header {
|
|
padding-left: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Expand Icon right
|
|
&-icon-position-right {
|
|
& > .@{collapse-prefix-cls}-item {
|
|
> .@{collapse-prefix-cls}-header {
|
|
padding: @collapse-header-padding;
|
|
padding-right: @collapse-header-padding-extra;
|
|
|
|
.@{collapse-prefix-cls}-arrow {
|
|
right: @padding-md;
|
|
left: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-anim-active {
|
|
transition: height 0.2s @ease-out;
|
|
}
|
|
|
|
&-content {
|
|
overflow: hidden;
|
|
color: @text-color;
|
|
background-color: @collapse-content-bg;
|
|
border-top: @border-width-base @border-style-base @border-color-base;
|
|
|
|
& > &-box {
|
|
padding: @collapse-content-padding;
|
|
}
|
|
|
|
&-inactive {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&-item:last-child {
|
|
> .@{collapse-prefix-cls}-content {
|
|
border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
|
|
}
|
|
}
|
|
|
|
&-borderless {
|
|
background-color: @collapse-header-bg;
|
|
border: 0;
|
|
}
|
|
|
|
&-borderless > &-item {
|
|
border-bottom: 1px solid @border-color-base;
|
|
}
|
|
|
|
&-borderless > &-item:last-child,
|
|
&-borderless > &-item:last-child &-header {
|
|
border-radius: 0;
|
|
}
|
|
|
|
&-borderless > &-item > &-content {
|
|
background-color: transparent;
|
|
border-top: 0;
|
|
}
|
|
|
|
&-borderless > &-item > &-content > &-content-box {
|
|
padding-top: 4px;
|
|
}
|
|
|
|
&-ghost {
|
|
background-color: transparent;
|
|
border: 0;
|
|
> .@{collapse-prefix-cls}-item {
|
|
border-bottom: 0;
|
|
> .@{collapse-prefix-cls}-content {
|
|
background-color: transparent;
|
|
border-top: 0;
|
|
> .@{collapse-prefix-cls}-content-box {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
& &-item-disabled > &-header {
|
|
&,
|
|
& > .arrow {
|
|
color: @disabled-color;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
@import './rtl';
|