mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
1006015ef0
* Add border customization variables (#4712) * Make border styles customizable (fixes #4712)
104 lines
2.1 KiB
Plaintext
104 lines
2.1 KiB
Plaintext
@import "../../style/themes/default";
|
|
@import "../../style/mixins/index";
|
|
|
|
@collapse-prefix-cls: ~"@{ant-prefix}-collapse";
|
|
|
|
.collapse-close() {
|
|
.iconfont-size-under-12px(7px, 270deg);
|
|
}
|
|
.collapse-open() {
|
|
.iconfont-size-under-12px(7px, 360deg);
|
|
}
|
|
|
|
.@{collapse-prefix-cls} {
|
|
background-color: @background-color-base;
|
|
border-radius: 3px;
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
border-bottom: 0;
|
|
|
|
& > &-item {
|
|
border-bottom: @border-width-base @border-style-base @border-color-base;
|
|
> .@{collapse-prefix-cls}-header {
|
|
height: 38px;
|
|
line-height: 38px;
|
|
padding-left: 32px;
|
|
color: @text-color;
|
|
cursor: pointer;
|
|
position: relative;
|
|
|
|
.arrow {
|
|
.collapse-close();
|
|
.iconfont-mixin();
|
|
position: absolute;
|
|
color: @text-color;
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
line-height: 40px;
|
|
content: "\e606";
|
|
vertical-align: middle;
|
|
transition: transform 0.24s ease;
|
|
top: 0;
|
|
left: 16px;
|
|
top: ~"16px \9"; // lesshint duplicateProperty: false
|
|
left: ~"0 \9"; // lesshint duplicateProperty: false
|
|
&:before {
|
|
content: "\e606";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-anim-active {
|
|
transition: height .2s @ease-out;
|
|
}
|
|
|
|
&-content {
|
|
overflow: hidden;
|
|
color: @text-color;
|
|
padding: 0 16px;
|
|
background-color: @component-background;
|
|
|
|
& > &-box {
|
|
padding-top: 16px;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
&-inactive {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&-item:last-child {
|
|
> .@{collapse-prefix-cls}-content {
|
|
border-radius: 0 0 3px 3px;
|
|
}
|
|
}
|
|
|
|
& > &-item > &-header[aria-expanded="true"] {
|
|
.arrow {
|
|
.collapse-open();
|
|
}
|
|
}
|
|
|
|
&-borderless {
|
|
background-color: @component-background;
|
|
border: 0;
|
|
}
|
|
|
|
&-borderless > &-item-active {
|
|
border: 0;
|
|
}
|
|
|
|
&-borderless > &-item > &-content {
|
|
background-color: transparent;
|
|
border-top: @border-width-base @border-style-base @border-color-base;
|
|
}
|
|
|
|
&-borderless > &-item > &-header {
|
|
transition: all .3s;
|
|
&:hover {
|
|
background-color: @background-color-base;
|
|
}
|
|
}
|
|
}
|