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.
77 lines
1.3 KiB
77 lines
1.3 KiB
@prefixCls: ant-collapse;
|
|
@borderStyle: 1px solid #d9d9d9;
|
|
|
|
#arrow {
|
|
.close() {
|
|
.iconfont-size-under-12px(7px, 270deg);
|
|
}
|
|
.open() {
|
|
.iconfont-size-under-12px(7px, 360deg);
|
|
}
|
|
}
|
|
|
|
.@{prefixCls} {
|
|
background-color: #f4f4f4;
|
|
border-radius: 3px;
|
|
border: @borderStyle;
|
|
|
|
& > &-item {
|
|
border-top: @borderStyle;
|
|
&:first-child {
|
|
border-top: none;
|
|
}
|
|
|
|
> .@{prefixCls}-header {
|
|
height: 38px;
|
|
line-height: 38px;
|
|
padding-left: 16px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
&:before {
|
|
font-family: "anticon" !important;
|
|
color: #666;
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
content:"\e60f";
|
|
#arrow > .close();
|
|
vertical-align: middle;
|
|
transition: transform 0.24s ease;
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
height: 0;
|
|
transition-duration: .24s;
|
|
transition-timing-function: @ease-out-circ;
|
|
overflow: hidden;
|
|
color: @text-color;
|
|
padding: 0 16px;
|
|
background-color: #fff;
|
|
|
|
& > &-box {
|
|
margin-top: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
}
|
|
|
|
&-item:last-child {
|
|
> .@{prefixCls}-content {
|
|
border-radius: 0 0 3px 3px;
|
|
}
|
|
}
|
|
|
|
&-content-active {
|
|
}
|
|
|
|
& > &-item-active {
|
|
> .@{prefixCls}-header {
|
|
|
|
&:before {
|
|
#arrow > .open();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|